Class 21 Stat701 Fall 1997
Time series: models and forecasts.
References:
Chris Chatfield. The Analysis of Time Series.Chapman and Hall.
S-Plus Guide to Statistics, Chapter 21.
Todays class.
![*](http://www-stat.wharton.upenn.edu/~waterman/icons/bluepin.gif)
- Introduction.
![*](http://www-stat.wharton.upenn.edu/~waterman/icons/bluepin.gif)
- Descriptive techniques.
![*](http://www-stat.wharton.upenn.edu/~waterman/icons/bluepin.gif)
- Series with trend - linear filters
![*](http://www-stat.wharton.upenn.edu/~waterman/icons/bluepin.gif)
- Autocorrelation
![*](http://www-stat.wharton.upenn.edu/~waterman/icons/bluepin.gif)
- The correlogram
![*](http://www-stat.wharton.upenn.edu/~waterman/icons/bluepin.gif)
- Processes
![*](http://www-stat.wharton.upenn.edu/~waterman/icons/redpin.gif)
- A purely random process
![*](http://www-stat.wharton.upenn.edu/~waterman/icons/redpin.gif)
- A random walk
![*](http://www-stat.wharton.upenn.edu/~waterman/icons/redpin.gif)
- Moving average process (MA)
![*](http://www-stat.wharton.upenn.edu/~waterman/icons/redpin.gif)
- Autoregressive process (AR)
![*](http://www-stat.wharton.upenn.edu/~waterman/icons/redpin.gif)
- Mixed ARMA models
![*](http://www-stat.wharton.upenn.edu/~waterman/icons/bluepin.gif)
- Types of series
![*](http://www-stat.wharton.upenn.edu/~waterman/icons/redpin.gif)
- Economic series: interest rate
![*](http://www-stat.wharton.upenn.edu/~waterman/icons/redpin.gif)
- Physical series: temperature
![*](http://www-stat.wharton.upenn.edu/~waterman/icons/redpin.gif)
- Marketing series: sales
![*](http://www-stat.wharton.upenn.edu/~waterman/icons/redpin.gif)
- Demographic: population series
![*](http://www-stat.wharton.upenn.edu/~waterman/icons/redpin.gif)
- Process control: yield
![*](http://www-stat.wharton.upenn.edu/~waterman/icons/bluepin.gif)
- Objectives in time series analysis
![*](http://www-stat.wharton.upenn.edu/~waterman/icons/redpin.gif)
- Description
![*](http://www-stat.wharton.upenn.edu/~waterman/icons/redpin.gif)
- Explanation
![*](http://www-stat.wharton.upenn.edu/~waterman/icons/redpin.gif)
- Prediction
![*](http://www-stat.wharton.upenn.edu/~waterman/icons/redpin.gif)
- Control
![*](http://www-stat.wharton.upenn.edu/~waterman/icons/bluepin.gif)
- Overall plan:
descriptive techniques,
probability models,
fitting the models,
forecasting procedures
![*](http://www-stat.wharton.upenn.edu/~waterman/icons/bluepin.gif)
- Analysis in the time domain not the frequency domain
(see stat 711 for this).
Types of variation: extracting the main properties in a series.
![*](http://www-stat.wharton.upenn.edu/~waterman/icons/bluepin.gif)
- Seasonal effect - measure and/or remove
![*](http://www-stat.wharton.upenn.edu/~waterman/icons/bluepin.gif)
- Other cyclic changes
![*](http://www-stat.wharton.upenn.edu/~waterman/icons/bluepin.gif)
- Trend - long term change in the mean level
![*](http://www-stat.wharton.upenn.edu/~waterman/icons/bluepin.gif)
- Other irregular fluctuations - the residuals,
can they be explained via models such as moving average or
autoregressive.
![*](http://www-stat.wharton.upenn.edu/~waterman/icons/bluepin.gif)
- Stationary time series - no systematic change in the mean or
the variance and no strictly periodic variations. Most theory is
concerned with stationary time series - so need this assumption to use
theory.
![*](http://www-stat.wharton.upenn.edu/~waterman/icons/bluepin.gif)
- The time plot: plotting the series against time - picks up important
features such as trend, seasonality, outliers and discontinuities
Analyzing series that contain a trend
![*](http://www-stat.wharton.upenn.edu/~waterman/icons/bluepin.gif)
- Model it:
![*](http://www-stat.wharton.upenn.edu/~waterman/icons/bluepin.gif)
- Filter it
![*](http://www-stat.wharton.upenn.edu/~waterman/icons/redpin.gif)
- Turn one time series
into another
by a linear
operation
where
is a set of weights.
![*](http://www-stat.wharton.upenn.edu/~waterman/icons/redpin.gif)
- To smooth out fluctuations and estimate the local mean set
- the moving average. Often symmetric with s = q and
. The simple moving average: a symmetric smoothing filter with
for
.
![*](http://www-stat.wharton.upenn.edu/~waterman/icons/redpin.gif)
- Can also choose weights to fit a local polynomial - very close to
splines.
![*](http://www-stat.wharton.upenn.edu/~waterman/icons/redpin.gif)
- Exponential smoothing:
, where
.
![*](http://www-stat.wharton.upenn.edu/~waterman/icons/redpin.gif)
- What sort of filter? To see the trend need to remove local fluctuations, the high frequency variation - therefore need a low-pass filter.
![*](http://www-stat.wharton.upenn.edu/~waterman/icons/redpin.gif)
- To see residuals remove low frequency variation - want a high-pass
filter.
![*](http://www-stat.wharton.upenn.edu/~waterman/icons/redpin.gif)
- A very familiar filter
, differencing. For
non-seasonal data this may be enough to obtain near stationarity.
Series with seasonal variation
A simple additive model:
.
To estimate the seasonal effect for a particular period, find the average for
that period minus the corresponding yearly average.
To remove a seasonal effect with monthly data use the filter
To remove a seasonal effect with quarterly data use the filter
Autocorrelation
Measures of the correlation at different distances apart in time.
Lag 1 autocorrelation measures the correlation between observations 1 time
unit apart.
Lag k autocorrelation:
The correlogram: a plot of
against k.
Interpretation of the correlogram:
If time series is completely random then for large N,
.
In fact
is approx N(0,1/N), so estimates should typically
be within
Short term correlation. Stationary series often have a fairly large
,
a few coefficients greater than 0 but getting successively smaller, and
for large k,
is about 0.
Alternating series: Successive observations alternating on different
sides of the overall mean, the correlogram alternates too.
Non-stationary series with a trend:
comes down slowly. In fact
is only meaningful for stationary series - detrend first.
Seasonal fluctuations: if time series has a seasonal fluctuation then
correlogram has fluctuation at the same frequency.
Richard Waterman
Mon Nov 17 22:26:51 EST 1997