Apply a regression model to produce a forecast
The idea
A prediction substitutes a value of the independent variable into the fitted equation: predicted y equals the intercept plus the slope times x. The point estimate is only half the answer; a prediction interval around it reflects both the scatter of the data and the uncertainty in the estimated coefficients, and it widens as the chosen x moves away from the mean of the sample. Predicting outside the range of the observed data assumes the fitted relationship continues to hold there, which the regression provides no evidence for at all.
Formulas
Prediction from a regression
predicted Y = b₀ + b₁ × X
- b₀
- the estimated intercept
- b₁
- the estimated slope
- X
- the value of the independent variable being predicted from
Sound inside the range of X the model was fitted on and a guess outside it. The prediction is a single number for something that has a distribution, so it comes with an interval whose width grows the further X sits from its mean.
A practice question
A regression gives an intercept of 2.0 and a slope of 1.5. What is the predicted value when the independent variable is 4?
- 8.0 - correct
- 6.0Why not: 1.5 x 4 - the slope applied without adding the intercept. The line does not pass through the origin.
- 14.0Why not: (2.0 + 1.5) x 4 - the intercept is added to the slope before multiplying. Only the slope is multiplied by the independent variable; the intercept is added afterwards.
Use the regression line: Predicted Y = Intercept + Slope x X. Put in the numbers: Predicted Y = 2.0 + 1.5 x 4. First multiply: 1.5 x 4 = 6.0. Then add the intercept: 2.0 + 6.0 = 8.0. The answer 6.0 forgets the intercept, and 14.0 wrongly multiplies the intercept by 4 as well.
A harder one
What does predicting outside the range of the observed data assume?
- That the fitted relationship continues to hold there - correct
- That the errors are normally distributedWhy not: Normality of the errors is an assumption behind the significance tests and applies inside the range of the data too. It is not what extrapolation specifically requires.
- That the sample is largeWhy not: A large sample makes the fit precise over the range it covers. It says nothing about values the data never reached.
Predicting outside the range of the observed x values is called extrapolation. It treats the fitted line as if the same relationship still holds where you have no data to test it. For example, a line fitted to interest rates between 2% and 5% may fit well there and still be badly wrong at 15%, if defaults jump sharply instead of rising steadily. The data give no evidence that the relationship continues, however good the fit is inside the range.
The hardest tier
What is the central risk of using a regression to predict outside the range of the observed data?
- The arithmetic becomes unreliable at extreme valuesWhy not: The arithmetic is a multiplication and an addition, and works identically at any value. The model will produce a confident number; that is the danger.
- The intercept is undefined outside the observed rangeWhy not: The intercept is a fitted constant and does not change with the value being predicted.
- There is no evidence the relationship holds in that region - correct
A regression line is fitted using the data you gave it, so it only shows the relationship across that range. Predicted Y = Intercept + Slope x X still gives a number for any X, even far outside the range. But nothing shows the straight-line pattern continues there. It may bend or break. For example, a rule linking spending to revenue for mid-sized firms may fail for giant firms. The model will not warn you.
In the app: 12 practice questions on this outcome, a narrated walkthrough with diagrams, spaced review that brings it back before you forget it.
Take the free diagnostic →More in Applications of Simple Linear Regression in Finance
- Set out what a simple linear regression assumes
- Explain what the intercept, slope and coefficient of determination mean
- Work out the standard error of estimate and explain what it shows
- Derive a stock's alpha and beta by regressing its excess returns on those of the market
- Explain what a simple linear regression's ANOVA table and F-statistic tell you