Home   >   User Resources   >   Online Help   >   apaCopula.Gaussian.Sim
 

 

Function index Version 3.0.0

apaCopula.Gaussian.Sim(nObs, p)

Excel=apaCopula.Gaussian.Sim(nObs, p)

Result

Simulates uniformly distributed variables from the Gaussian copula: nObs x 2 for a single correlation, nObs x k for a k x k correlation matrix.

Syntax

nObs: number of observations to simulate

p: single correlation (bivariate case) or k x k correlation matrix; the matrix must be symmetric with ones on the diagonal and positive semi-definite

Algorithm

Z = L·ε with independent standard normals ε and the Cholesky factor L of the correlation matrix (bivariate case: Z2 = p·Z1 + sqrt(1 − p²)·ε2); U = Φ(Z), with Φ the standard normal distribution function.

Remarks

The Gaussian copula has no tail dependence. Kendall’s tau between two columns is 2/π·arcsin(ρ).

This function is volatile, i.e. it is recalculated whenever a change occurs in the workbook, even if not related to the function’s output, and when pressing F9.