Home   >   User Resources   >   Online Help   >   apaCovars.Jagged
 

 

Function index Version 3.0.0

apaCovars.Jagged(DataMatrix, IsSampleOtherwisePopulation)

Excel=apaCovars.Jagged(DataMatrix, IsSampleOtherwisePopulation)

Result

Returns the covariance matrix of a jagged matrix of time series. Note that the underlying correlation matrix is not necessarily valid.

Syntax

DataMatrix: jagged r x c data matrix, each column containing a time series

IsSampleOtherwisePopulation: optional; TRUE for sample covariances (division by n-1), FALSE for population covariances (division by n); default: FALSE

Remarks

The time series matrix is a matrix of returns, in which each column represents a series and each row an observation.

Volatilities are computed from all numeric observations of each series and correlations from the joint observations of each pair, which is why the resulting matrix is not necessarily positive semi-definite. Where a volatility or a correlation cannot be computed, the covariance is #N/A.