Making Predictions from Data
Use a regression line to predict values, work backwards to a target, and judge when a prediction can be trusted.
Intermediate25 min18 problems
Definition
Once you have a regression line , you can use it to make predictions. The symbol (read "y-hat") is the predicted value: the value the line expects, not a measured one.
There are two kinds of questions:
- **Predict from **: substitute the -value and calculate .
- **Find for a target **: set equal to the target and solve: .
Where the -value lies matters:
- Interpolation: is inside the range of the data. The prediction is usually reasonable.
- Extrapolation: is outside the range of the data. The pattern may not continue, so the prediction is risky.
How much you can trust a prediction depends on the strength of the correlation: when is close to or , the points hug the line and predictions are reliable; when is close to , they are only rough guesses.
Try it now
A regression line is . What is the predicted value when ?
Interactive Visual
Function graph
Tap or hover over the graph to read off values.
- Predicted score ŷ = 5x + 52 = 84.5
- Hours outside the data range (0 = interpolation) = 0 h
ŷ = 5x + 52Maximum score 100Data starts (1 h)Data ends (8 h)
Scatter Plot
Strong correlation: hours studied and test score
ŷ = 5x + 52
r = 0.992 · strong positive correlation
Tap a point to see its coordinates.
Scatter Plot
Weak correlation: hours of sleep and test score
ŷ = 2x + 59
r = 0.209 · weak positive correlation
Tap a point to see its coordinates.
Interactive Sandbox
Expression Calculator
Try these:
History
No calculations yet
Practice Problems
18 problemsProblem 1 of 18
Easy
A regression line is . What is the predicted value when ?
Glossary
- Predicted value
- The value of that the regression line gives for a chosen
- Data range
- The interval from the smallest to the largest -value in the data
- Interpolation
- Predicting for an -value inside the data range
- Extrapolation
- Predicting for an -value outside the data range; risky because the pattern may change
- Explanatory variable
- The variable used to make the prediction (for example hours studied)
- Response variable
- The variable being predicted (for example the test score)
Formula Card
Predict y from x
Substitute the x-value and calculate
Find x for a target y
Subtract the intercept, then divide by the slope
Interpolation check
If x is inside the data range, the prediction is interpolation; otherwise it is extrapolation