4.4 Correlation and regression of y on xIB Maths: Analysis and Approaches HL: Revision notes
Section 1
Scatter diagrams and types of correlation
Bivariate data are pairs measured on the same items. Plotted as a scatter diagram, they can show:
- positive correlation: tends to increase as increases;
- negative correlation: tends to decrease as 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 , with roughly equal numbers of points on each side.
Section 2
Pearson's correlation coefficient r
Pearson's product-moment correlation coefficient measures the strength and direction of a linear relationship. It is found with technology and satisfies .
- close to : strong positive linear correlation; close to : strong negative.
- close to : little or no linear correlation.
Rough guide: strong, moderate, weak. When a question gives a critical value, the correlation is significant if is larger than it.
is only meaningful for linear relationships: points lying on a curve can give a small even though and are closely related.
Saying 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.
Section 4
The regression line of y on x
The regression line of on , , is found with technology (it minimises the sum of the squared vertical distances from the points to the line). It always passes through .
Interpret the parameters in context:
- (gradient): the change in for each increase of 1 in . For (price against age), the price falls by about per year of age.
- (-intercept): the predicted when ; only meaningful if makes sense and is near the data.
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.
Describing as 'the total change'. It is the change per unit of , with units, e.g. dollars per km.
Section 5
Making predictions safely
- Interpolation: predicting for an 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 on line should only be used to predict from . Rearranging it to predict from is not valid.
- A prediction is also unreliable if is small.
Must know
- Use technology for and for the line .
- Describe correlation by direction (positive/negative) and strength (strong/weak), in context.
- measures linear correlation only; correlation does not imply causation.
- The line passes through : substitute to get .
- Interpret as change per unit and as the value at .
- Predict from only, and avoid extrapolation.
That's the notes covered.
Carry on to the next subtopic.