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

 

Function index Version 3.0.0

apaCopula.t.Sim(nObs, p, Df)

Excel=apaCopula.t.Sim(nObs, p, Df)

Result

Simulates uniformly distributed variables from the Student t 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

Df: degrees of freedom ν; positive, need not be a whole number

Algorithm

Z = L·ε as in apaCopula.Gaussian.Sim; W ~ chi-square(ν), drawn once per observation and shared by all columns; X = Z / sqrt(W/ν); U = T_ν(X), with T_ν the Student t distribution function.

Remarks

Unlike the Gaussian copula, the t copula has symmetric lower and upper tail dependence λ = 2·T_{ν+1}(−sqrt((ν+1)(1 − ρ)/(1 + ρ))), which increases as ν decreases; for large ν it approaches the Gaussian copula. Kendall’s tau is 2/π·arcsin(ρ), as for the Gaussian copula.

To obtain returns, transform the columns with the inverse distribution functions of the desired marginals.

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.