Regression Word Problems
Solve complete regression problems: interpret slope and intercept in context, predict, spot extrapolation, compute residuals and read r and R².
Definition
- **Slope in context**: for each increase of 1 unit in , the predicted changes by units, on average.
- **Intercept in context**: the predicted when . It only has a real meaning if makes sense and lies near the data.
- Prediction: substitute into the equation to get the predicted value .
- Interpolation vs extrapolation: a prediction for an inside the range of the data is interpolation (usually reliable); outside that range it is extrapolation (risky).
- Residual: (actual minus predicted). Positive means the point lies above the line.
- r and R²: gives the direction and strength of the linear relationship; is the share of the variation in that the linear relationship with explains.
Try it now
Worked Examples
Identify the slope and the intercept
Interpret the slope with units
Interpret the intercept with units
Check that the intercept makes sense
Answer: Slope: for every 1 °C rise in temperature, the café is predicted to sell about 3 fewer hot drinks. Intercept: on a 0 °C morning the model predicts about 110 hot drinks, which makes sense because 0 °C is part of the data.
Common Mistakes
Stating the slope as a bare number: "the slope is 6"
Why it's wrong: A number without context does not answer the question. The slope is a rate: it needs both units and the word "predicted" or "on average", because real points scatter around the line.
Correct: Say: "For each extra hour of study per week, the predicted test score rises by about 6 points."
Trusting a prediction far outside the data (extrapolation)
Why it's wrong: The line was fitted only to the observed range. Outside it the pattern may change, and the line can give impossible values like a score of 120 out of 100 or a negative number of sales.
Correct: Check the range of first. Inside it: interpolation. Outside it: extrapolation, so say the prediction is unreliable.
Computing the residual the wrong way round:
Why it's wrong: The sign then flips, and "above the line" becomes "below the line". By convention the residual is actual minus predicted.
Correct: Always use : positive means the model underpredicted, negative means it overpredicted.
Reading as "90% of the points lie on the line" or as "the model is right 90% of the time"
Why it's wrong: measures how much of the variation in the linear relationship explains. Points can all be off the line and can still be 0.9.
Correct: Say: "90% of the variation in is explained by the linear relationship with ."
Interactive Visual
Scatter Plot
Weekly study hours and test score
ŷ = 6x + 48
r = 0.949 · strong positive correlation
Tap a point to see its coordinates.
Scatter Plot
Outdoor temperature and hot drinks sold
ŷ = −3x + 110
r = -0.949 · strong negative correlation
Tap a point to see its coordinates.
Interactive Sandbox
Expression Calculator
Try these:
History
No calculations yet
Practice Problems
18 problemsWhy It Matters
- Shops and cafés predict how much stock to order from the weather forecast.
- Schools look at how study time relates to results, and which students do better or worse than predicted.
- Doctors and scientists use regression to estimate doses, growth rates and risks.
- Car dealers and banks estimate how fast the value of a car drops each year.
Real World Applications
Biology Lab: Plant Growth
Biology students measure a seedling every week and fit a regression line to height against time to describe its growth rate.
Example:
For (height in cm, in weeks, data from week 0 to week 8), the slope says the plant grows about 2.5 cm per week and the intercept says it was about 4 cm tall when measuring started.
The class model is , with height in cm and time in weeks (data from week 0 to week 8).
What height does the model predict at week 6?
Step 1: Write the mathematical expression
Substitute into the equation:
Delivery Times for an Online Shop
Delivery companies model delivery time from distance to give customers an estimated arrival time and to spot routes that are slower than expected.
Example:
With (minutes, = distance in km, data from 1 to 10 km), a 4 km delivery is predicted to take minutes.
The model is (time in minutes, = distance in km). A delivery of 6 km actually took 33 minutes.
What is the residual of this delivery?
Step 1: Write the mathematical expression
Residual = actual time minus predicted time:
Phone Battery Testing
Tech reviewers relate screen-on time to battery drain and report how strongly the two are linked, so readers know how much the regression line can be trusted.
Example:
If screen time and battery used have , then : 64% of the variation in battery use is explained by screen time.
In a battery test the correlation between temperature of the room and battery life is .
What percentage of the variation in battery life is explained by the linear relationship with room temperature?
Step 1: Write the mathematical expression
Square r and turn it into a percentage:
Key Takeaways
- 1Interpret the slope as a rate with units: for each 1-unit increase in , the predicted changes by , on average
- 2The intercept is the predicted at ; it only means something if makes sense and is near the data
- 3Predict by substituting into ; inside the data range this is interpolation, outside it is risky extrapolation
- 4A residual is actual minus predicted, : positive above the line, negative below it
- 5 shows direction and strength; is the share of the variation in explained by the line
- 6A strong fit shows a link, not a cause: always answer in the words and units of the problem
Frequently Asked Questions
Glossary
- Predicted value
- The value of that the regression line gives for a chosen
- Slope in context
- The predicted change in , in the units of , for each 1-unit increase in
- Intercept in context
- The predicted value of when , meaningful only if is realistic and near the data
- Interpolation
- Predicting for an inside the range of the data
- Extrapolation
- Predicting for an outside the range of the data; often unreliable
- Coefficient of determination R²
- The share of the variation in explained by the linear relationship with ; equals for a line
Formula Card
Regression line
Substitute x to get the predicted value
Least-squares slope
Computed from the deviations from the means
Least-squares intercept
The line always passes through the point of means
Residual
Actual minus predicted; positive above the line
Coefficient of determination
$SS_{\text{res}}$ is the sum of squared residuals, $SS_{\text{tot}}$ the sum of squared deviations of y from its mean