Grade by GradeEssential student suppliesSign in
CC. Curricular Competencies · Curricular Competencies: Reasoning, Modelling and Communicating in FOM 12

Exploring Regression with Technology and Reason

BC FOM 12: technology and tools BC FOM 12: explore and analyzeAbout 60 minutes
Learning goals
  • I can use graphing technology or a spreadsheet to fit linear and exponential regressions.
  • I can compare models using r², residuals and the shape of the data.
  • I can use reasoning about the situation to decide whether a prediction makes sense.

Words to know

regression
A method that finds the equation of best fit for a set of data.
coefficient of determination (r²)
A number from 0 to 1 showing how much of the variation in the data a model explains.
residual
Actual value minus predicted value for one data point.
extrapolate
To predict outside the range of the data you collected.
interpolate
To predict inside the range of the data you collected.

Technology does the arithmetic, you do the reasoning

The curriculum asks you to explore, analyze, and apply mathematical ideas using reason, technology, and other tools. Regression is a great example. A graphing calculator, Desmos or a spreadsheet can fit a line or curve to data in seconds. But only you can decide which model fits the situation and whether a prediction is believable.

Use this routine: plot the data first, predict which model type will fit, fit with technology, check r² and residuals, and reason about the context.

Time (min)051015202530
Temperature (°C)90736050423631
Invented data: a cup of tea cooling in a room at 20°C.
0102030020406080100time (min)temperature (°C)solid: exponential fitdashed: linear fit
The tea data with both fits. The points curve, and the exponential curve follows them much more closely than the line.
Worked example

Example 1: Fit two models

Use technology to fit a linear and an exponential regression to the tea data. Compare them.

  1. Plot first: the points drop fast, then more slowly, so a curve is likely to fit better than a line.
  2. Linear regression: T ≈ −1.92t + 83.4, with r² ≈ 0.956.
  3. Exponential regression: T ≈ 87.2(0.965)ᵗ, with r² ≈ 0.996.
  4. Residuals: the linear residuals go + then − then + (about +6.6, −0.8, −4.2, −4.6, −3.0, +0.6, +5.3), a curved pattern. The exponential residuals are small (all under 3) with no strong pattern.

The exponential model fits better: higher r² and smaller residuals with no curved pattern.

Worked example

Example 2: Reason before you trust a prediction

Use each model to predict the temperature after 60 minutes. Are the predictions reasonable?

  1. Linear: −1.92(60) + 83.4 ≈ −32°C. Tea in a warm room can't freeze, so this is not reasonable.
  2. Exponential: 87.2(0.965)⁶⁰ ≈ 10°C. Also unreasonable: tea can't cool below room temperature (20°C).
  3. Reason: both predictions are extrapolations, far beyond the 30 minutes of data. The real temperature should level off near 20°C.

Neither prediction is reasonable. The situation tells you the temperature should approach 20°C.

Worked example

Example 3: Improve the model with reasoning

Model the excess temperature E = T − 20 instead, then predict T at 60 minutes.

  1. The excess values are 70, 53, 40, 30, 22, 16, 11.
  2. Exponential regression on E gives E ≈ 72.4(0.941)ᵗ.
  3. At t = 60: E ≈ 72.4(0.941)⁶⁰ ≈ 1.9, so T ≈ 20 + 1.9 ≈ 22°C.
  4. Check: 22°C is just above room temperature, which matches what really happens to a forgotten cup of tea.

About 22°C. Using what you know about the situation produced a much better model.

Plot before you fit

Always look at a scatter plot before choosing a regression. A high r² does not prove a model is right, and any model can fail when you extrapolate far beyond the data.

Hands-on activity

Cool it down

With an adult's help, pour a cup of hot water (take care: it can scald) and measure its temperature every 5 minutes for 30 minutes with a kitchen thermometer. Also record the room temperature.

  1. Enter the data into a spreadsheet or graphing app.
  2. Fit linear and exponential regressions to T, then an exponential regression to T − room temperature.
  3. Predict the temperature at 60 minutes with each model, then measure it. Which model was best? Why?
Just for fun

Odd fact: the word regression comes from the 1880s, when Francis Galton studied the heights of parents and their grown children. He noticed that the children of very tall parents tended to be tall, but closer to average. He called this regression towards mediocrity; today we call it regression towards the mean.

Your turn

1

A linear regression gives r² = 0.42 and an exponential one gives r² = 0.93 for the same data. Which explains more of the variation?

2

A data point is (10, 60) and the model predicts 64.2. Find the residual.

3

Is predicting the tea temperature at 12 minutes interpolation or extrapolation?

4

Use T ≈ 87.2(0.965)ᵗ to predict the temperature at 12 minutes.

5

Residuals from a linear fit form a U shape. What does that suggest?

6

Why is r² alone not enough to choose a model?

More practice

1

A line of best fit for bus riders (invented data) is R = 120d + 950, where d is days since a new route opened. Interpret 120.

2

Using that model, predict R at d = 15.

3

Name one reason the bus model may fail at d = 1000.

4

What is the excess temperature of tea at 45°C in a 20°C room?

Check your understanding

Quiz

1.

Which value shows how much variation a regression model explains?

2.

Linear residuals show a curved pattern. The best next step is to:

3.

A model predicts tea will be −32°C after an hour in a warm room. This shows:

4.

Predicting inside the range of collected data is called:

For parents and teachers

This lesson uses technology to fit regressions, and reasoning to judge them. Your teen compares models with r² and residuals, then checks predictions against common sense.

How to help: if your teen uses a spreadsheet or Desmos, ask them to show you the scatter plot first. Ask Does that prediction make sense in real life?

Common mistakes: choosing a model only by r²; trusting predictions far outside the data; mixing up the residual (actual − predicted) with predicted − actual.