Correlation and Regression

Probability & Statistics

Correlation and regression are the H2 Maths tools for describing the linear relationship between two variables. A scatter diagram gives an immediate visual impression of type (positive, negative, or none) and strength; the product-moment correlation coefficient rr quantifies this precisely, and the least-squares regression line lets you make estimates — provided you use it carefully.

What you need to know

yyˉ=b(xxˉ).y - \bar{y} = b\,(x - \bar{x}).

Worked example 1 — Interpreting a given correlation coefficient

A study records the number of hours of revision xx and the score yy (out of 100) for 12 students. The GC gives r=0.88r = 0.88.

Comment on the correlation between hours of revision and score, and state one limitation of this conclusion.

Solution.

Since r=0.88r = 0.88 is positive and close to 11, there is a strong positive linear correlation between hours of revision and score: students who revised for more hours tended to score higher.

However, correlation does not imply causation. Other factors (prior ability, quality of resources, sleep) may also influence scores. The conclusion applies only to the range of revision hours observed in the sample; extrapolating beyond that range may not be valid.

Worked example 2 — Using the regression line to estimate a value

The heights xx (in cm) and shoe sizes yy of 10 adults are recorded. Summary statistics give xˉ=170\bar{x} = 170, yˉ=8.2\bar{y} = 8.2, and the GC produces the regression line of yy on xx:

y^=14.3+0.132x.\hat{y} = -14.3 + 0.132x.

The correlation coefficient is r=0.91r = 0.91. The heights in the sample range from 155 cm to 185 cm.

(a) Estimate the shoe size of an adult of height 175 cm, and comment on the reliability of this estimate.

(b) A colleague suggests using this line to estimate the shoe size of a child of height 120 cm. Comment on this suggestion.

Solution.

(a) Substituting x=175x = 175:

y^=14.3+0.132×175=14.3+23.1=8.8.\hat{y} = -14.3 + 0.132 \times 175 = -14.3 + 23.1 = 8.8.

The estimated shoe size is 8.8. Since r=0.91r = 0.91 indicates strong positive linear correlation and x=175x = 175 cm lies within the observed data range (155 cm to 185 cm), this is an interpolation and the estimate is reliable.

(b) A height of 120 cm is well outside the observed range, so this would be an extrapolation. The linear model may not hold for children, and the estimate would be unreliable. The colleague’s suggestion is not appropriate.

Worked example 3 — Verifying the line passes through (xˉ,yˉ)(\bar{x}, \bar{y})

Using the data from Worked example 2, verify that (xˉ,yˉ)=(170,8.2)(\bar{x}, \bar{y}) = (170, 8.2) lies on the regression line.

Solution.

Substitute x=xˉ=170x = \bar{x} = 170 into the regression equation:

y^=14.3+0.132×170=14.3+22.44=8.14.\hat{y} = -14.3 + 0.132 \times 170 = -14.3 + 22.44 = 8.14.

This does not exactly equal yˉ=8.2\bar{y} = 8.2 due to rounding in the stated coefficients. In an exam, the GC’s unrounded coefficients will satisfy y^=yˉ\hat{y} = \bar{y} exactly when x=xˉx = \bar{x}. This property is a useful check that you have used the correct regression line.

Common mistakes

Ask MathChat about Correlation and Regression →