Scatter diagrams and linear regressionEdexcel International A Level Maths: Revision notes
Section 1
Scatter diagrams and variables
A scatter diagram plots paired data 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 is the one that is controlled or used to explain; the response (dependent) variable is the one being predicted. Example: in a study of fertiliser and plant height, the fertiliser is explanatory and the height is the response. Other letters may be used, such as for temperature or for sales.
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 on is . 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 and : The line always passes through , so you can draw it by plotting that point and one other. Example: , , , , gives , , , , , so and .
Find first, then use the means to find . Check that your line passes through .
Writing the wrong way up.
Section 3
Interpreting the line
Always interpret in the context of the question.
- The gradient is the change in the response for each one-unit increase in the explanatory variable. For : each 1 °C rise in temperature increases predicted sales by 8.50 pounds.
- The intercept is the predicted response when . It only has meaning if is sensible and within the data. Regression of on is for predicting from . It should not be rearranged to predict from .
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 into the regression line to predict .
- Interpolation: lies inside the range of the data. The prediction is usually reliable.
- Extrapolation: 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.
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 , to make the numbers smaller. A regression line of on can be found as usual, then converted back by substituting the coding. Example: with gives . 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.
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
- A teacher records the number of hours of revision per week, , and the mark out of 40, , in a test for 8 students. The summary statistics are , , and . The regression line of on is .Estimate the mark of a student who revises for 6 hours per week.2 marks
- A cafe owner models the daily sales, pounds, against the midday temperature, °C, using the regression line . 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
- A gardener applies grams of fertiliser to each of five plants of the same type and measures the height, cm, of each plant after four weeks. The values of are 2, 4, 6, 8, 10 and the heights are 5, 9, 10, 15, 16. For these data , , and .Find the values of and .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).