All revision notes topics

4.4 Correlation and regression of y on xIB Maths: Analysis and Approaches SL: Revision notes

Section 1

Scatter diagrams and types of correlation

Bivariate data are pairs (x,y)(x, y) measured on the same items. Plotted as a scatter diagram, they can show:

  • positive correlation: yy tends to increase as xx increases;
  • negative correlation: yy tends to decrease as xx increases;
  • zero / no correlation: no linear pattern.

Correlation is strong when points lie close to a straight line and weak when they are scattered. A line of best fit by eye should pass through the mean point (xˉ,yˉ)(\bar{x}, \bar{y}), with roughly equal numbers of points on each side.

Key termsbivariate datapositive correlationnegative correlationmean point

Section 2

Pearson's correlation coefficient r

Pearson's product-moment correlation coefficient rr measures the strength and direction of a linear relationship. It is found with technology and satisfies −1≤r≤1-1 \le r \le 1.

  • rr close to 11: strong positive linear correlation; close to −1-1: strong negative.
  • rr close to 00: little or no linear correlation.

Rough guide: ∣r∣≥0.75|r| \ge 0.75 strong, 0.5≤∣r∣<0.750.5 \le |r| < 0.75 moderate, 0.25≤∣r∣<0.50.25 \le |r| < 0.5 weak. When a question gives a critical value, the correlation is significant if ∣r∣|r| is larger than it.

rr is only meaningful for linear relationships: points lying on a curve can give a small rr even though xx and yy are closely related.

Key termsPearson's product-moment correlation coefficient
Common mistake

Saying r=0r = 0 means 'no relationship'. It means no linear relationship; there could still be a curved one.

Section 3

Correlation is not causation

A strong correlation shows that two variables move together, not that one causes the other. The link may come from a third variable affecting both (hot weather increases both ice cream sales and sunburn), or be a coincidence. In exam comments, say correlation does not imply causation and name a plausible third factor in context.

Key termscausationthird variable

Section 4

The regression line of y on x

The regression line of yy on xx, y=ax+by = ax + b, is found with technology (it minimises the sum of the squared vertical distances from the points to the line). It always passes through (xˉ,yˉ)(\bar{x}, \bar{y}).

Interpret the parameters in context:

  • aa (gradient): the change in yy for each increase of 1 in xx. For y=−1850x+21400y = -1850x + 21400 (price against age), the price falls by about $1850\text{\textdollar}1850 per year of age.
  • bb (yy-intercept): the predicted yy when x=0x = 0; only meaningful if x=0x = 0 makes sense and is near the data.
Key termsregression line of y on xgradienty-intercept
Exam tip

Write the equation with the variables of the question and give both coefficients to 3 s.f., but use the unrounded values for later predictions.

Common mistake

Describing aa as 'the total change'. It is the change per unit of xx, with units, e.g. dollars per km.

Section 5

Making predictions safely

  • Interpolation: predicting for an xx inside the data range; reliable if the correlation is strong.
  • Extrapolation: predicting outside the data range; unreliable, because the linear pattern may not continue (a revision line predicting a score of 130 out of 100 is an obvious example).
  • A yy on xx line should only be used to predict yy from xx. Rearranging it to predict xx from yy is not valid.
  • A prediction is also unreliable if ∣r∣|r| is small.
Key termsinterpolationextrapolation

Must know

  • Use technology for rr and for the line y=ax+by = ax + b.
  • Describe correlation by direction (positive/negative) and strength (strong/weak), in context.
  • rr measures linear correlation only; correlation does not imply causation.
  • The line passes through (xˉ,yˉ)(\bar{x}, \bar{y}): substitute xˉ\bar{x} to get yˉ\bar{y}.
  • Interpret aa as change per unit and bb as the value at x=0x = 0.
  • Predict yy from xx only, and avoid extrapolation.

That's the notes covered.

Carry on to the next subtopic.