Namespace:
Imsl.Stat
Assembly:
ImslCS (in ImslCS.dll) Version: 6.5.0.0
Syntax
C# |
---|
[SerializableAttribute] public class AutoCorrelation |
Visual Basic (Declaration) |
---|
<SerializableAttribute> _ Public Class AutoCorrelation |
Visual C++ |
---|
[SerializableAttribute] public ref class AutoCorrelation |
Remarks
AutoCorrelation estimates the autocorrelation function of a
stationary time series given a sample of n observations
for
.
Let






where K = maximumLag. Note that
is an estimate of the sample
variance. The autocorrelation function
is
estimated by

Note that by definition.
The standard errors of sample autocorrelations may be optionally computed according to the GetStandardErrors method argument stderrMethod. One method (Bartlett 1946) is based on a general asymptotic expression for the variance of the sample autocorrelation coefficient of a stationary time series with independent, identically distributed normal errors. The theoretical formula is
![\mbox{var}\{\hat \rho(k)\} =
\frac{1}{n}\sum\limits_{i=-\infty}^{\infty}
\left[{\rho^2(i)}+\rho(i-k)\rho(i+k)-4\rho(i)
\rho(k)\rho(i-k)+2\rho^2(i)\rho^2(k)\right]](eqn/eqn_2316.png)
where assumes
is unknown. For computational purposes, the autocorrelations
are replaced by their estimates
for
,
and the limits of summation are bounded because of the assumption that
for all
such
that
.
A second method (Moran 1947) utilizes an exact formula for the variance of the sample autocorrelation coefficient of a random process with independent, identically distributed normal errors. The theoretical formula is

where is assumed to be equal to zero. Note that
this formula does not depend on the autocorrelation function.
The method GetPartialAutoCorrelations returns the estimated
partial autocorrelations of the stationary time series given K =
maximumLag sample autocorrelations
for k=0,1,...,K. Consider the AR(k) process defined by







This procedure is sensitive to rounding error and should not be used if
the parameters are near the nonstationarity boundary. A possible
alternative would be to estimate
for successive AR(k) models using least or maximum likelihood.
Based on the hypothesis that the true process is AR(p), Box and
Jenkins (1976, page 65) note

See Box and Jenkins (1976, pages 82-84) for more information concerning the partial autocorrelation function.