4.4 Correlation and linear regressionIB Maths: Applications and Interpretation SL: Revision notes
Section 1
Scatter diagrams and correlation
Bivariate data are pairs of values . A scatter diagram plots them as points. Correlation describes the linear association between the variables: positive (as increases, tends to increase), negative ( tends to decrease) or zero (no linear pattern). It is strong if the points lie close to a straight line and weak if they are widely scattered; with no pattern there is no correlation. A curved pattern can be strong without being linear. Example: hours of revision against test score usually shows positive correlation; the age of a car against its value usually shows negative correlation.
Section 2
Pearson's product-moment correlation coefficient
Pearson's product-moment correlation coefficient measures the strength and direction of linear correlation, with . is perfect positive, perfect negative and no linear correlation. A common guide: close to is strong, around moderate, close to weak. Use your GDC to calculate (hand calculation can help understanding). Critical values of will be given where appropriate: if is greater than the critical value for the sample size, the linear correlation is significant. Note that is only meaningful for linear relationships: a strong curved pattern can give an close to . Example: and give , strong positive linear correlation.
Treating as a percentage or as the gradient. It is a measure of how close the points lie to a line, not how steep the line is.
Section 3
Correlation and causation
Correlation does not imply causation. Two variables may move together because of a third variable (ice-cream sales and sunburn both rise in hot weather), or by coincidence. A causal claim needs more evidence than a high . When asked to comment, say that the data show an association and name a plausible third variable if you can.
Writing 'a high correlation shows that causes '. State only that they are associated.
Section 4
Line of best fit by eye
On a scatter diagram, draw a straight line of best fit by eye so that about half the points lie on each side and the line follows the trend. It should pass through the mean point . You can then read approximate values, or find its equation from two points on it. Example: for , the mean point is ; any good line passes through it.
Section 5
Regression line of y on x and its parameters
The regression line of on , , is found with your GDC (linear regression); it minimises the squares of the vertical distances from the points to the line and passes through . Interpret the parameters in context: (gradient) is the average change in for each one-unit increase in ; (intercept) is the predicted value of when (which may not make sense if is outside the data). Example: for the data above. : each extra unit of goes with 1.2 more units of ; mean point check .
State the interpretation of and using the variable names and units from the question.
Section 6
Prediction, interpolation and extrapolation
Use the regression line to predict for a given by substituting. A prediction within the range of the data is interpolation and is reasonably reliable if is high. A prediction outside the range is extrapolation and is unreliable: the trend may not continue (a predicted negative value of a car, for example, is impossible). The line of on should only be used to predict from . Predicting from a given by rearranging the equation is not always reliable; use the regression line of on instead.
Using the on line to find for a given . Use the on regression instead.
That's the notes covered.
Carry on to the next subtopic.
Exam questions on 4.4 Correlation and linear regression
- Over eight days a café records the maximum daily temperature, C, and the number of cold drinks sold, . : 18, 21, 24, 26, 29, 31, 34, 36. : 42, 55, 61, 70, 82, 85, 96, 104. The regression line of on has equation . Use your GDC.Use your regression line to estimate the number of cold drinks sold on a day when the maximum temperature is C.2 marks
- Over 12 months, a coastal town records its monthly ice-cream sales and the number of sunburn cases treated at its clinic. Pearson's product-moment correlation coefficient for the data is .Suggest a third variable that could explain the correlation between ice-cream sales and sunburn cases.2 marks
- A teacher records the number of hours, , that eight students revised for a test and their test score, (out of 100). : 2, 4, 5, 6, 8, 9, 10, 12. : 45, 52, 50, 61, 63, 70, 66, 78. Use your GDC.Find the value of Pearson's product-moment correlation coefficient , and the equation of the regression line of on .3 marks
Written by the Exaim team, led by Shaun Daswani (Head of Upper Secondary, Improve ME Institute; MSc Financial Mathematics, Imperial College London; BSc, UCL) and Jason Daswani (operational lead, Improve ME Institute; LSE).