IB

View all Questions

Question

Mathematics

How can log-log regression recover a power law for wildfire size and duration?

Answer

Mathematics

Expert Answer

If size AA follows a power law A=kDnA=kD^n in duration DD, taking logarithms turns it into a straight-line model. Fit a regression line for log⁡A\log A against log⁡D\log D: the gradient gives the exponent nn, and the intercept determines kk.

Transform both variables

Using base-10 logarithms,

log⁡10A=log⁡10k+nlog⁡10D.\log_{10}A=\log_{10}k+n\log_{10}D.

Write X=log⁡10DX=\log_{10}D and Y=log⁡10AY=\log_{10}A. The regression line is Y=nX+cY=nX+c, where c=log⁡10kc=\log_{10}k, so k=10ck=10^c.

Consider the following made-up data for the duration of a wildfire in hours and the area it affects in hectares.

DD (hours)AA (hectares)log⁡10D\log_{10}Dlog⁡10A\log_{10}A
1500.69897
4400.602061.60206
91350.954242.13033
163201.204122.50515

Here the points lie exactly on a line of gradient 1.5 and intercept log⁡105\log_{10}5.

The transformed illustrative duration and area values lie on a straight line with gradient one point five and intercept log base ten of five.

The gradient gives the exponent; raise 10 to the power of the intercept to find the coefficient.

Use your GDC

In an IB exam, find the regression line with your GDC:

  1. Enter DD and AA in two lists.
  2. Create two further lists for log⁡10D\log_{10}D and log⁡10A\log_{10}A, letting the GDC calculate the logarithms. Do not type in rounded values such as those in the table above, as rounding can change your answers.
  3. Run linear regression of log⁡10A\log_{10}A on log⁡10D\log_{10}D to obtain the gradient nn and the intercept cc.

Your GDC may also have a built-in power regression, which fits A=kDnA=kD^n directly to the original data. Here it gives the same values of kk and nn. If a question asks you to use the regression line of log⁡A\log A on log⁡D\log D, show that method.

Recover and use the original model

The intercept is c=log⁡10kc=\log_{10}k, not kk itself. Undo the logarithm to find the coefficient: k=10log⁡105=5k=10^{\log_{10}5}=5, so

A=5D1.5.\boxed{A=5D^{1.5}.}

At 6 hours, this gives A=5(61.5)≈73.5A=5(6^{1.5})\approx73.5 hectares. Doubling the duration multiplies predicted area by 21.5≈2.832^{1.5}\approx2.83; it does not add a fixed number of hectares.

With natural logarithms the gradient is still nn, but the coefficient becomes k=eck=e^c. The numerical value of kk also depends on the units chosen for duration and area.

Judge the model, not just the line

Real observations will not usually lie perfectly on the transformed line. Check the plot and the residuals, the differences between the observed log values and the line's predictions, to see whether a power relationship is reasonable over the observed range. A straight relationship between log⁡A\log A and untransformed DD would suggest an exponential model instead.

Logarithms are only defined for positive values, so data containing zeros cannot be transformed in this way. Wildfire spread also depends on fuel, weather and terrain, so a fitted mathematical relationship should not be treated as a reliable forecast beyond its evidence.

For more practice, build a power-law model from the transformed wildfire data in Question 13 of AI HL Mock Exam, Set 1, Paper 1. Can you explain why the gradient gives the exponent but the intercept must be converted back before it gives the coefficient?

Answered by Revision Village IB Expert

Interested in diving deeper into this concept?

Explore More IB Mathematics Resources

Over 80% of IB students globally are experiencing the power of Revision Village