IB Mathematics: Applications and Interpretation · Topic 4 · Statistics and probability
4.13 Non-linear regression
Fit non-linear models to data with technology, interpret their parameters, and compare their fit with a linear model.
1/6A straight line can fail to describe curved data
- A straight line can fail to describe curved data
- Each model type has its own equation and shape
- Technology finds the curve with the smallest residuals
- Parameters describe real features of the situation
- Fit statistics let you compare competing models
- A fitted model is reliable only inside its data range
- Check your recall
- Practice: 10 questions
Part 1 of 6: A straight line can fail to describe curved data
A cart rolls down a slope and speeds up. Its distance against time forms a curve, not a line. A straight line fitted to such data gives a poor description.
Fitting a curve of a chosen type to paired data is called non-linear regression. The aim is the same as for a line: a model that predicts one variable from another.
To judge any fit, look at each residual. A line fitted to curved data leaves residuals that form a pattern: positive, then negative, then positive again.
Key terms · tap one for its definition
non-linear regression
Non-linear regression is the fitting of a curved model, rather than a straight line, to paired data in order to predict one variable from another.
residual
A residual is the observed value of minus the value of predicted by the model at the same .
Part 2 of 6: Each model type has its own equation and shape
Now the task is choosing which curve to try. The scatter diagram and the context guide this choice.
Every model contains constants, such as , and . Each constant is a parameter. Technology finds the parameter values that fit the data best, and you then interpret them.
Common regression models
- Model
- Quadratic
- Equation
- Typical pattern
- One turning point
- Model
- Cubic
- Equation
- Typical pattern
- Up to two turning points
- Model
- Exponential
- Equation
- Typical pattern
- Constant multiplier per unit of
- Model
- Power
- Equation
- Typical pattern
- changes with a power of
- Model
- Sine
- Equation
- Typical pattern
- Repeating wave
A model should match the context as well as the points. A quadratic suits a thrown object, whereas a sine model suits a repeating cycle such as daily temperature. An exponential model suits growth by a constant percentage.
Key term
parameter
A parameter is a constant in a model’s equation whose value is chosen to fit the data.

Quick check
One question on the part you just read
Easy
Show answer and explanation
Answer: A · Worked explanation
Part 3 of 6: Technology finds the curve with the smallest residuals
The calculator needs a rule for deciding which curve is best. The usual rule is least squares. It chooses the parameters that make the sum of squares of residuals, written , as small as possible.
- Enter the values and values in two lists.
- Draw a scatter diagram and note its shape.
- Choose the regression type that suits the shape.
- Read the parameters and the fit statistics from the output.
Squaring stops positive and negative residuals from cancelling. It also gives large misses extra weight.
Key term
sum of squares of residuals
The sum of squares of residuals, , is the total of the squared residuals; a smaller value means the model lies closer to the data.
Part 4 of 6: Parameters describe real features of the situation
A fitted equation helps only if you can explain what it says. Parameters usually carry meaning.
In the model , is the value of when . The base is the multiplier for each unit increase in . A base of 1.4 means growth of 40% per unit.
In a quadratic, is the value of when . The sign of decides whether the curve opens up or down. In the sine model, is the amplitude and is the midline value.
Worked example
Interpreting and using an exponential model
- At , , so the culture starts with 250 bacteria.
- The base 1.4 multiplies the count each hour, a 40% increase per hour.
- Predicted count: .
- Residual observed predicted .
Answer: The predicted count is 686 bacteria and the residual is , so the model slightly underestimates the observed count.

Quick check
One question on the part you just read
Easy
Show answer and explanation
Answer: C · Worked explanation
Part 5 of 6: Fit statistics let you compare competing models
Suppose a line and a quadratic are fitted to the same data. A number is needed to compare them. The first is : the smaller it is, the closer the curve lies to the points.
The second is the coefficient of determination, . A value near 1 shows a close fit. For a line, equals the square of the correlation coefficient.
Also inspect the residuals. Random scatter around zero suggests a suitable model. A visible pattern suggests that a better model exists.
Key term
coefficient of determination
The coefficient of determination, , is the proportion of the variation in explained by the model, between 0 and 1.
Part 6 of 6: A fitted model is reliable only inside its data range
Predicting inside the range of the data is generally safe. Predicting beyond it is extrapolation, and it is far less reliable.
Beyond the data, a model may behave unrealistically. A quadratic eventually turns and changes direction, and an exponential model keeps growing without bound, though real resources run out.
Check that each prediction is sensible in context. A negative number of people or a negative length shows that the model has been pushed too far. If a line fits almost as well as a curve, the simpler line may be the better choice.
Key term
extrapolation
Extrapolation is the use of a model to predict values outside the range of the data used to fit it.
Check your recall[14 marks]
6 written questions. Answer each one in your head or on paper, then open the mark scheme.
- 1.Define[2 marks]
Define the term residual.
Show mark schemeHide mark scheme
Model answer
A residual is the observed value of minus the value predicted by the model at the same .
- 1 mark for stating that it is a difference between an observed and a predicted value of
- 1 mark for giving the order observed minus predicted
- 2.Describe[2 marks]
Describe how the pattern of residuals can show that a straight line is unsuitable for a data set.
Show mark schemeHide mark scheme
Model answer
If the residuals are positive, then negative, then positive again, rather than randomly scattered about zero, the data are curved. A straight line is then unsuitable.
- 1 mark for stating that the residuals show a clear pattern rather than random scatter
- 1 mark for linking the pattern to curved data, so a line is unsuitable
- 3.Calculate[3 marks]
A population is modelled by . At the observed value is 130. Calculate the predicted value and the residual.
Show mark schemeHide mark scheme
Model answer
Predicted: . Residual .
- 1 mark for substituting into the model
- 1 mark for obtaining a predicted value of 125
- 1 mark for obtaining a residual of
- 4.Deduce[2 marks]
In the model , and . Deduce the value of when and the percentage change in for each unit increase in .
Show mark schemeHide mark scheme
Model answer
When , . The multiplier 0.9 means falls by 10% per unit increase in .
- 1 mark for deducing that when
- 1 mark for deducing a 10% decrease per unit of
- 5.Explain[2 marks]
Explain why a high alone does not show that a model should be used to predict values.
Show mark schemeHide mark scheme
Model answer
A high shows a close fit only within the data. The model may still be unrealistic in context or outside the data range, where extrapolation is unreliable.
- 1 mark for stating that a high describes the fit only to the data given
- 1 mark for explaining that the model may be unrealistic in context or unreliable when extrapolated
- 6.Discuss[3 marks]
Discuss the risks of using a fitted quadratic model to predict values well outside the range of the data.
Show mark schemeHide mark scheme
Model answer
Predicting this far outside the data is extrapolation, so the pattern may not continue. A quadratic eventually turns, so it could predict values that make no sense, such as negative counts. Predictions should be checked in context and treated with caution.
- 1 mark for identifying the prediction as extrapolation, which is unreliable
- 1 mark for stating that a quadratic turns and may give unrealistic values
- 1 mark for concluding that predictions must be checked against the context

Practice this topic
10 quick-fire multiple-choice questions, easy to hard. Tap an answer to see if you're right and the worked explanation. (The written questions with mark schemes are under “Check your recall” above.)
0 right0 of 10 answered
Includes the 2 quick checks in the note above.
EasyIdentify[1 mark]
Show answer and explanation
Answer: D · Worked explanation
MediumCalculate[1 mark]
Show answer and explanation
Answer: A · Worked explanation
MediumIdentify[1 mark]
Show answer and explanation
Answer: B · Worked explanation
MediumCompare[2 marks]
Show answer and explanation
Answer: C · Worked explanation
MediumDetermine[1 mark]
Show answer and explanation
Answer: B · Worked explanation
HardIdentify[2 marks]
Show answer and explanation
Answer: D · Worked explanation
HardDeduce[2 marks]
Show answer and explanation
Answer: A · Worked explanation
HardCalculate[2 marks]
Show answer and explanation
Answer: C · Worked explanation