CrossCorrelation - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Statistics

  

CrossCorrelation

  

compute sample cross-correlations of two time series

 

Calling Sequence

Parameters

Options

Description

Examples

Compatibility

Calling Sequence

CrossCorrelation(X1, X2)

CrossCorrelation(X1, X2, lags)

Parameters

X1, X2

-

discrete univariate time series given as Vectors, lists, Matrices with one column, or TimeSeries objects with one dataset.

lags

-

(optional) maximal lag to return, or a range of lags to return. By default all possible lags are returned.

Options

• 

scaling

  

One of biased, unbiased, or none.  Default is none. scaling=biased computes . scaling=unbiased scales each  by .

• 

raw

  

If this option is given, the output is not normalized so that the middle entry (corresponding to ) is 1 when scaling=unbiased or scaling=none.

Description

• 

For a discrete time series X1 and X2, the CrossCorrelation command computes the cross-correlations  where  for .

• 

For efficiency, all of the lags are computed at once using a numerical discrete Fourier transform.  Therefore all data provided must have type complexcons and all returned solutions are floating-point, even if the problem is specified with exact values.

• 

If the inputs are not the same length, the shorter is padded with zeros at the end.

• 

Note: CrossCorrelation makes use of DiscreteTransforms[FourierTransform] and thus will work strictly in hardware precision, that is, its accuracy is independent of the setting of Digits.

• 

For more time series related commands, see the TimeSeriesAnalysis package.

Examples

(1)

(2)

(3)

(4)

(5)

(6)

(7)

(8)

The CrossCorrelation command also accepts TimeSeries objects, but the date information is ignored.

(9)

(10)

(11)

(12)

(13)

CrossCorrelation can be used to create cross-correlograms

Compatibility

• 

The Statistics[CrossCorrelation] command was introduced in Maple 15.

• 

For more information on Maple 15 changes, see Updates in Maple 15.

• 

The Statistics[CrossCorrelation] command was updated in Maple 2015.

• 

The X1 parameter was updated in Maple 2015.

See Also

ColumnGraph

Statistics[AutoCorrelation]

TimeSeriesAnalysis

 


Download Help Document