Home   >   User Resources   >   Online Help   >   apaCorrels.Conditional.Sigma.Joint
 

 

Function index Version 3.0.0

apaCorrels.Conditional.Sigma.Joint(TimeSeries, nSigma, IsCorrelsOtherwiseNObs)

Excel=apaCorrels.Conditional.Sigma.Joint(TimeSeries, nSigma, IsCorrelsOtherwiseNObs)

Result

Calculates the joint conditional correlation matrix for observations below the arithmetic mean minus and above the arithmetic mean plus a number of standard deviations.

Syntax

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

nSigma: number of sample standard deviations defining the thresholds below (mean minus) and above (mean plus) the mean

IsCorrelsOtherwiseNObs: TRUE to return the correlations, FALSE to return the number of observations used in their calculation (diagonal: full number of observations r)

Remarks

The upper triangle (i < j) holds the correlations on observations where both assets are above their upper thresholds, and the lower triangle (j, i) those where both are at or below their lower thresholds. The thresholds are the arithmetic mean minus and plus nSigma times the sample standard deviation (denominator n - 1) of the full sample of each series; an observation is selected below if it is at or below the lower threshold and above if it is strictly above the upper 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); if IsCorrelsOtherwiseNObs is FALSE, the diagonal is the full number of observations r.