Home   >   User Resources   >   Online Help   >   apaAutoCorrel
 

 

Function index Version 3.0.0

apaAutoCorrel(Returns, Lag, DoNotShowConfidenceBandsOtherwiseShow)

Excel=apaAutoCorrel(Returns, Lag, DoNotShowConfidenceBandsOtherwiseShow)

Result

Returns the autocorrelation coefficients up to a certain lag for one or several time series. If only one time series is provided, the +/-95% confidence bands are reported as well.

Syntax

Returns: n x m time series matrix, each column containing a time series

Lag: maximum lag to shift the data

DoNotShowConfidenceBandsOtherwiseShow: optional; TRUE (default) to return the coefficients only, FALSE to add the lower and upper confidence bands in the last two columns.

Algorithm

Pearson correlation coefficients are calculated from the lagged time series.

Remarks

More than one time series can be processed.

The confidence bands are the approximate 95% white-noise bands −1/n ± 2/√n, where n is the number of observations.