Correlation and regression

A level Maths (Edexcel) · Edexcel 9MA0 · S2.2 · Statistics › Data presentation and interpretation

1 exam-style question plus unlimited generated ones on this topic, at up to four difficulty levels, with full mark schemes. Notes and Full packs are open to everyone. Practice needs a free account.

Or take a quick quiz: 12 questions on this subtopic in A level Maths (Edexcel), marked as you tap.

Revision notes

Interpreting scatter diagrams, correlation and regression lines for bivariate data, including why correlation does not imply causation. You also use logarithms to change \(y = ax^n\) or \(y = kb^x\) into a straight-line form and find the constants from a given regression line.

Key facts

  • \(-1 \le r \le 1\); \(r\) measures linear correlation only
  • Regression line of \(y\) on \(x\): \(y = a + bx\) (\(x\) explanatory, \(y\) response)
  • \(b\) = change in \(y\) for each increase of 1 in \(x\)
  • Interpolation: reasonably reliable. Extrapolation: unreliable
  • \(y = ax^n \Rightarrow \log y = \log a + n\log x\) (plot \(\log y\) against \(\log x\))
  • \(y = kb^x \Rightarrow \log y = \log k + x\log b\) (plot \(\log y\) against \(x\))
  • Correlation does not imply causation

Notes

Correlation

diagram
  • Bivariate data are pairs of values \((x, y)\), shown on a scatter diagram.
  • Correlation describes how close the points are to a straight line: positive (\(y\) tends to increase as \(x\) increases), negative or none; strong or weak.
  • PositiveNegativeNone
    Positive, negative and no correlation
  • The product moment correlation coefficient (PMCC), \(r\), measures the strength of linear correlation: \(-1 \le r \le 1\). \(r = \pm 1\) means all the points lie on a straight line; \(r\) near 0 means little or no linear correlation (there may still be a non-linear relationship). Find \(r\) in your calculator's statistics mode.
  • Correlation does not imply causation. Both variables may be affected by a third variable, or the link may be coincidence.
  • If the points on a scatter diagram form distinct groups (e.g. two breeds of dog), one \(r\) or one regression line for all the points can mislead; analyse each group separately.

Regression lines

diagram
  • The regression line of \(y\) on \(x\) is \(y = a + bx\), where \(x\) is the explanatory (independent) variable and \(y\) is the response (dependent) variable. The equation is given to you; you are not asked to calculate it.
  • \(b\) is the change in \(y\) for each increase of 1 in \(x\). \(a\) is the value of \(y\) when \(x = 0\), which only makes sense if \(x = 0\) is realistic.
  • Interpolation (estimating within the range of the data) is reasonably reliable when the correlation is strong. Extrapolation (outside the range) is unreliable, as the relationship may not continue.
  • 051015202530interpolation(reliable)extrapolation(unreliable)w (knots)g (knots)
    Inside the range of the data: interpolation. Outside it: extrapolation
  • Use the regression line of \(y\) on \(x\) to estimate \(y\) from \(x\), not \(x\) from \(y\)

Changing the variables with logarithms

diagram
  • \(y = ax^n\) gives \(\log y = \log a + n \log x\): the graph of \(\log y\) against \(\log x\) is a straight line with gradient \(n\) and intercept \(\log a\)
  • \(y = kb^x\) gives \(\log y = \log k + x \log b\): the graph of \(\log y\) against \(x\) is a straight line with gradient \(\log b\) and intercept \(\log k\)
  • xyy = kbxlog yxintercept log kgradient log blog y = log k + x log b
    Taking logs turns the curve y = kbx into a straight line
  • Undo the logs at the end: if \(\log_{10} k = c\), then \(k = 10^c\)
  • The closer the PMCC of the transformed data is to 1 or \(-1\), the better that model fits.

How to answer each type of question

M = method mark, A = answer mark, B = a mark on its own.

Interpret correlation and comment on a claim of causation

1 to 3 marksGrade D
  1. Describe the correlation: direction (positive or negative) and strength, in context.
  2. For a causation claim, say that correlation does not imply causation.
  3. Suggest a third variable that could affect both.

Example. Over 30 summer days, a beach kiosk records its ice cream sales and the number of people treated for sunburn at the beach first-aid post. The PMCC is 0.87.
(a) Interpret the value 0.87 in context.
(b) A reporter claims that eating ice cream causes sunburn. Comment on this claim.

Show the model answerHide the model answer
(a) Strong positive correlation: days with higher ice cream sales tend to have more people treated for sunburn
(B1)
(b) Correlation does not imply causation (B1); both are likely to increase on hot, sunny days, so the weather is a third variable affecting both
(B1)

Interpret a regression line and comment on reliability

3 to 4 marksGrade C
  1. Interpret the gradient in context with units: ‘for each extra 1 …, … increases by …’.
  2. Substitute into the equation to estimate.
  3. Say whether the value is inside the range of the data (interpolation) or outside it (extrapolation).

Example. Using a sample of 12 days from one UK station, a student finds that the regression line of daily maximum gust, \(g\) knots, on daily mean windspeed, \(w\) knots, is \(g = 5.2 + 1.9w\). The values of \(w\) in the sample were between 4 and 15.
(a) Interpret the value 1.9 in context.
(b) Estimate the daily maximum gust on a day with daily mean windspeed 10 knots.
(c) Comment on the reliability of using the line to estimate \(g\) when \(w = 25\)

Show the model answerHide the model answer
(a) For each extra 1 knot of daily mean windspeed, the daily maximum gust increases by about 1.9 knots
(B1)
(b) \(g = 5.2 + 1.9 \times 10\) (M1) \(= 24.2\) knots
(A1)
(c) 25 knots is outside the range of the data (extrapolation), so the estimate is unreliable
(B1)

Use logarithms to find the constants of a model

4 to 6 marksGrade A
  1. Take logs of the model to get a linear equation.
  2. Match its gradient and intercept with the given regression line.
  3. Undo the logs (e.g. \(10^c\)) and give the constants to the accuracy asked.
  4. For estimates, use the log equation directly to avoid rounding errors.

Example. The number of bacteria, \(N\), in a culture \(t\) hours after it is set up is modelled by \(N = kb^t\). The regression line of \(\log_{10} N\) on \(t\) is \(\log_{10} N = 2.35 + 0.18t\).
(a) Find the values of \(k\) and \(b\), giving your answers to 3 significant figures.
(b) Interpret the value of \(b\) in context.
(c) Use the model to estimate the number of bacteria after 5 hours.

Show the model answerHide the model answer
(a) \(\log_{10} N = \log_{10} k + t \log_{10} b\)
(M1)
\(k = 10^{2.35} = 224\) (A1), \(b = 10^{0.18} = 1.51\)
(A1)
(b) The number of bacteria is multiplied by about 1.51 each hour (it grows by about 51% per hour)
(B1)
(c)\[\begin{aligned}[b]\log_{10} N &= 2.35 + 0.18 \times 5 \\ &= 3.25\end{aligned}\]
(M1),
so \(N = 10^{3.25} \approx 1780\)
(A1)

Don’t lose marks

  • Interpreting the gradient without context or units, or interpreting the intercept when \(x = 0\) is not realistic.
  • Saying \(r = 0\) means ‘no relationship’: it means no linear correlation.
  • Claiming that one variable causes the other just because \(r\) is close to 1.
  • For \(y = kb^x\), taking the gradient of the log graph as \(b\) instead of \(\log b\)
  • Using the regression line of \(y\) on \(x\) to estimate \(x\) from a value of \(y\)

More tips

Memory tricks

  • Gradient template: ‘For every increase of 1 [unit] in [x], [y] increases (or decreases) by [b] [units].’
  • Power model \(y = ax^n\): take logs of both variables. Exponential model \(y = kb^x\): take logs of \(y\) only.
  • If \(\log_{10} y = c + mx\), then \(y = 10^c \times (10^m)^x\)
  • Sign check: a negative gradient must go with negative correlation.

Exam technique

  • Name both variables and their units in every interpretation.
  • For reliability, say whether the value is within the range of the data, and mention the strength of the correlation if you know it.
  • Keep the unrounded values of the constants in your calculator for later parts.

What each grade needs

What you need to be able to do, from the first marks up to the top grade.

  1. Grade E
    Describe the correlation shown in a scatter diagramState positive, negative or no correlation, and whether it is strong or weak.
  2. Grade E
    Identify the explanatory and response variablesThe explanatory (independent) variable is set or controlled, or affects the other; the response (dependent) variable responds to it.
  3. Grade D
    Interpret the gradient of a regression lineSay how much the response variable changes, with units, for each increase of 1 in the explanatory variable.
  4. Grade C
    Judge reliability: interpolation or extrapolationEstimates within the range of the data are reasonably reliable; estimates outside it are not.
  5. Grade C
    Interpret \(r\), knowing correlation is not causationRelate \(r\) to how close the points are to a straight line, and recognise that a third variable may explain the link.
  6. Grade B
    Recognise distinct groups in a scatter diagramSpot separate clusters (e.g. two species) and explain why one line or one \(r\) for all the points may mislead.
  7. Grade A
    Linearise \(y=ax^n\) or \(y=kb^x\) using logarithmsTake logs of both sides: \(\log y\) is linear in \(\log x\) for a power model, and in \(x\) for an exponential model.
  8. Grade A*
    Find model constants from a logarithmic regression lineMatch the line to \(\log y = \log a + n\log x\) or \(\log y = \log k + x\log b\) and undo the logs.

Sample questions

Written for this site in the style of Edexcel exam questions. They are not taken from real past papers.

Question 1Easy5 marks
A shop records the daily maximum temperature, \(x\) °C, and the number of ice creams sold, \(y\), on 30 days. The temperatures ranged from 8 °C to 26 °C.
The equation of the regression line of \(y\) on \(x\) is \(y = 12.4 + 3.1x\), and the product moment correlation coefficient is 0.83.
(a) Interpret the value 3.1 in the context of the question.
[1]
(b) Use the regression line to estimate the number of ice creams sold on a day with a maximum temperature of 20 °C.
[1]
(c) A student uses the line to estimate the sales on a day with a maximum temperature of 40 °C. Give a reason why this estimate is unreliable.
[1]
(d) The student also uses the line to estimate the maximum temperature on a day when 60 ice creams were sold, obtaining \(x = \frac{60 - 12.4}{3.1} = 15.4\) °C. Explain why this method is not appropriate.
[1]
(e) The student concludes: “The correlation coefficient shows that hot weather causes people to buy more ice creams.” Comment on this conclusion.
[1]
Show the answer and mark scheme
(a) Answer: For each 1 °C rise in maximum temperature, about 3.1 more ice creams are sold (on average).
  • B1 for about 3.1 more ice creams sold for each extra 1 °C of maximum temperature

Worked solution: The gradient 3.1 means that, on average, sales rise by about 3.1 ice creams for each 1 °C increase in the daily maximum temperature.

(b) Answer: 74.4, so about 74
  • B1 for 74.4 (accept 74)

Worked solution: \(y = 12.4 + 3.1 \times 20 = 74.4\), so about 74 ice creams.

(c) Answer: 40 °C is outside the range of the data (8 °C to 26 °C): extrapolation.
  • B1 for extrapolation: 40 °C is outside the range of temperatures in the data

Worked solution: The data only cover temperatures from 8 °C to 26 °C. Using the line at 40 °C is extrapolation, and the relationship may not continue (for example, very hot days might keep people indoors).

(d) Answer: The regression line of \(y\) on \(x\) should only be used to estimate \(y\) from \(x\); estimating \(x\) needs the regression line of \(x\) on \(y\).
  • B1 for the regression line of \(y\) on \(x\) is designed to predict \(y\) (sales) for a given \(x\) (temperature), not \(x\) from \(y\)

Worked solution: The line of \(y\) on \(x\) minimises errors in \(y\), so it is only suitable for estimating sales from temperature. Temperature is the explanatory variable; estimating it from sales would need a different regression line (of \(x\) on \(y\)).

(e) Answer: Correlation shows a strong positive linear association, but it does not by itself prove causation (although a causal link is plausible here).
  • B1 for correlation does not imply causation: the value 0.83 only shows a strong positive linear relationship

Worked solution: A correlation coefficient of 0.83 shows strong positive linear correlation between temperature and sales, but correlation alone does not show that one causes the other. A causal link is plausible here, but it would need other evidence.

Question 2Medium4 marks
The table shows the age of a used car, \(a\) years, and its price, £\(p\) thousand, for a random sample of 7 used cars of the same model.
Age, a (years)1456789
Price, £p thousand19.412.214.112.88.712.011.1
(a) Use your calculator to find the product moment correlation coefficient, \(r\), between \(a\) and \(p\). Give your answer to 3 significant figures.
[1]
(b) Interpret your value of \(r\) in the context of the question.
[1]
(c) A newspaper states that the value of \(r\) proves that changes in age of a used car cause changes in price of the car. Comment on this statement.
[2]
Show the answer and mark scheme
(a) Answer: −0.817
  • B1 for awrt −0.817
(b) Answer: Strong negative correlation: as the age of a used car increases, the price of the car tends to decrease.
  • B1 for negative correlation described in context (both variables mentioned)
(c) Answer: Correlation does not imply causation: the value of r only shows a linear association in this sample. Another factor could affect both variables, or the association could be due to chance in a small sample (n = 7).
  • B1 for correlation does not imply causation
  • B1 for a further valid point, e.g. a third variable could affect both, or the sample of 7 is small
Question 3Hard6 marks
A student takes a random sample of 25 days from the large data set for Hurn in 2015. For each day, the student records the daily mean windspeed, \(w\) knots, and the daily maximum gust, \(g\) knots. The values of \(w\) range from 3 to 15. The regression line of \(g\) on \(w\) is \(g = 4.8 + 1.96w\). (The values are illustrative.)
(a) Give an interpretation of the gradient of the regression line.
[1]
(b) Estimate the daily maximum gust, in mph, on a day with daily mean windspeed 9 knots. (Use 1 knot = 1.15 mph, as stated in the large data set.)
[3]
(c) On one day at Hurn the daily maximum gust was 44 knots. A student uses the regression line to estimate the daily mean windspeed that day as \(\dfrac{44 - 4.8}{1.96} = 20.0\) knots. Give two reasons why this estimate is unreliable.
[2]
Show the answer and mark scheme
(a) Answer: For each increase of 1 knot in the daily mean windspeed, the daily maximum gust increases by about 1.96 knots, on average.
  • B1 for a correct interpretation in context, including the rate (1.96 knots per 1 knot)
(b) Answer: 25.8 mph
  • M1 for substituting \(w = 9\): \(g = 22.44\) knots
  • M1 for multiplying their gust in knots by 1.15
  • A1 for awrt 25.8 mph
(c) Answer: The regression line of g on w is for estimating g from a given value of w, not w from g. Also, 20.0 knots is outside the range of daily mean windspeeds in the sample (3 to 15 knots), so this is extrapolation.
  • B1 for the regression line of g on w being for estimating g (not w)
  • B1 for extrapolation: 20.0 knots (or a gust of 44 knots) is outside the range of the data used

More in Data presentation and interpretation

Stuck? Get 1-to-1 help.

Chhetri Academy tutors GCSE and A level Maths and Science online, with a free 30-minute trial lesson.