QUANTITATIVE ANALYSIS · BEGINNER GUIDE

How to Use a Linear Regression Equation to Predict

Substitute a predictor value into a fitted line and keep the prediction range and uncertainty in view.

Worked example · linear regression prediction exampleUpdated October 31, 2026

Quick answer: A fitted linear regression predicts by substituting predictor values into its equation. A point prediction is not a promise: an interval for a future observation is usually wider than an interval for the mean response.

Infographic for linear regression prediction example: Check units and range, then Substitute inputs, then Compare with outcome limits, then Report uncertainty and scope.
Infographic: a practical sequenceKeep the question, design and assumptions in view from start to finish.
Predictions inside and beyond training range. 2 hours: 58 predicted points; 5 hours: 82 predicted points; 10 hours: 122 predicted points.
Predictions inside and beyond training rangeThe 10-hour value extrapolates and exceeds the example score scale.

What this method answers

For ŷ=b₀+b₁x, the intercept is the fitted value at x=0 and the slope is the change in fitted mean per unit of x. Multiple regression adds contributions from other predictors.

Use a point prediction when one expected value is useful, but include uncertainty when a decision depends on possible outcomes. Check that inputs resemble training data.

Before running a calculation, write down the population and the exact quantity you want to estimate. A method name alone does not define the question, the comparison or the assumptions.

Steps to follow

  1. Read predictor units and training range.
  2. Substitute values into the fitted equation without changing units.
  3. Check whether the result is plausible on the outcome scale.
  4. State whether the interval concerns a mean or one future observation.

Keep a record of exclusions, recoding decisions and software settings. That makes the analysis easier to check and repeat.

Worked example

A fitted model predicts quiz score from study hours as ŷ=42+8x. The training range was 1–6 hours.

HoursSubstitutionPredicted score
242+8×258
542+8×582
1042+8×10122; outside observed range

For 5 hours, ŷ=42+8×5=82. Ten hours gives 122 mathematically, but it extrapolates beyond training data and exceeds a score scale capped at 100.

Interpret the result carefully

The fitted average rises by 8 points per additional hour in this model. A particular learner can score differently because of individual variation.

Limit to keep in mind: The line may not hold across the full predictor range. A prediction interval depends on residual variation, model uncertainty and assumptions.

When reporting an analysis, include the sample size, estimate, units and uncertainty. Explain why the method fits the sampling and measurement design. Separate planned tests from exploratory checks, and avoid saying that association proves a cause.

Frequently asked questions

What does the slope mean?

It is the fitted mean change per predictor unit in this model.

Why is 122 a warning?

It is outside the observed range and beyond the example’s 0–100 score scale.

Is a confidence interval a prediction interval?

No. An individual prediction interval includes outcome scatter and is generally wider.

Can I use the equation at another school?

Only if the new population is comparable; validate it locally.

Sources and next steps