CrossCorrelation Class |
Namespace: Imsl.Stat
The CrossCorrelation type exposes the following members.
Name | Description | |
---|---|---|
![]() | CrossCorrelation |
Constructor to compute the sample cross-correlation function of two
stationary time series.
|
Name | Description | |
---|---|---|
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetAutoCorrelationX |
Returns the autocorrelations of the time series x.
|
![]() | GetAutoCorrelationY |
Returns the autocorrelations of the time series y.
|
![]() | GetAutoCovarianceX |
Returns the autocovariances of the time series x.
|
![]() | GetAutoCovarianceY |
Returns the autocovariances of the time series y.
|
![]() | GetCrossCorrelations |
Returns the cross-correlations between the time series x and
y.
|
![]() | GetCrossCovariances |
Returns the cross-covariances between the time series x and
y.
|
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetStandardErrors |
Returns the standard errors of the cross-correlations between the
time series x and y.
|
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
![]() | MeanX |
Estimate of the mean of time series x.
|
![]() | MeanY |
Estimate of the mean of time series y.
|
![]() | NumberOfProcessors |
Perform the parallel calculations with the maximum possible number of
processors set to NumberOfProcessors.
|
![]() | VarianceX |
Returns the variance of time series x.
|
![]() | VarianceY |
Returns the variance of time series y.
|
CrossCorrelation estimates the cross-correlation function of two
jointly stationary time series given a sample of n =
x.Length observations and
for t = 1,2, ..., n.
Let
The autocovariance function of ,
, is estimated by
Note that by definition.
Let
The cross-covariance function is
estimated by
The standard errors of the sample cross-correlations may be optionally computed according to the GetStandardErrors method argument stderrMethod. One method is based on a general asymptotic expression for the variance of the sample cross-correlation coefficient of two jointly stationary time series with independent, identically distributed normal errors given by Bartlet (1978, page 352). The theoretical formula is
A second method evaluates Bartlett's formula under the additional assumption that the two series have no cross-correlation. The theoretical formula is
An important property of the cross-covariance coefficient is
for
. This result is used in the computation of
the standard error of the sample cross-correlation for lag
. In general, the cross-covariance function
is not symmetric about zero so both positive and negative lags are of
interest.