Brighton Webs Ltd.
Statistics for Energy and the Environment
Time Series Analysis
The main reason businesses devote resources to time series analysis is to forecast the future. Time series methods are one of the principal means of forecasting, the other is causal techniques. Whilst causal models attempt to relate the behaviour of a predictable variable to the object of interest (e.g. Ice cream sales increase as winter gives way to spring), time series methods work on the assumption that the past is a guide to the future. In other words, you can sketch a half decent sales forecast on to a graph of past results with a pencil. Whatever the method used, it should be remembered the an economist in a suit with a laptop full of data and software is doing much the same as a woman with a crystal ball at a funfair.
The data used in this example can be found at the bottom of the page.
Components of a Time Series
There are three components to a time series model:
The basic technique for analyzing time series is the moving average. There are many variations on the theme which are intended to handle variations in trend, avoid giving undue weight to very old data etc.
The example is based on a moving average of current value and the three proceeding data points. Four points are selected because the data is quarterly. This is shown in the table and the graph:
As can be seen from the graph, the four point moving average reveals the underlying trend. The moving average can be extrapolated to form the basis for a forecast. In this case the extrapolation has been done using a technique called double exponential smoothing.
The seasonality can be expressed in terms of the current value to the moving average:
For example, the seasonal factor for the 3rd quarter of 2001 is:
The graph shows the seasonal factors, as can be seen these are independent of the trend, variations being due to noise.
This allows the average seasonal factor for each quarter to be calculated:
At this point, we have extrapolated valued for the moving average and seasonal factors, it is simple process to derive a forecast. The forecast values for each quarter are obtained by multiplying the extrapolated moving average by the seasonal factor. this is shown in the example table and on the graph below:
Table used in Examples
|Page modified: 13-May-2006|