4.10 Regression line of x on y
Studying this course? Keep your progress in one place.
Key facts
- on predicts from ; on predicts from . Never swap them.
- Find on the GDC with as the independent list; do not rearrange the on line.
- Both lines pass through , so they intersect there.
- The lines are the same only when .
- Predictions are reliable only with strong correlation and interpolation.
Why two regression lines?
on minimises vertical distances and predicts ; on minimises horizontal distances and predicts .
The regression line of on minimises the squared vertical distances. The regression line of on , , minimises the squared horizontal distances. The lines differ unless ; the weaker the correlation, the further apart they are.
So an on line cannot reliably predict from , and vice versa. Ask: which variable am I predicting? It goes on the left of the line you use.
You want to predict from a given . Which line do you use?
Finding the x on y line
Run linear regression with the lists swapped: independent, dependent.
The calculator returns an equation in its own letters; rewrite it as . For sleep hours and reaction time ms, it gives , while the on line is . Give coefficients to 3 s.f., but keep full accuracy for predictions.
- 1
Enter the data in two lists
values and values
- 2
Swap the roles
independent, dependent
- 3
Run linear regression
Read the slope and intercept
- 4
Rewrite
As
Worked example
Data: . Find the on line.
- 1
Enter the values as the independent list and the values as the dependent list.
- 2
The calculator gives slope and intercept .
On the GDC, which list is the independent (explanatory) list for the on line?
The mean point
Both least squares lines pass through the mean point , so they intersect there.
So solving the two equations simultaneously gives and . If you know one mean and one line, substitute to find the other mean. An unknown data value can be found from a given mean: gives .
To verify that a line passes through the mean point, substitute one mean and show you get the other.
- Both lines pass through
- Solve simultaneouslyto find and
Worked example
The on line is and the on line is . Find the mean point.
- 1
Both lines pass through , so solve simultaneously.
- 2
Substitute: .
- 3
, so , then .
Two regression lines meet at . What is ?
Prediction and reliability
A prediction is reliable when the correct line is used, the correlation is strong and the value lies inside the data range.
Predicting outside the data range is extrapolation: the pattern may not continue. For example, reaction times in the data run from 248 ms to 305 ms, so estimating sleep for 340 ms is extrapolation. In an exam comment, refer to both and the range of the data. A strong correlation does not rescue an extrapolation.
- 1
Correct line
on to predict
- 2
Strong correlation
close to 1
- 3
Interpolation
The given value is within the range of its own variable
Reaction times in the data run from 248 ms to 305 ms. You use the on line for . What is this?
Try an exam question
The regression line of on is and the regression line of on is . (a) Find the mean point . (b) State which line should be used to estimate when .
[4 marks]
- [1]Both lines pass through : .
- [1], so .
- [1].
- [1]Use the on line.
That's the notes covered.
Carry on to the next subtopic.
Try a question
Find the mean point of the data.
1 mark, marked against the mark scheme
Find the mean point of the data.
1 mark, marked against the mark scheme