Topic 2 · Lesson 3 of 4
Box plots, outliers and correlation
Box plots and outliers
An outlier is a value that is unusually far from the rest. The question will tell you the rule; common ones are:
- more than below or above ;
- more than 2 (or 3) standard deviations from the mean.
A box plot shows the median, quartiles and extremes; outliers are marked with a cross, and the whisker stops at the most extreme value that is not an outlier. In the diagram, station A has and , so and the upper limit is . The value 20.9 is above it, so it is an outlier, and the whisker ends at the next value, 19.4.
Comparing distributions. When asked to compare, make one point about location (median or mean) and one about spread (IQR or standard deviation), each in context: "Station B's median temperature is higher, so it was generally warmer; station B's IQR is larger, so its temperatures were more variable." Use the median and IQR for skewed data or data with outliers; the mean and standard deviation otherwise.
Cleaning data. Real data sets contain errors (a temperature of 210 °C), missing values (marked "n/a" in the large data set) and outliers. An obvious error should be removed or corrected. A genuine outlier (an unusually hot day) is real information and should usually be kept, though you might note its effect on the mean.
Scatter diagrams and correlation
Bivariate data have two variables for each item, such as height and arm span. A scatter diagram plots one against the other. Correlation describes the linear pattern: positive (both increase together), negative (one increases as the other decreases) or none.
Interpreting correlation needs care:
- Correlation does not imply causation. Ice-cream sales and drownings are positively correlated, but both are caused by hot weather (a third variable). A causal claim needs a reason in context.
- Distinct sections. If the data contain separate groups, the overall pattern can mislead. In the diagram, each group has negative correlation, but together they look positive. Analyse each group separately.
Regression lines. The line of best fit (found by the calculator, or given in the question) predicts from . Interpret its gradient in context: ": each extra hour of revision is associated with 0.8 more marks". Use it only within the range of the data (interpolation); predicting outside the range (extrapolation) is unreliable. To predict from , should be the explanatory (independent) variable.
The product moment correlation coefficient (A level only). The PMCC, , measures the strength of linear correlation on a scale from (perfect negative) through 0 (none) to (perfect positive). You find it on your calculator. Its significance is tested in the hypothesis testing topic.
If the relationship looks curved, a straight line is the wrong model: a model or can be fitted by taking logarithms, which turns it into a straight line (see Exponentials and logarithms). For example, if against has a regression line , then .
Worked example
Interpreting bivariate datatop grade
A researcher records, for 30 towns, the number of fast-food outlets and the number of hospital admissions for heart disease , and finds strong positive correlation, with regression line . The numbers of outlets range from 4 to 40.
a) Interpret the gradient. b) Estimate when and comment on reliability. c) A journalist writes "fast food causes heart disease". Comment. d) Why should the researcher not estimate for a city with 150 outlets?
Show solutionHide solution
- a) Each additional fast-food outlet is associated with about 3.5 more admissions.
- b) . Reliable: 20 is within the data range (interpolation) and the correlation is strong.
- c) Correlation does not prove causation. Bigger towns have both more outlets and more people to be admitted: population size is a likely third variable. The data should be per head of population.
- d) 150 is far outside the range 4–40: extrapolation, so the linear pattern may not continue.
Selecting a diagram
- Histogram: continuous grouped data, especially with unequal classes.
- Box plot: quick comparison of two or more data sets, showing outliers.
- Cumulative frequency: estimating medians, quartiles and percentiles of grouped data.
- Scatter diagram: the relationship between two variables.
- Stem and leaf, dot plots: small data sets where individual values matter.
Practise this topic
Both are part of Premium.