Predicted Value from a Regression Line

y^=a+bx\hat{y} = a + b x

Worked example: yhat = 20 + 2.5x at x = 8 → 40 — press Try an example to run it live, then adjust anything.

Enter your known values, leave one input blank, and solves for the missing one. Tap a variable’s symbol to see what it means, with a typical value. Try different units for next level excitement!

Here the solver did the work — could you?

The line of best fit →

Grade 12Grade 12 Math

Test your skills in the Exam Room: new numbers every attempt — free lessons for students, no sign-up, just pure learning. Find 1 more lesson on this formula.

See your Report Card
Compete with your friends
share your results
Learning zone

Predicted Value from a Regression Line explained

xŷab

Once a line is fitted, prediction is arithmetic: multiply the predictor by the slope and add the intercept. A line of ŷ = 20 + 2.5x evaluated at x = 8 predicts 40. The hat on ŷ matters — it marks a fitted value, an average outcome for that x, not a promise about any individual. Real observations scatter around the line by the residual standard deviation, so a prediction interval for one new case is always much wider than the confidence interval for the line itself.

The classic trap is extrapolation. Within the range of the data a line can be an excellent summary; outside it, it is a guess dressed as arithmetic. Mark Twain skewered this perfectly in Life on the Mississippi: noting that the river had shortened by 242 miles over 176 years, he extrapolated back to conclude that the Lower Mississippi was once 1.3 million miles long and would eventually be a mile and three-quarters. Running the line backwards is legitimate and useful — solving 65 = 5 + 3x gives x = 20 — but it is calibration, and it inherits all the uncertainty of the fit.

Predicted Value from a Regression Line formula

y^=a+bx\hat{y} = a + b x
Where
  • y^\hat{y}= Predicted value
  • aa= Intercept
  • bb= Slope
  • xx= Predictor value

Missing one of these? Work it out first, then come back