A positive series grows with increasing variation. Compare the original plot with a log plot and explain when a log is helpful.
A positive series grows with increasing variation. Compare the original plot with a log plot and explain when a log is helpful.
Use np.log on strictly positive values. Do not log zeros or negatives.
Transformations can stabilise variance or make growth more linear. A logarithm turns multiplicative growth into additive growth. It is not always required.
Constructed positive series: 20, 24, 30, 38, 50, 66, 90, 125.
Two plots: original curve steepening upward, log series closer to a straight rise.
If variation grows with the level, a log scale can make the pattern easier to model. Forecasts on the log scale must be converted back carefully.
Use a log only for positive data, and interpret results on the original scale when the decision uses original units.