· H2 Mathematics — Ten-Year Series, worked ← All 11 questions

2022 A-Level · Paper 2 · Question 10

2022 H2 Maths Paper 2, Question 10

Correlation and Regression 14 marks Regression Lines
Download Paper 2 solutions (PDF)

Part (a)

2 marks

There is a fairly strong negative linear correlation between distance driven, dd, and price, pp.

Explanation: the product moment correlation coefficient r=−0.78r = - 0.78 is negative and reasonably close to −1- 1, so cars in this sample that have been driven further tend to have a lower price, and this decreasing relationship is reasonably well described by a straight line.

To check your answer: on the scatter diagram, the point with the largest price (p=22500p = 22500) has the smallest distance (d=5055d = 5055), and prices generally fall as distance increases across the rest of the points, consistent with a negative correlation. ✓

Part (b)

1 mark

The PMCC would be unchanged; it would remain r=−0.78r = - 0.78.

Explanation: converting units is a linear scaling of each variable — dkm=1.6 dmilesd_{\text{km}} = 1.6\, d_{\text{miles}} and pSGD=1.7 pGBPp_{\text{SGD}} = 1.7\, p_{\text{GBP}}, i.e. each variable is multiplied by a positive constant. The PMCC is unaffected by this kind of linear (origin-preserving, positive-scale) transformation of either variable.

Part (c)

1 mark

This car should not be used in any analysis of the relationship between dd and pp for the standard model.

Explanation: being a special version with a bigger engine and extra features, it is not part of the same population as the rest of the data. Its price is likely to be higher for reasons unrelated to distance driven, so including it would bias any analysis of the relationship for the standard model.

Part (d)

5 marks

We exclude the special car and compute x=100 000dx = \frac{100\, 000}{d} for the remaining 66 cars.

dd 4545245452 3755137551 3010030100 2403024030 1458814588 89548954
x=100 000dx = \frac{100\, 000}{d} 2.202.20 2.662.66 3.323.32 4.164.16 6.856.85 11.1711.17
pp 1060010600 1070010700 1090010900 1190011900 1245012450 1520015200

We plot pp against xx and draw a line of best fit by eye.

Sketch for question 10

∴\therefore scatter diagram of pp against 100 000d\frac{100\, 000}{d}, with line of best fit as sketched above.

Part (e)

The distances used in the least squares regression line of pp on 100 000d\frac{100\, 000}{d} are the vertical distances from each plotted point to the line — that is, the difference between each observed price pip_{i} and the price predicted by the line at the corresponding xi=100 000dix_{i} = \frac{100\, 000}{d_{i}}.

These distances are squared so that points above and below the line (positive and negative deviations) do not cancel out when summed, and so that points further from the line are penalised more heavily than points close to it. The line is chosen to make the sum of these squared vertical distances as small as possible, which is why the procedure is called the method of least squares.

∴\therefore vertical distances from each point to the line are squared and summed; the line minimising this sum is the least squares regression line.

Part (f)

3 marks

By GC, performing linear regression of pp on x=100 000dx = \frac{100\, 000}{d} for the 66 remaining cars,

p=9398+506x,r=0.987 (3 s.f.)p = 9398 + 506x,\quad r = 0.987\ \left( \text{3 s.f.} \right)
To check your answer: with xˉ≈5.062\bar{x} \approx 5.062 and pˉ≈11958.3\bar{p} \approx 11958.3, Sxx=∑(xi−xˉ)2≈73.06S_{xx} = \sum\left( x_{i} - \bar{x} \right)^{2} \approx 73.06 and Sxp=∑(xi−xˉ)(pi−pˉ)≈36949S_{xp} = \sum\left( x_{i} - \bar{x} \right)\left( p_{i} - \bar{p} \right) \approx 36949, giving gradient ≈3694973.06≈505.7\text{≈}\frac{36949}{73.06} \approx 505.7 and intercept ≈11958.3−505.7(5.062)≈9398.5\text{≈}11958.3 - 505.7(5.062) \approx 9398.5, matching the GC output. ✓

∴\therefore p=9398+506(100 000d)p = 9398 + 506\left( \frac{100\, 000}{d} \right) (3 s.f. coefficients), r=0.987r = 0.987 (3 s.f.).

Part (g)

2 marks

For d=5055d = 5055:

x=100 0005055=19.8 (3 s.f.)x = \frac{100\, 000}{5055} = 19.8\ \left( \text{3 s.f.} \right)

Substituting into the regression equation from (f):

p=9398+506(19.78)=19403p = 9398 + 506(19.78) = 19403

This gives an estimated price of about £1940019400.

Explanation: this estimate is not likely to be reliable. The 66 points used to fit the line have xx ranging only from about 2.202.20 to 11.1711.17, and x=19.78x = 19.78 lies well outside this range, so using the equation here is an extrapolation: the linear relationship may not hold beyond the data. Moreover, d=5055d = 5055 is exactly the special car excluded in (c), which is not of the standard specification the line was fitted to, so the estimate is doubly unreliable.

∴\therefore estimated price ≈£19400\text{≈}\pounds 19400, but this is unreliable — it is an extrapolation, and the car is not of the standard specification.

This is how we mark, and how we teach.

Every Ten-Year Series question, worked in full, with the reasoning written out and the traps named.

Find out more