01 · Substitute
A fitted model is ŷ = 4 + 1.8x. Predict y for x = 5.
Hint
Include the intercept.
Worked solution
ŷ = 13, in the response’s units.
Understand · explore · practise
Calculate fitted predictions, classify interpolation using the explanatory-variable range and judge extrapolation, scatter, sample context and model limitations.
Before you startRegression equations, scatter diagrams and interpreting coefficients.
01 / Calculate, then assess
Check the supplied x against the observed explanatory-variable range.
Interpolation uses x values inside that range; extrapolation extends outside it.
The formula may accept a number even when the prediction is poorly supported. Keep the arithmetic and the judgement separate. A value inside the range is usually better supported by nearby observations, but it is not guaranteed accurate.
Constructed delivery pairs (km, minutes): (2,14), (4,16), (6,24), (8,29), (10,31), (12,39). Their fitted line is t = 8 + 2.5d. The observed distance range is 2–12 km.
At 0 km, predicted duration is 8 minutes. This is extrapolation beyond the observed distance range, even though the formula can be evaluated.
02 / Use the fitted direction and units
t̂ = 8 + 2.5×8 = 28 minutes
Use distance in the unit used when fitting.
The observed response at 8 km in the constructed data is 29
Prediction and observation can differ.
Residual = 29 − 28 = 1 minute
A fitted prediction is not a rewritten measurement.
A fitted model is ŷ = 4 + 1.8x. Predict y for x = 5.
Include the intercept.
ŷ = 13, in the response’s units.
The delivery model uses kilometres. A distance is supplied as 8000 metres. What should be substituted?
Convert the explanatory value first.
d = 8 km, giving 28 minutes. Substituting 8000 into the kilometre equation is a unit error.
03 / Use the explanatory range
Pause, replay or seek freely. The notes explain the same idea and stay in view.
Observed x values range from 2 to 12. Classify predictions at x = 6 and x = 16.
Compare the supplied explanatory values with 2 and 12.
At 6: interpolation. At 16: extrapolation. This classification does not require inspecting the predicted y range.
A prediction uses x = 12, the largest observed explanatory value. Is it outside the observed x range?
Equality is still on the range boundary.
No. It is a prediction at the boundary of the observed range. It may still differ from the observed response at that x.
04 / Do not use response range as the test
Predicted duration = 8 + 2.5×2.2 = 13.5 minutes
This is below the smallest observed duration, 14.
But 2.2 km is between 2 and 12 km
The explanatory value is inside the observed range.
It is interpolation, despite being outside the observed response range
Classification and prediction accuracy are separate questions.
Observed x values are 10–20 and observed y values are 30–80. A model predicts y = 50 at x = 25. Is it interpolation because 50 lies between 30 and 80?
The supplied x lies beyond its observed range.
No. It is extrapolation because x = 25 is outside 10–20.
At d = 2 km, the dataset records 14 minutes while the line predicts 13. Which is the observed response?
Do not overwrite the measurement with the fitted value.
14 minutes is observed; 13 is predicted. The residual is 1 minute.
05 / Explain why extension is risky
Why is predicting delivery duration at 60 km from data covering only 2–12 km questionable?
The same straight trend may not continue.
Route types, traffic and other conditions may differ, and there are no observations near 60 km to support the extension. The formula gives a number but the model needs new evidence.
A decreasing fitted line eventually predicts negative values for a quantity that cannot be negative. What should you conclude?
Physical context limits a model.
The line cannot remain suitable indefinitely. Restrict its use to a justified domain or choose a supported alternative; do not interpret impossible outputs as measurements.
06 / Assess more than the range
A prediction is within the observed x range, but responses vary widely near that x. Is an exact individual prediction well supported?
Interpolation does not remove residual variation.
No. The fitted value may summarise a central trend, while individual outcomes can differ substantially. State the uncertainty rather than promising an exact value.
A line fitted to one city’s deliveries is used in a different city at a distance inside the original range. Is the range check enough?
Context and sampling also matter.
No. Road layout, traffic, sampling and other conditions can differ. Being inside the numerical x range does not establish applicability to a new population.
07 / Write a qualified prediction
The fitted delivery model predicts 28 minutes at 8 km. Give a careful report.
Say what the model predicts and what the range supports.
The model predicts about 28 minutes for an 8 km delivery. This lies within the observed distance range, but individual times vary and the prediction depends on a comparable setting.
Does strong correlation make every extrapolation reliable?
Strength was assessed on the observed data.
No. A tight trend within the studied range can change beyond it. Correlation strength alone does not validate an unsupported extension.
08 / Check range, fit and context
Substitute the correct units and prediction direction. Classify the input using its explanatory-variable range, then assess scatter, model shape, sampling and context. Keep fitted and observed responses separate.
Section 1 of 8 · Calculate, then assess