|
6.
Process or Product Monitoring and Control
6.4. Introduction to Time Series Analysis 6.4.4. Univariate Time Series Models
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||
| Example with the SEMPLOT Software for a Seasonal Time Series |
A computer software package is needed to do a Box-Jenkins time series
analysis for seasonal data. The computer output on this page will
illustrate sample output from a Box-Jenkins analysis using the
SEMSTAT
statisical software program. It analyzes the series G data set in the Box,
Jenkins and Reinsel text.
The graph of the data and the resulting forecasts after fitting a model are portrayed below. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
| Model Identification Section |
Enter FILESPEC or EXTENSION (1-3 letters):
To quit, press F10.
Autocorrelation Function for the first 36 lags 1 0.19975 13 0.21509 25 0.19726 2 -0.12010 14 -0.13955 26 -0.12388 3 -0.15077 15 -0.11600 27 -0.10270 4 -0.32207 16 -0.27894 28 -0.21099 5 -0.08397 17 -0.05171 29 -0.06536 6 0.02578 18 0.01246 30 0.01573 7 -0.11096 19 -0.11436 31 -0.11537 8 -0.33672 20 -0.33717 32 -0.28926 9 -0.11559 21 -0.10739 33 -0.12688 10 -0.10927 22 -0.07521 34 -0.04071 11 0.20585 23 0.19948 35 0.14741 12 0.84143 24 0.73692 36 0.65744 ![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||
| Analyzing Autocorrelation Plot for Seasonality |
If you observe very large autocorrelations at lags spaced n
periods apart, for example at lags 12 and 24, then there is
evidence of periodicity. That effect should be removed, since the
objective of the identification stage is to reduce the
autocorrelations throughout. So if simple differencing was not
enough, try seasonal differencing at a selected period. In the above
case, the period is 12. It could, of course, be any value, such as
4 or 6.
The number of seasonal terms is rarely more than 1. If you know the shape of your forecast function, or you wish to assign a particular shape to the forecast function, you can select the appropriate number of terms for seasonal AR or seasonal MA models. The book by Box and Jenkins, Time Series Analysis Forecasting and Control (the later edition is Box, Jenkins and Reinsel, 1994) has a discussion on these forecast functions on pages 326 - 328. Again, if you have only a faint notion, but you do know that there was a trend upwards before differencing, pick a seasonal MA term and see what comes out in the diagnostics. The results after taking a seasonal difference look good! ![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||
| Model Fitting Section | Now we can proceed to the estimation,
diagnostics and forecasting routines. The following program is again executed
from a menu and issues the following flow of output:
Enter FILESPEC or EXTENSION (1-3 letters):
Estimation is finished after 3 Marquardt iterations. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
| Output Section |
Theta 1 : 0.3765 0.0811 Seasonal MA estimates with Standard Errors
Original Variance
:
0.0021
AIC criteria ln(SSE)+2k/n :
-1.4959
k = p + q + P + Q + d + sD = number of estimates + order of regular difference + product of period of seasonality and seasonal difference. n is the total number of observations.
***** Test on randomness of Residuals *****
Hypothesis of randomness accepted. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
| Forecasting Section |
Default for number of periods ahead from last period = 6. Default for the confidence band around the forecast = 90%.
![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||