Fitting Models to Logarithmic Data
Transform each observation before plotting
For measured data, a suitable straight-line graph usually passes close to the points, not exactly through all of them. A line of best fit follows their overall trend, with points distributed on both sides; it is not a point-to-point zigzag.
Fit to a cooling drink, with temperature in °C and time in minutes.
Calculate for each measured temperature. For example, at , .
| t (min) | T (°C) | ln(T − 20) |
|---|---|---|
| 0 | 50.0 | 3.401 |
| 2 | 40.1 | 3.001 |
| 4 | 33.5 | 2.603 |
| 6 | 29.0 | 2.197 |
| 8 | 26.1 | 1.808 |
Choose two well-separated points on the fitted line. Using (0,3.40) and (8,1.80):
The model is approximately . Check an observation not used to find the gradient: at , it predicts about , close to the measured value.
Keep extra digits in the transformed data until the final estimates. Points lying on one straight line are called collinear. Measured data may only approximately follow a line.
Data follow : (1,12), (2,3), (4,0.75). Which axes make them collinear? Find and check the third point.
Show worked answer
Plot against . Collinear means lying on one straight line.
Return to the original quantities
The fitted cooling model starts at approximately . As time increases, its exponential term tends to zero, so its predicted temperature approaches .
Worked example
Estimate when the drink reaches 23°C.
This is beyond the observed 0–8 minute interval. It is an extrapolation: a prediction outside the measured range, which relies on the model continuing to apply.
A fitted model is for , with time in minutes. Find the initial temperature, the long-term temperature and when it reaches 24°C.
Show worked answer
The arrow means the temperature approaches 18°C as time increases; the model does not reach it at a finite time.
