Non-Linear Regression and the Coefficient of Determination | Applications and Interpretation IB Maths notes

Free preview: Non-Linear Regression and the Coefficient of Determination

Fitting Curves with Technology

Applications and interpretation: HL only (AHL 4.13)

Let's start with some data that are clearly not on a straight line. A cup of coffee cools in a room. D is how many degrees the coffee is above room temperature, t minutes after it is poured.

t (min)051015202530
D (°C)75574435272217
  • The points curve: the coffee cools fast at first, then more slowly. In the first 5 minutes D drops by 18; between 25 and 30 minutes it drops by only 5.
  • A straight line can still be fitted (r = −0.972, so r2=0.945), but it misses the bend and predicts negative D after about 36 minutes. Coffee does not get colder than the room!
  • Non-linear regression fits a curve instead: quadratic, cubic, exponential, power or sine.

Least squares, again

  • A residual is the vertical gap between a data point and the model: yi−y^i, where y^i ("y hat") is the model's prediction.
  • For a line, the GDC chooses the line that makes the sum of squared residuals SSres=∑(yi−y^i)2 as small as possible (previous note).
  • Regression curves use the same idea: the GDC chooses the parameters (a, b, c, ...) of the chosen model to fit the points as closely as possible.
  • You never do this by hand in AI. You choose the model, the GDC finds the parameters.

💡 In plain words

  • Why square the residuals? Some points are above the curve and some below; squaring makes every gap count as positive, and punishes big misses more.
  • "Least squares" just means: the curve with the smallest total of squared gaps.
ModelEquationGDC option (typical name)Shape it suits
Quadraticy=ax2+bx+cQuadRegOne turning point
Cubicy=ax3+bx2+cx+dCubicRegTwo bends
Exponentialy=abx (or y=aekx)ExpRegMultiplies by a constant factor
Powery=axbPwrRegThrough the origin, bending
Siney=asin(bx+c)+dSinRegRepeats

✏️ YOUR TURN 1

Try this first:

Which model would you try first for each data set? Give a reason.

  1. The number of bacteria, which roughly doubles every hour.
  2. The height of a tide measured every hour for two days.
  3. The area of a square photo against its side length.

Answer:

  1. Exponential: multiplying by about 2 each hour is a constant factor.
  2. Sine: tides repeat.
  3. Power (y=ax2): area is proportional to side squared, through the origin. (A quadratic would also fit, but the power model matches the context exactly.)

Running a Regression and Reading It

Now let's actually fit the coffee data. The recipe is the same on every GDC; only the menu names change.

💡 On your GDC: an exponential regression

  1. Enter t in list 1 and D in list 2.
  2. Choose your GDC's exponential regression tool (the y=abx form), with lists 1 and 2.
  3. The screen gives a = 73.2, b = 0.952 and r2=0.999 (3 s.f.).
  4. Write down the model: D=73.2×0.952t.
  5. Store the equation (for example in Y1) so you can graph it over the points and use the unrounded values for predictions.

Why each step matters

  • Two lists, same length, same order: each t must sit next to its own D.
  • Writing the model down with its parameters earns the method mark, even if a later prediction slips.
  • Storing the equation keeps all the digits. Rounding to 73.2 and 0.952 and then raising to a power can change the third figure.

👀 Watch me do it: interpret the coffee model and use it

What I writeWhy I do it
a = 73.2: the model's starting difference is 73.2 °CAt t = 0, b0=1, so D = a. (The data say 75: close, but a is the model's value, not the data's.)
b = 0.952: D falls by about 4.8% each minuteEach minute D is multiplied by 0.952. 1−0.952=0.048.
At t = 40: D=73.218×0.9522840=10.4 °CUse the stored model. 40 is just outside the data (0 to 30), a short extrapolation.
At t = 10: D^=44.9; the data say 44; residual 44−44.9=−0.9A small residual: the curve passes just above the point.

📝 Here's the trap

Unlock the full note: start 7 days free.

Log in or subscribe to read the rest of this note. Members also get the AI tutor, practice quizzes, mock exams and flashcards for this topic.

Log in · Subscribe · Start free trial

All notes in Correlation and regression (SL 4.4, 4.10; AHL 4.13)

  1. Scatter Diagrams, Correlation and Regression Lines
  2. Spearman's Rank Correlation Coefficient, Including Tied Ranks
  3. Pearson's Correlation Coefficient r: Meaning and GDC Method
  4. Residuals and the Residual Sum of Squares
  5. Least Squares Regression Lines on the GDC: y on x and x on y
  6. Non-Linear Regression and the Coefficient of Determination

What's inside for this topic

6 teacher notes, 69 practice questions, 40 flashcards, 2 quizzes.

Get the full notes, every practice question, flashcards, quizzes and mock papers.

Start your free 7-day trial

Questions? Chat with us on WhatsApp · Try one live lesson

Previous note: Least Squares Regression Lines on the GDC: y on x and x on y

All Applications and Interpretation IB Maths topics · IB Maths