Teacher Guide: Making Predictions from Data
Use a regression line to predict values, work backwards to a target, and judge when a prediction can be trusted.
Use this lesson with your class
Free, no student accounts needed.
Share with students
Students open the lesson and practise with instant feedback.
Class quiz
10 questions on Regression. Students join with a name, you see everyone's score.
For Teachers
- Substitute an x-value into a regression equation to calculate a predicted value
- Solve a regression equation for x to find the input that gives a target value
- Distinguish interpolation from extrapolation and explain why extrapolation is risky
- Round predictions to a precision and direction that fit the context
- Judge the reliability of a prediction from the strength of the correlation
- • Introduction to Regression: the line of best fit
- • Linear Regression: slope and intercept of a regression line
- • Correlation Coefficient: reading as strong, moderate or weak
- • Interpreting Data and Making Predictions: general trends in data
- • Solving two-step linear equations
- 1. A line predicts a score of 112 out of 100. What went wrong, and how could you have spotted it before calculating?
- 2. When should a prediction be rounded up rather than to the nearest whole number?
- 3. Two lines give predictions with the same method. Why can one be trusted much more than the other?
- 4. Weather forecasts are less accurate for next week than for tomorrow. How is that like extrapolation?
A predicted value is what will definitely happen
Remediation: Show the scatter plot: real points lie above and below the line. Compare the prediction for 7 hours with the actual scores of 62 and 88 in the weak data set.
If the equation gives a number, the number must make sense
Remediation: Let students extrapolate on purpose (12 hours of study, 15 hours of battery) and check the answers against reality: 112 points, -20%.
To find x for a target, plug the target into x
Remediation: Ask first: is the given number an x-value or a y-value? Label the units (hours or points) before writing the equation.
For Struggling Students:
- • Use whole-number slopes and intercepts first
- • Give a table with the data range written at the top of each problem
- • Practice only predicting y from x before solving for x
For On-Level Students:
- • Mix prediction and solving-for-x questions with decimal slopes
- • Classify each prediction as interpolation or extrapolation
- • Decide the rounding direction from the context
For Advanced Students:
- • Compare predictions from a strong and a weak data set and explain the difference using r
- • Find the x-value where a model gives an impossible result (battery at 0%, score at 100)
- • Research a real forecast and discuss how far it extrapolates
- 8.SP.A.3 (CCSS.MATH.CONTENT.8.SP.A.3)
Use the equation of a linear model to solve problems in the context of bivariate measurement data, interpreting the slope and intercept
- HSS.ID.B.6.A (CCSS.MATH.CONTENT.HSS.ID.B.6.A)
Fit a function to the data; use functions fitted to data to solve problems in the context of the data
- HSS.ID.C.8 (CCSS.MATH.CONTENT.HSS.ID.C.8)
Compute (using technology) and interpret the correlation coefficient of a linear fit
- visualPrediction Slider
Students move x along the regression line and watch the prediction and the distance outside the data range change
- activityPredict, Then Check
Students predict values from a class data set, then compare them with real measurements for strong and weak data
- worksheetInterpolation or Extrapolation?
Mixed practice: predict, solve for x, classify each prediction and round in context
Lesson Content
Everything students see: definition, examples, common mistakes, applications. Tap to open.
Lesson Content
Everything students see: definition, examples, common mistakes, applications. Tap to open.
Definition
- **Predict from **: substitute the -value and calculate .
- **Find for a target **: set equal to the target and solve: .
- 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.
Worked Examples
Check where the x-value lies
Substitute x = 6.5 into the equation
Multiply
Add the intercept
Answer: The predicted score is , so about points. Because hours is inside the data, this is interpolation and the prediction is reasonable.
Common Mistakes
Putting the target y-value in place of x: for a target score of , calculating
Why it's wrong: is a score, so it is a -value. Substituting it for answers a different question (the score after 80 hours of study).
Correct: Set the equation equal to the target and solve for : , so .
Trusting extrapolation: predicting points for hours of study
Why it's wrong: The pattern was only observed from 1 to 8 hours. Outside that range it can change, and here the score cannot even go above 100.
Correct: Always check the data range first. Mark predictions outside it as extrapolation and treat them with caution.
Rounding without thinking about the situation: reporting points as exact, or rounding hours down to
Why it's wrong: A prediction is an estimate, so extra decimals suggest more precision than it has. Rounding down a target can leave you short (5 hours predicts only 77 points).
Correct: Round to the precision of the data, and round up when you have to reach a goal or cover everyone (time, chairs, buses).
Treating every prediction as equally reliable
Why it's wrong: A line can always be calculated, even for scattered data. With the actual values can be far from .
Correct: Look at the scatter plot or first: close to 1 means a reliable prediction, close to 0 means only a rough guess.
Why It Matters
- Planning: A school fair predicts how many visitors to expect, so it knows how many chairs to set out.
- Health: Doctors compare a child's height with growth models to see whether growth is on track.
- Delivery apps: Apps estimate how long your order will take from the distance to the restaurant.
- Batteries: Phones estimate how many hours of battery are left from how fast it is draining.
Real World Applications
Child Growth Charts
Doctors compare a child's height with growth models. A simple model for ages 2 to 10 is $\hat{y} = 6x + 77$, where $x$ is age in years and $\hat{y}$ is height in cm. The model only works for those ages: for an adult of 40 it would predict $317$ cm.
Example:
At age 5 the model predicts cm.
A growth model for ages 2 to 10 is (height in cm, age in years).
What height does the model predict for an 8-year-old?
Step 1: Write the mathematical expression
Substitute :
Delivery Time Estimates
Food delivery apps fit lines to past orders to estimate delivery times. One app found $\hat{y} = 3x + 8$, where $x$ is the distance in km (orders from 1 to 12 km) and $\hat{y}$ is the time in minutes.
Example:
For a restaurant 5 km away the app predicts minutes.
The delivery model is (minutes, distance in km, data from 1 to 12 km). The app wants to promise delivery in 35 minutes.
Up to what distance in km can the app make that promise?
Step 1: Write the mathematical expression
Solve for :
Phone Battery Forecasts
Phones estimate the remaining battery from how fast it is draining. Measurements while streaming video gave $\hat{y} = 100 - 8x$, where $x$ is hours of video (data from 0 to 10 hours) and $\hat{y}$ is the battery level in percent.
Example:
After 6 hours of video the model predicts .
The battery model is (percent, in hours, data from 0 to 10 hours). Someone asks what the battery will show after 15 hours of video.
What value does the model predict for 15 hours?
Step 1: Write the mathematical expression
Substitute :
Key Takeaways
- 1To predict , substitute into ; is a predicted value, not a measured one
- 2To find the for a target , set equal to the target and solve:
- 3Interpolation predicts inside the data range and is usually reasonable
- 4Extrapolation predicts outside the data range and is risky: it can even give impossible values
- 5Round predictions to a sensible precision, and round up when you must reach a goal or cover everyone
- 6Predictions are reliable when is close to 1 and only rough guesses when is close to 0
Frequently Asked Questions
Why do we write instead of ?
Is extrapolation always wrong?
How close to 1 must be for a good prediction?
Can I use the same line to predict from ?
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