6.5 Logarithmic graphs and estimating parameters — Learn
Prerequisites: the laws of logarithms from Section 6.3; straight-line graphs and gradients from Chapter 3; the model from Sections 6.2 and 6.6.
By the end of this section you can: take logarithms of a model to turn it into a straight line; estimate the constants in from a graph of against ; estimate the constants in from a graph of against ; and convert an intercept back into the original constant.
1. Turning a curve into a straight line
A straight line is easier to read than a curve. A gradient and an intercept can be measured with a ruler, and a line makes the trend obvious. Logarithms let us turn an exponential or a power model into a straight line.
Start with the exponential model , where and . Take the natural logarithm of both sides:
This has the form if we plot against . The graph is a straight line with
So the gradient of the line gives , and the intercept gives . To recover and , undo the logarithm with the exponential: and .
Now take the power model , where and . Take logarithms:
Plot against . The graph is a straight line with
The table below shows which plot is needed for each model.
| Model | Plot | Gradient | Intercept |
|---|---|---|---|
| against | |||
| against |
Example 1. A model has data points and . Estimate and .
The gradient of the graph of against is
So and . The intercept is , so . The model is .
Example 2. A graph of against for a model has gradient and intercept . Find and .
The gradient is , so . The intercept is , so . The model is .
Example 3. A model satisfies . Find and in .
Compare with . The intercept gives , so . The gradient gives , so .
2. Try it: straightening a curve
Predict first. The figure shows a set of data points from a model . Before you touch the controls, predict the shape of the graph of against : a curve or a straight line? Then predict the sign of the gradient when is larger than . Write both predictions down.
Test. Move the slider to change the growth factor . Note the shape of the graph of against . Then press the button to show against , and read the gradient. Change again and read the new gradient.
Explain. Write two sentences. The first explains why plotting instead of turns the curve into a straight line. The second explains what the gradient of that line tells you about .
Progress check
Return to the mould culture in the chapter problem. Its counts are , , and at times , , and hours.
- Work out the ratio between each count and the one before it.
- Explain why a model of the form fits the data.
- Use two readings, at and , to estimate the gradient of against .
- Hence estimate and predict when reaches .
Watch out. These mistakes are common.
Quoting the intercept as . For the intercept is , not . So an intercept of means , not . Undo the logarithm with the exponential before you state the constant.
Plotting the wrong quantity for a power model. For both axes need logarithms: plot against . Plotting against does not give gradient .
Using logs of negative data. A logarithm needs a positive input, so and must be positive for these plots. If the data contain a zero or a negative value, the log-linear method cannot be used directly.
Re-check: after reading a gradient, compute and check that the value is plausible. A gradient of should give a growth factor close to .
You should now be able to
- explain why is a straight-line equation;
- explain why is a straight-line equation;
- choose the correct plot for an exponential model and for a power model;
- estimate the gradient and intercept from a log-linear graph;
- convert a gradient into a growth factor and an intercept into a constant;
- predict a future value from the fitted model.