Resources For Teachers For Tutors For Students & Parents Pricing
Year 12 Maths Standard 2 (2027) Bivariate data analysis

Predictions: Interpolation & Extrapolation

20 practice questions 0 video lessons Theory + worked examples

Learn how to make predictions from a line of best fit for NSW Year 12 Mathematics Standard 2. You substitute into the least-squares regression line to estimate one variable from another, then decide whether the prediction can be trusted.

This topic covers interpolation (predicting inside the range of the data, which is more reliable) and extrapolation (predicting outside the range, which is less reliable), and explains the limitations of extrapolating a linear trend beyond the collected data β€” a key Standard 2 skill for bivariate data analysis.

Create a free accountTrack your progress and save your work as you go.
Create free account

Theory

Making predictions from a line of best fit is a core Year 12 Standard 2 (NSW) skill. This guide shows how to substitute into the least-squares regression line to predict a value, solve for the other variable, and classify each prediction as interpolation (inside the data, more reliable) or extrapolation (outside the data, less reliable).

A prediction uses a line of best fit β€” or the least-squares regression line β€” to estimate one variable from another. Substitute a known \(x\) to predict \(y\), or substitute a known \(y\) and solve for \(x\).

A prediction is interpolation when the value lies inside the range of the collected data. Because the trend is supported by evidence, interpolation is more reliable.

A prediction is extrapolation when the value lies outside the data range. There is no evidence the linear trend continues there, so extrapolation is less reliable β€” the key limitation to watch for in Year 12 Standard 2 (NSW).

Line of best fit for predictionScatter of data with a least-squares line; substitute an x on the line to predict y. x y 2 4 6 8 10 12 4 8 12 16 20 24
Substitute an \(x\)-value on the line to predict \(y\).
Interpolation versus extrapolationData collected for x from 10 to 30 with a line of best fit; predictions inside that range are interpolation, predictions outside are extrapolation. x y 10 20 30 40 50 10 20 30 40 50 60
Inside the data range \((10\text{–}30)\) is interpolation; outside is extrapolation.

The line of best fit / least-squares regression line has the form:

\[y = mx + c\]
y=mx+c

To predict \(y\), substitute the known \(x\). To predict \(x\) from a given \(y\), rearrange:

\[x = \dfrac{y - c}{m}\]
x=y-cm
Interpolation or extrapolation? If the value lies between the smallest and largest data values it is interpolation (reliable); if it lies outside, it is extrapolation (less reliable).

How to make and judge a prediction

  1. Write down the line \(y=mx+c\) and the range of the collected data (smallest and largest values).
  2. Substitute the known value: put in \(x\) to find \(y\), or put in \(y\) and solve \(x=\dfrac{y-c}{m}\).
  3. Compare the value with the smallest and largest data values.
  4. Classify: inside the range β†’ interpolation (reliable); outside β†’ extrapolation (less reliable). If extrapolating, note that the trend may not continue.
Example 1 β€” Predict a value (interpolation)
Taxi fares for trips of \(1\) to \(25\) km gave the least-squares line \(F=1.2d+4.5\), where \(F\) is the fare (\(\$\)) and \(d\) is the distance (km). Predict the fare for a \(10\) km trip.
Solution

Substitute \(d=10\), then check the value against the data range.

Example 1 scatterTaxi fare against distance for 1 to 25 km with the line F=1.2d+4.5. km fare 5 10 15 20 25 30 10 20 30 40
\(F\)\(=\)\(1.2d+4.5\)
\(F\)\(=\)\(1.2(10)+4.5\)
\(F\)\(=\)\(16.5\)
\(1\le 10\)\(\le\)\(25\ \Rightarrow\ \text{interpolation}\)
F=16.5

The predicted fare is \(\$16.50\) β€” a reliable interpolation.

Example 2 β€” Predict x from y
An electricity provider models the quarterly bill by \(B=0.28u+15\), where \(B\) is the bill (\(\$\)) and \(u\) is the usage (kWh), reliable for \(100\le u\le 900\) kWh. A household is billed \(\$141\). Predict its usage.
Solution

Substitute \(B=141\) and solve the linear equation for \(u\).

Example 2 scatterQuarterly bill against usage for 100 to 900 kWh with the line B=0.28u+15. usage bill 200 400 600 800 1000 50 100 150 200 250 300
\(141\)\(=\)\(0.28u+15\)
\(126\)\(=\)\(0.28u\)
\(u\)\(=\)\(\dfrac{126}{0.28}=450\)
\(100\le 450\)\(\le\)\(900\ \Rightarrow\ \text{interpolation}\)
u=450

The predicted usage is \(450\) kWh.

Example 3 β€” Extrapolation and its limits
A sunflower's height was recorded for \(1\) to \(10\) weeks, giving \(H=2.5w+8\) (\(H\) in cm, \(w\) in weeks). Predict the height at \(w=16\) weeks and comment on the reliability.
Solution

Substitute \(w=16\), then compare it with the data range.

Example 3 scatterSunflower height against week for 1 to 10 weeks with the line H=2.5w+8. week height 4 8 12 16 10 20 30 40 50
\(H\)\(=\)\(2.5w+8\)
\(H\)\(=\)\(2.5(16)+8\)
\(H\)\(=\)\(48\)
\(16\)\(>\)\(10\ \Rightarrow\ \text{extrapolation}\)

As \(16>10\), this is extrapolation. A sunflower's growth slows as it matures, so the linear trend may not continue β€” the prediction of \(48\) cm may be unreliable.

Example 4 β€” Reading a scatter plot
Daily hot-chocolate sales \(S\) were recorded against the maximum temperature \(T\) (\(^{\circ}\text{C}\)) for \(5^{\circ}\text{C}\) to \(20^{\circ}\text{C}\), giving \(S=-4T+120\). Predict the sales at \(T=12^{\circ}\text{C}\) and \(T=28^{\circ}\text{C}\), and classify each.
Solution

Substitute each temperature, then compare with the \(5\)–\(20^{\circ}\text{C}\) data range.

Example 4 scatterHot-chocolate sales against maximum temperature for 5 to 20 degrees with the line S=-4T+120. temp sales 5 10 15 20 25 30 20 40 60 80 100 120
\(S\)\(=\)\(-4T+120\)
\(T=12:\ S\)\(=\)\(-4(12)+120=72\)
\(T=28:\ S\)\(=\)\(-4(28)+120=8\)

\(5\le 12\le 20\Rightarrow\) interpolation (reliable). \(28>20\Rightarrow\) extrapolation (less reliable; beyond \(T=30^{\circ}\text{C}\) the line even predicts negative sales).

Common pitfalls

Check the data range. A prediction beyond the smallest or largest data value is extrapolation and may be unreliable β€” always compare first.
Extrapolation isn't automatic nonsense β€” but it has no evidence. Outside the data the linear trend can change or stop, so treat those predictions with care.
Solving for \(x\) needs algebra. When you are given \(y\), rearrange to \(x=\dfrac{y-c}{m}\); don't just divide by the gradient in your head.

Frequently asked questions

What is the difference between interpolation and extrapolation?

Interpolation is making a prediction for a value inside the range of the collected data, while extrapolation is making a prediction for a value outside that range. Interpolation is more reliable because the trend is supported by the data; extrapolation is less reliable because there is no evidence the trend continues.

How do you use a line of best fit to make a prediction?

Substitute the known value into the equation of the line. To predict y, put in the x-value and evaluate. To predict x, put in the y-value and solve the linear equation, which rearranges to x equals (y minus c) divided by m.

Why is extrapolation less reliable than interpolation?

The line of best fit is only fitted to the data that was collected. Outside that range there is no evidence the linear relationship still holds; the real trend may curve, level off or stop, so an extrapolated prediction can be well off. That is the main limitation of extrapolation.

Is extrapolation always wrong?

No. Extrapolation just means predicting outside the data range, and the result can still be close. But because it is not backed by evidence, you should treat it with caution and say the prediction may be unreliable, especially far beyond the data or where it gives an impossible value such as a negative amount.

How do you decide if a prediction is interpolation or extrapolation?

Find the smallest and largest values of the data. If the value you are predicting for lies between them, the prediction is interpolation. If it lies below the smallest or above the largest, it is extrapolation.