6
1 TIME SERIES ANALYSIS: AUTOCORRELATION Chatfield (1996) Chapter 2 (example: Rebel et al., 2012)

CA Modelling

Embed Size (px)

DESCRIPTION

autocorrelation

Citation preview

Page 1: CA Modelling

1

TIME SERIES ANALYSIS:

AUTOCORRELATION

Chatfield (1996) Chapter 2 (example: Rebel et al., 2012)

Page 2: CA Modelling

2

Autocorrelation

• The correlation of data with itself at different ‘lags’

• Lag: difference between points in time

1 year lag between values

2 year lag between values

6 month lag

Autocorrelation

• The correlation of data with itself at different ‘lags’

• Lag: difference between points in time

1 year lag between values

Pair is a given value and the lagged value. Look at ALL PAIRS in the time series.

Page 3: CA Modelling

3

Autocorrelation

• Autocorrelation Function (ACF):

• Autocorrelation coefficients measure the correlation

(if any) between observations at different distances

(lags in time) apart

��� �, � − � = ∑ �� � −�̅� � �� −�̅�

�� ���(� − 1)

Autocorrelation

• Autocorrelation Function (ACF):

• Pearson Correlation (r):

��� �, � − � = ∑ �� � −�̅� � �� −�̅�

�� ���(� − 1)

����������� � = ∑ ��� −��̅ ��� −��̅

� − 1

Page 4: CA Modelling

4

Autocorrelation Plots

• An autocorrelation plot is a plot of autocorrelation

for multiple lags

• Autocorrelation coefficients are plotted against the lag

• Correlation coefficients are calculated for

observations and observations at multiple lags

Autocorrelation Plots

Time

Lag

Val

ueA

CF

Original

Time Series

Autocorrelation

Plot

Page 5: CA Modelling

5

Autocorrelation Example

Autocorrelation Example

Page 6: CA Modelling

6

Autocorrelation Plots

• If the time series oscillates either side of its mean,

so the autocorrelation plot oscillates

• If the time series contains a trend, correlations will

not reduce to zero

• If the time series contains seasonal variation, the

autocorrelation will oscillate at the same frequency

• Autocorrelation plots are useful in identifying a

suitable type of model for the data

• e.g. AR, MA, ARMA, ARIMA, etc.