Logarithmic Scales
& Transformations
Learn how logarithmic transformations linearise exponential and power data, enabling powerful modelling with semi-log and log-log plots.
What Is a Logarithmic Scale?
On a linear scale, equal distances represent equal differences: 1, 2, 3, 4 ... On a logarithmic scale, equal distances represent equal ratios: 1, 10, 100, 1000 ... Each step is a factor of 10.
Why Use Logarithmic Scales?
The Key Idea: Linearisation
If data follows a non-linear model, applying \( \log \) to one or both variables can transform it into a linear relationship. We then apply linear regression to the transformed data and convert back.
Exponential Model: Semi-Log Plot
Power Model: Log-Log Plot
Semi-Log vs Log-Log
| Semi-Log Plot | Log-Log Plot | |
|---|---|---|
| Model type | \( y = a \cdot b^x \) | \( y = a \cdot x^n \) |
| Axes | \( x \) vs \( \log y \) | \( \log x \) vs \( \log y \) |
| Gradient gives | \( \log b \) | \( n \) |
| Intercept gives | \( \log a \) | \( \log a \) |
| Example | Population growth | Kepler's third law |
How to Apply the Transformation
Example 1: Bacterial Growth
A biologist counts bacteria every hour. The data is:
| Time \( t \) (hours) | 0 | 1 | 2 | 3 | 4 |
|---|---|---|---|---|---|
| Population \( P \) | 50 | 120 | 290 | 700 | 1680 |
| \( \log_{10} P \) | 1.70 | 2.08 | 2.46 | 2.85 | 3.23 |
Example 1: Semi-Log Plot
Example 2: Planet Orbits
Kepler's third law relates a planet's orbital period \( T \) (years) to its distance \( d \) (AU) from the Sun. We suspect \( T = a \cdot d^n \).
| Planet | \( d \) (AU) | \( T \) (years) | \( \log_{10} d \) | \( \log_{10} T \) |
|---|---|---|---|---|
| Mercury | 0.39 | 0.24 | -0.41 | -0.62 |
| Earth | 1.00 | 1.00 | 0.00 | 0.00 |
| Mars | 1.52 | 1.88 | 0.18 | 0.27 |
| Jupiter | 5.20 | 11.86 | 0.72 | 1.07 |
| Saturn | 9.54 | 29.46 | 0.98 | 1.47 |
Example 2: Log-Log Plot
Example 3: Finding Parameters from Regression
A GDC regression on the semi-log data \( (x, \log y) \) gives the line \( Y = 0.204x + 1.48 \). Find the original model \( y = a \cdot b^x \).
\( \ln \) vs \( \log_{10} \): Which to Use?
Common Mistakes
Summary of Transformations
| Original Model | Transform | Linear Form | Recover Parameters |
|---|---|---|---|
| \( y = a \cdot b^x \) | \( Y = \log y \) | \( Y = (\log b)x + \log a \) | \( b = 10^m,\; a = 10^c \) |
| \( y = a e^{kx} \) | \( Y = \ln y \) | \( Y = kx + \ln a \) | \( k = m,\; a = e^c \) |
| \( y = a x^n \) | \( X = \log x,\; Y = \log y \) | \( Y = nX + \log a \) | \( n = m,\; a = 10^c \) |
Question 1 of 5
If data follows the model \( y = a \cdot b^x \), which plot will produce a straight line?
Question 2 of 5
A log-log plot of \( \log x \) vs \( \log y \) gives a straight line with gradient 2.5 and \( Y \)-intercept 0.7. What is the original model?
Question 3 of 5
A regression on \( (x, \ln y) \) gives the line \( Y = 0.3x + 2.0 \). What are \( a \) and \( k \) in the model \( y = ae^{kx} \)?
Question 4 of 5
On a semi-log plot, the gradient of the best-fit line is \( 0.48 \). Using \( \log_{10} \), what is the base \( b \) in the exponential model \( y = ab^x \)?
Question 5 of 5
You suspect data follows a power model \( y = ax^n \). To test this, you should plot: