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

 

Function index Version 3.0.0

apaCopula.Clayton.Sim(nObs, Alpha, nDims)

Excel=apaCopula.Clayton.Sim(nObs, Alpha, nDims)

Result

Simulates uniform marginals from the Clayton copula, i.e. data with lower tail dependence: an nObs x nDims matrix with the same Alpha for all pairs of columns.

Syntax

nObs: number of observations to simulate

Alpha: Clayton copula parameter α, i.e. 2 * KendallTau / (1 - KendallTau); larger than −1 for nDims = 2, at least 0 for nDims ≥ 3; 0 gives independence; small (large) values generate small (large) lower tail dependence

nDims: optional; number of columns (dimensions), at least 2; all pairs of columns share the same dependence parameters; default: 2

Algorithm

nDims = 2: conditional inversion, U2 = U1·(S^(−α/(1+α)) − 1 + U1^α)^(−1/α) with independent uniforms U1 and S.

nDims ≥ 3: V ~ Gamma(1/α) shared by all columns of a row, U_j = (1 + E_j / V)^(−1/α) with independent standard exponentials E_j (Marshall and Olkin 1988).

Remarks

Every pair of columns has the bivariate Clayton copula C(u, v) = (u^(−α) + v^(−α) − 1)^(−1/α), Kendall’s tau α / (α + 2) and lower tail dependence 2^(−1/α) for α > 0. Negative α (negative dependence) is only possible with two columns.

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.