Visualizing a time series is an essential step in exploring its behavior. Statisticians think of a time series as a combination of four components: trend, seasonality, level and noise. All real-world series contain a level and noise, but not necessarily a trend and/or seasonality. It is important to determine whether trend and/or seasonality exist in a series in order to choose appropriate models and methods for descriptive or forecasting purposes. Hence, looking at a time plot, typical questions include:
An example is shown in the Figure. The top left plot is the original series (showing monthly ridership on Amtrak trains). The bottom left panel shown a moving average line, suppressing seasonality and showing the trend. The top right panel shows a model that captures the seasonality. The lower left panel shows the residuals from the model, again enhancing the trend.
For further details and examples, see my recently published book Practical Time Series Forecasting: A Hands On Guide (available in soft-cover and as an eBook).
- is there a trend? if so, what type of function can approximate it? (linear, exponential, etc.) is the trend fixed throughout the period or does it change over time?
- is there seasonal behavior? if so, is seasonality additive or multiplicative? does seasonal behavior change over time?
- Plot annual data (either annual averages or sums)
- Plot a moving average (an average over a window of 12 months centered around each particular month)
- Plot 12 separate series, one for each month (e.g., one series for January, another for February and so on)
- Fit a model that captures monthly seasonality (e.g., a regression model with 11 monthly dummies) and look at the residual series
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRvgQmHbnHCPT2WLZEqVnmm_rktRrSuVElaE65eAqZgh05TLdSlmNQw21ss7dd7ANO8obNgrwbrFg8y1MRqF0ZRjMCE3VKh5fE0gd-ysKGJxc_tC1otHpXWkAy6TbOKpoSO8zM4A/s400/Seasonal-Adjustment.png)
For further details and examples, see my recently published book Practical Time Series Forecasting: A Hands On Guide (available in soft-cover and as an eBook).
No comments:
Post a Comment