Least Squares Regression Lines From Summary Statistics | Edexcel IAL Maths notes
Free preview: Least Squares Regression Lines From Summary Statistics
The Line of Best Fit, Done Properly
Unit S1 (WST01): Statistics 1
Ask ten people to draw a line of best fit by eye on the same scatter diagram and you get ten different lines. Which is "best"? We need a rule everyone agrees on, so that everyone gets the same line and the same predictions.
You met regression lines two notes ago, where we interpreted a calculator. Now we see what "best" means and calculate the line from summary statistics.
The words you need
- The independent (explanatory) variable x is the one controlled or measured first.
- The dependent (response) variable y is the one we want to predict.
- For each point, the vertical gap from the point to the line, , is called its residual.

Following the diagram
- The line is the regression line of y on x for the eight points from the PMCC note.
- Each short vertical segment is a residual: positive above the line, negative below.
- The least squares line is the one that makes the sum of the squared residuals as small as possible.
- Why vertical gaps? Because we are predicting y from x, so errors in y are what matter.
💡 In plain words
- b is the gradient: how much y changes, on average, when x goes up by 1.
- The line always passes through the mean point , which is how a is found.
Where the formula comes from
- It can be shown that the best line passes through . So measure from there: let and , and the line is .
- Sum of squared residuals: .
- This is a quadratic in b with positive coefficient. Its minimum is where the derivative is zero: , so .
Method: the regression line of y on x
- In S1 the regression line is always the line of y on x: x is the explanatory variable and y is the response.
- It is built to predict y from x, so use it only that way round.
- If a question uses other letters, such as t and h, the explanatory variable plays the part of x.
- Find and (and ).
- .
- , using the unrounded b.
- Write with sensible rounding (3 or 4 s.f.).
👀 Watch me do it: the eight points from the PMCC note:
| What I write | Why I do it |
|---|---|
| Step 2: positive, matching the positive correlation. | |
| (using the unrounded b) | Step 3: 1.97959... times 7.5 = 14.847. |
| Regression line: | Step 4. |
✏️ YOUR TURN 1
Try this first:
For 10 pairs: . Find the regression line of y on x.
Answer:
- , .
- , .
- .
Unlock the full note: start 7 days free.
Log in or subscribe to read the rest of this note. Members also get the AI tutor, practice quizzes, mock exams and flashcards for this topic.
All notes in S1.3 Correlation and Regression
- Scatter Diagrams, Correlation and Regression Lines
- The Product Moment Correlation Coefficient From Summary Statistics
- Least Squares Regression Lines From Summary Statistics
What's inside for this topic
3 teacher notes, 168 practice questions, 40 flashcards, 2 quizzes.
Get the full notes, every practice question, flashcards, quizzes and mock papers.
Previous note: The Product Moment Correlation Coefficient From Summary Statistics