Statistics · Data presentation
1 / 14
Correlation and regression
Bivariate data and scatter diagrams; describing correlation by its direction (positive/negative) and strength; why correlation does not imply causation; and using a given regression line y = a + bx to make and interpret predictions — including why prediction inside the data range (interpolation) is safe but outside it (extrapolation) is not. Interpreting the PMCC is flagged as A-level.
Statistics · Data presentation
Correlation and regression
Bivariate data and scatter diagrams; describing correlation by its direction (positive/negative) and strength; why correlation does not imply causation; and using a given regression line y = a + bx to make and interpret predictions — including why prediction inside the data range (interpolation) is safe but outside it (extrapolation) is not. Interpreting the PMCC is flagged as A-level.
Why it works
So far each value stood alone. Bivariate data comes in pairs — a temperature and the ice-cream sales that day — and the question becomes whether the two move together. Plot each pair as a point on a scatter diagram and the shape of the cloud tells you.Correlation describes a linear tendency in that cloud, in two parts:
- Direction — positive correlation if tends to rise as rises (points
- Strength — strong if the points lie close to a straight line, weak if
Here is a scatter of sales against temperature — a strong positive correlation, with the regression line drawn through it:Correlation is not causation. A correlation between two variables does not mean one causes the other. Ice-cream sales and drownings rise together, but neither causes the other — a third variable, hot weather, drives both. Always ask whether a lurking variable could explain the link.
The regression line. When the points show linear correlation we summarise them with the regression line of on , written
where is the explanatory (independent) variable — the one you control or that comes first — and is the response (dependent) variable. The line is the "line of best fit" chosen to minimise the total squared vertical distance from the points (least squares); in AS you are given the equation or read it from a calculator, not asked to derive it.
Reading the equation in context. The two numbers carry meaning:
- the gradient is the change in for each -unit increase in (e.g.
- the intercept is the predicted when — meaningful only if
Predicting — interpolation vs extrapolation. To predict, substitute the -value:
- Interpolation — predicting for an inside the range of the data. Reliable,
- Extrapolation — predicting for an outside the data range. Unreliable: you
A-level only — the product moment correlation coefficient (PMCC). The PMCC, , puts a number on linear correlation:
Its sign gives the direction and its size gives the strength: near is strong positive, near strong negative, and near means no linear correlation (there could still be a non-linear relationship). has no units. Calculating is a Year-2 / A-level skill; at AS you describe correlation in words.