Prediction Math Example 1
Follow the full solution, then compare it with the other examples linked below.
Example 1
mediumA linear regression model gives where = hours studied and = test score. Predict the score for a student who studies 8 hours, and explain why this is a prediction, not a guarantee.
Solution
- 1 Substitute : ... wait, let's check context. More realistic: (assuming intercept 50 for a score scale)
- 2 Using the given model โ this is the point prediction
- 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 Actual score could be 30 ยฑ prediction interval (e.g., ยฑ15 points)
Answer
for 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
Example 2 hard
A model predicts house prices. In-sample [formula], but out-of-sample [formula]. Explain what this m
Example 3 easyUsing the model [formula], predict [formula] when [formula] and [formula]. Then find [formula] when
Example 4 hardWhy is extrapolation (predicting outside the observed range) dangerous? Give an example where extrap