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) | 0 | 5 | 10 | 15 | 20 | 25 | 30 |
|---|---|---|---|---|---|---|---|
| D (°C) | 75 | 57 | 44 | 35 | 27 | 22 | 17 |
- 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 ), 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: , where ("y hat") is the model's prediction.
- For a line, the GDC chooses the line that makes the sum of squared residuals 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.
| Model | Equation | GDC option (typical name) | Shape it suits |
|---|---|---|---|
| Quadratic | QuadReg | One turning point | |
| Cubic | CubicReg | Two bends | |
| Exponential | (or ) | ExpReg | Multiplies by a constant factor |
| Power | PwrReg | Through the origin, bending | |
| Sine | SinReg | Repeats |
✏️ YOUR TURN 1
Try this first:
Which model would you try first for each data set? Give a reason.
- The number of bacteria, which roughly doubles every hour.
- The height of a tide measured every hour for two days.
- The area of a square photo against its side length.
Answer:
- Exponential: multiplying by about 2 each hour is a constant factor.
- Sine: tides repeat.
- Power (): 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
- Enter t in list 1 and D in list 2.
- Choose your GDC's exponential regression tool (the form), with lists 1 and 2.
- The screen gives a = 73.2, b = 0.952 and (3 s.f.).
- Write down the model: .
- 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 write | Why I do it |
|---|---|
| a = 73.2: the model's starting difference is 73.2 °C | At t = 0, , 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 minute | Each minute D is multiplied by 0.952. . |
| At t = 40: °C | Use the stored model. 40 is just outside the data (0 to 30), a short extrapolation. |
| At t = 10: ; the data say 44; residual | A 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.
All notes in Correlation and regression (SL 4.4, 4.10; AHL 4.13)
- Scatter Diagrams, Correlation and Regression Lines
- Spearman's Rank Correlation Coefficient, Including Tied Ranks
- Pearson's Correlation Coefficient r: Meaning and GDC Method
- Residuals and the Residual Sum of Squares
- Least Squares Regression Lines on the GDC: y on x and x on y
- 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.
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