Prediction from the regression line
ŷ
What the fitted line says at a chosen x: the intercept plus the slope times x.
ŷ=13
ŷ equals 3 plus (2 times 5), equals 3 plus 10, equals 13
Den här sidan finns på svenska. Byt till svenska
Definition — what does that mean?
What the fitted line says at a chosen x.
In Swedish: Prediktion med regressionslinjen
ŷ
What the fitted line says at a chosen x: the intercept plus the slope times x.
ŷ=13
ŷ equals 3 plus (2 times 5), equals 3 plus 10, equals 13
You are given
ŷ = b₀ + b₁ · x
b₀ is the intercept, b₁ the slope and x the value to predict at. The hat on ŷ marks a fitted value, not a measured one.
Height and mass of 15 women (Wikipedia’s example on simple linear regression): b₀ = −39.06 kg and b₁ = 61.27 kg/m. At x = 1.65 m, ŷ = −39.06 + 61.27 · 1.65 ≈ 62.04 kg.
The 15 women are between 1.47 m and 1.83 m tall. A prediction at 1.65 m lies inside that range (interpolation). At 2.10 m the line gives −39.06 + 61.27 · 2.10 ≈ 89.6 kg, but no measurement backs it: the relation may bend outside the data. The arithmetic is identical in both cases and cannot warn you.
At x = 0 the line returns the intercept, −39.06 kg, which is not a mass at all. The model describes the measured range only.
The difference between a measured y and ŷ is the residual. The spread of the residuals is the residual variance, and the coefficient of determination says how much of the variation the line explains.
| Solve for | Rearranged | With the numbers | Comes to |
|---|---|---|---|
| ŷ | b₀ | 3 | 13 |
| b₀ | ŷ | 13 | 3 |
| b₁ | ŷ | 13 | 2 |
| x | ŷ | 13 | 5 |
Last reviewed October 11, 2026 ·How pages are reviewed
Statistics and probabilityAll formulas
Copy the code into your page where the formula card should appear. It loads from lovetocalc.com, so it stays current on its own — all we ask is that the credit line comes with it.