Compare mean vs median and standard deviation vs IQR on a series that contains one spike.
Compare mean vs median and standard deviation vs IQR on a series that contains one spike.
Mean and standard deviation use all values and are sensitive to outliers. Median and IQR are more robust. Time series often contain irregular shocks.
Teaching series: 10, 11, 12, 12, 13, 40, 14, 15.
Mean larger than median; std larger relative to IQR because of the 40 spike.
The spike is an irregular observation. Using only the mean would overstate the typical level. Students should inspect the plot before trusting a mean forecast.
Irregular shocks inflate the mean and the standard deviation.