apaAutoCovar(Returns, Lag, IsSampleOtherwisePopulation)
Excel
=apaAutoCovar(Returns, Lag, IsSampleOtherwisePopulation)Result
Returns the autocovariances up to a certain lag for one or several time series.
Syntax
Returns: n x m time series matrix, each column containing a time series
Lag: maximum lag to shift the data
IsSampleOtherwisePopulation: optional; TRUE for sample covariances (division by n-1), FALSE for population covariances (division by n); default: FALSE
Algorithm
Covariances are calculated from the lagged time series.
Remarks
If more than one time series is provided, the autocovariances of all time series are calculated.
