Tiber Tutor

notes

IB Maths AI 4.9 Notes

This page contains our IB Maths AI notes for 4.9. By reading each one of these notes, you will fully cover the content for IB Maths AI 'Advanced linear statistics'.

Chapters

Loading progress...

Non-linear regression

In this section, we extend regression beyond straight lines. A linear regression uses a model of the form y=ax+by=ax+b, but many real data sets follow curved patterns instead. In those cases, a non-linear regression model may give a better fit. Technology is used to fit these models and determine the constants.

Common regression models include:

  • Quadratic: y=ax2+bx+cy=ax^2+bx+c
  • Cubic: y=ax3+bx2+cx+dy=ax^3+bx^2+cx+d
  • Quartic: y=ax4+bx3+cx2+dx+ey=ax^4+bx^3+cx^2+dx+e
  • Logarithmic: y=aln(x)+by=a\ln(x)+b
  • Exponential: y=aebx+cy=ae^{bx}+c
  • Power: y=axb+cy=ax^b+c
  • Sinusoidal: y=asin(bx+c)+dy=a\sin(bx+c)+d

The best model depends on both the shape of the data and the context.

To fit a non-linear regression model, enter the data into your GDC and choose the required regression type. The calculator returns the constants that define the model.

For example, a quadratic regression gives the constants in y=ax2+bx+cy=ax^2+bx+c, while an exponential regression gives the constants in a form such as y=aebx+cy=ae^{bx}+c. These models can then be used to predict values of yy for given values of xx.

The height of a tree, in cm, is recorded over 55 days. Form a cubic and exponential regression model from the following data.

Day (x)(x)Height (y)(y)
112.02.0
222.82.8
334.24.2
446.06.0
558.28.2

A cubic regression model of the form y=a+bx+cx2+dx3y=a+bx+cx^2+dx^3 gives:

y1.5+0.6x+0.2x20.01x3y\approx1.5+0.6x+0.2x^2-0.01x^3

So a1.5a\approx1.5, b0.6b\approx0.6, c0.2c\approx0.2, and d0.01d\approx-0.01.

To predict the height on day 77, substitute x=7x=7:

y=1.5+0.6(7)+0.2(72)0.01(73)12.07y=1.5+0.6(7)+0.2(7^2)-0.01(7^3)\approx12.07

So the predicted height on day 77 is about 12.0712.07cm.

Now fit an exponential regression model. Suppose technology gives:

y1.41e0.30x+0y\approx1.41e^{0.30x}+0

Since e0.30x=(e0.30)xe^{0.30x}=(e^{0.30})^x, this can be written as y1.41(1.35)x+0y\approx1.41(1.35)^x+0.

So the exponential model has a1.41a\approx1.41, b1.35b\approx1.35, and c0c\approx0.

A model may fit the data well over a short interval but still become unsuitable later.

In the cubic model above, the negative cubic term means that for large values of xx, the model will eventually predict that the tree height starts decreasing. This is not realistic if the tree is continuing to grow.

The exponential model predicts growth that becomes faster and faster forever. In reality, a tree cannot grow indefinitely at an accelerating rate. So a good fit to the given data does not automatically mean that a model is valid outside the observed range.

tibertutor.com

Next Up

You have completed the sub-topic 4.9 notes, covering "Advanced linear statistics" for IB Maths AI - continue with related resources below or explore the full IB Maths AI course from the IBO.

Other Sub-topic 4.9 resources