Prediction Math Example 1

Follow the full solution, then compare it with the other examples linked below.

Example 1

medium
A linear regression model gives y^=2.5x+10\hat{y} = 2.5x + 10 where xx = hours studied and yy = 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=8x = 8: y^=2.5(8)+10=20+10=30\hat{y} = 2.5(8) + 10 = 20 + 10 = 30... wait, let's check context. More realistic: y^=2.5(8)+50=20+50=70\hat{y} = 2.5(8) + 50 = 20 + 50 = 70 (assuming intercept 50 for a score scale)
  2. 2
    Using the given model y^=2.5(8)+10=30\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

y^=30\hat{y} = 30 for x=8x = 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.

About Prediction

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

Learn more about Prediction โ†’

More Prediction Examples