Statistics · Data presentation
1 / 9
Exponential models and regression
Fitting y = ab^x and y = ax^n to data by taking logs to get a straight line, then reading the constants off a regression line of log y on x (or on log x), and using the model to predict.
Statistics · Data presentation
Exponential models and regression
Fitting y = ab^x and y = ax^n to data by taking logs to get a straight line, then reading the constants off a regression line of log y on x (or on log x), and using the model to predict.
Why it works
Regression draws a straight line through data — but lots of real data isn't straight. Populations, investments and radioactive samples follow exponential laws , and many physical relationships follow power laws . The trick is to take logarithms, which turn these curves into straight lines you can regress.For , take logs of both sides: Compare with : plotting against gives a straight line with gradient and intercept . So if statistical software gives you the regression line of on , you read off the gradient and intercept and undo the logs:
For a power law , take logs to get so here you plot against : the gradient is and the intercept is . (The giveaway for which model: a straight line of against means exponential; a straight line of against means power.)
Once you have and (or ), the model predicts for any — substitute and evaluate. As always, predicting inside the data range is reliable; far outside it is extrapolation and should be treated with caution.