apaCorrels.Conditional.Sigma.Joint.Lower(TimeSeries, nSigma)
=apaCorrels.Conditional.Sigma.Joint.Lower(TimeSeries, nSigma)Result
Calculates the joint conditional correlation matrix for observations where both assets are at or below their arithmetic means minus nSigma sample standard deviations.
Syntax
TimeSeries: r x c data matrix, each column containing a time series
nSigma: number of sample standard deviations defining the threshold below the mean
Remarks
An observation is used for the pair (i, j) only if it is selected for both assets; the matrix is symmetric. The threshold is the arithmetic mean minus nSigma times the sample standard deviation (denominator n - 1) of the full sample of each series; an observation is selected if it is at or below the threshold. TimeSeries must be a complete numeric matrix (empty cells are read as 0, text returns #VALUE!). Each correlation is the Pearson correlation of the selected observations. #N/A is returned where fewer than two observations are selected or where one of the two series is constant on them; with exactly two selected observations the correlation is always +1 or -1. The diagonal is 1 (#N/A for a constant series).
