All revision notes topics

Scatter diagrams and linear regressionEdexcel International A Level Maths: Revision notes

Section 1

Scatter diagrams and variables

A scatter diagram plots paired data (x,y)(x,y) and shows whether there is a relationship between two variables. Look for the direction (positive or negative), the strength (how closely points follow a line) and whether the pattern is roughly linear. The explanatory (independent) variable xx is the one that is controlled or used to explain; the response (dependent) variable yy is the one being predicted. Example: in a study of fertiliser and plant height, the fertiliser xx is explanatory and the height yy is the response. Other letters may be used, such as tt for temperature or ss for sales.

Key termsscatter diagramexplanatory variableresponse variable
Common mistake

Putting the variables on the wrong axes. The explanatory variable goes on the horizontal axis.

Section 2

The least squares regression line

The regression line of yy on xx is y=a+bxy=a+bx. It is the least squares line, the one that makes the sum of the squared vertical distances from the points to the line as small as possible. Derivations are not required. Using Sxx=∑x2−(∑x)2nS_{xx}=\sum x^2-\frac{(\sum x)^2}{n} and Sxy=∑xy−∑x∑ynS_{xy}=\sum xy-\frac{\sum x\sum y}{n}: b=SxySxx,a=yˉ−bxˉ.b=\frac{S_{xy}}{S_{xx}},\qquad a=\bar{y}-b\bar{x}. The line always passes through (xˉ,yˉ)(\bar{x},\bar{y}), so you can draw it by plotting that point and one other. Example: ∑x=30\sum x=30, ∑y=55\sum y=55, ∑x2=220\sum x^2=220, ∑xy=386\sum xy=386, n=5n=5 gives Sxx=40S_{xx}=40, Sxy=56S_{xy}=56, b=1.4b=1.4, xˉ=6\bar{x}=6, yˉ=11\bar{y}=11, so a=11−1.4×6=2.6a=11-1.4\times6=2.6 and y=2.6+1.4xy=2.6+1.4x.

Key termsregression lineleast squares$S_{xx}$ and $S_{xy}$
Exam tip

Find bb first, then use the means to find aa. Check that your line passes through (xˉ,yˉ)(\bar{x},\bar{y}).

Common mistake

Writing b=SxxSxyb=\frac{S_{xx}}{S_{xy}} the wrong way up.

Section 3

Interpreting the line

Always interpret in the context of the question.

  • The gradient bb is the change in the response for each one-unit increase in the explanatory variable. For s=120+8.5ts=120+8.5t: each 1 °C rise in temperature increases predicted sales by 8.50 pounds.
  • The intercept aa is the predicted response when x=0x=0. It only has meaning if x=0x=0 is sensible and within the data. Regression of yy on xx is for predicting yy from xx. It should not be rearranged to predict xx from yy.
Key termsgradientintercept
Common mistake

Giving a numerical meaning with no context. Name the variables and their units, and say 'predicted'.

Section 4

Predictions: interpolation and extrapolation

Substitute a value of xx into the regression line to predict yy.

  • Interpolation: xx lies inside the range of the data. The prediction is usually reliable.
  • Extrapolation: xx lies outside the range of the data. The prediction may be unreliable, because the linear relationship may not continue. Example: a model fitted for temperatures 12 °C to 28 °C should not be used at 5 °C. A good answer says the value is outside the range, so it is extrapolation, and the relationship may not continue.
Key termsinterpolationextrapolation
Exam tip

For a 'comment on reliability' question, state the range of the data, say whether the value is inside it, and name interpolation or extrapolation.

Section 5

Linear change of variable (coding)

Data are sometimes coded, for example u=x−405u=\frac{x-40}{5}, to make the numbers smaller. A regression line of yy on uu can be found as usual, then converted back by substituting the coding. Example: y=89.4−7.2uy=89.4-7.2u with u=x−405u=\frac{x-40}{5} gives y=89.4−1.44(x−40)=147−1.44xy=89.4-1.44(x-40)=147-1.44x. Notice that the gradient is divided by 5, the coding factor, and that the original units apply to the final line. Remember to interpret the gradient of the line in the original variables.

Key termscodingcoded variable
Common mistake

Leaving the final equation in terms of the coded variable when the question asks for the original one.

That's the notes covered.

Carry on to the next subtopic.

Exam questions on Scatter diagrams and linear regression

  1. A teacher records the number of hours of revision per week, xx, and the mark out of 40, yy, in a test for 8 students. The summary statistics are xˉ=5\bar{x}=5, yˉ=22\bar{y}=22, Sxx=40S_{xx}=40 and Sxy=62S_{xy}=62. The regression line of yy on xx is y=a+bxy=a+bx.
    Estimate the mark of a student who revises for 6 hours per week.2 marks
  2. A cafe owner models the daily sales, ss pounds, against the midday temperature, tt °C, using the regression line s=120+8.5ts=120+8.5t. The model was fitted to data collected on days when the temperature was between 12 °C and 28 °C.
    A student uses the model to predict the sales on a day when the midday temperature is 5 °C. Explain why this prediction may be unreliable.2 marks
  3. A gardener applies xx grams of fertiliser to each of five plants of the same type and measures the height, yy cm, of each plant after four weeks. The values of xx are 2, 4, 6, 8, 10 and the heights are 5, 9, 10, 15, 16. For these data ∑x=30\sum x=30, ∑y=55\sum y=55, ∑x2=220\sum x^2=220 and ∑xy=386\sum xy=386.
    Find the values of SxxS_{xx} and SxyS_{xy}.3 marks
See the full worksheet

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).