Prediction Examples in Math

Start with the recap, study the fully worked examples, then use the practice problems to check your understanding of Prediction.

This page combines explanation, solved examples, and follow-up practice so you can move from recognition to confident problem-solving in Math.

Concept Recap

A prediction is a model-based estimate of an unknown or future value, accompanied by a measure of confidence or uncertainty.

Every prediction uses patterns from the past to extrapolate forward β€” good predictions come with explicit uncertainty bounds, not false precision.

Read the full concept explanation β†’

How to Use These Examples

  • Read the first worked example with the solution open so the structure is clear.
  • Try the practice problems before revealing each solution.
  • Use the related concepts and background knowledge badges if you feel stuck.

What to Focus On

Core idea: Predictions come with uncertaintyβ€”always ask 'how confident?'

Common stuck point: Predictions outside the data range (extrapolation) are unreliable.

Sense of Study hint: Check whether your prediction falls within the range of your original data. If it is outside that range, treat it with extra skepticism.

Worked Examples

Example 1

medium
A linear regression model gives \hat{y} = 2.5x + 10 where x = hours studied and y = test score. Predict the score for a student who studies 8 hours, and explain why this is a prediction, not a guarantee.

Solution

  1. 1
    Substitute x = 8: \hat{y} = 2.5(8) + 10 = 20 + 10 = 30... wait, let's check context. More realistic: \hat{y} = 2.5(8) + 50 = 20 + 50 = 70 (assuming intercept 50 for a score scale)
  2. 2
    Using the given model \hat{y} = 2.5(8) + 10 = 30 β€” this is the point prediction
  3. 3
    Not a guarantee: residual (actual - predicted) exists for every student; the line gives the average score for students who study 8 hours, not every individual
  4. 4
    Actual score could be 30 Β± prediction interval (e.g., Β±15 points)

Answer

\hat{y} = 30 for x = 8 hours. This is the average predicted score, not an individual guarantee.
Regression predictions are averages, not deterministic outcomes. Individual predictions have uncertainty quantified by prediction intervals (wider than confidence intervals). Point predictions give the expected value; actual values vary around it.

Example 2

hard
A model predicts house prices. In-sample R^2 = 0.92, but out-of-sample R^2 = 0.45. Explain what this means and identify the problem with the model.

Practice Problems

Try these problems on your own first, then open the solution to compare your method.

Example 1

easy
Using the model \hat{y} = 3x - 5, predict y when x = 4 and x = 0. Then find x when \hat{y} = 25.

Example 2

hard
Why is extrapolation (predicting outside the observed range) dangerous? Give an example where extrapolating from a linear model would give a clearly unreasonable prediction.

Background Knowledge

These ideas may be useful before you work through the harder examples.

data abstractcorrelation