apaCopula.SymJoeClayton.Sim(n, TauUpper, TauLower, nDims)
=apaCopula.SymJoeClayton.Sim(n, TauUpper, TauLower, nDims)Result
Simulates uniform marginals from the symmetrized Joe-Clayton copula: an n x nDims matrix with the same upper and lower tail dependence for all pairs of columns.
Syntax
n: number of observations to simulate
TauUpper: upper tail dependence parameter, between 0 and 1 (exclusive)
TauLower: lower tail dependence parameter, between 0 and 1 (exclusive)
nDims: optional; number of columns (dimensions), at least 2; all pairs of columns share the same dependence parameters; default: 2
Algorithm
Each row is drawn with probability ½ from the Joe-Clayton (BB7) copula with (TauUpper, TauLower), and otherwise from the Joe-Clayton copula with (TauLower, TauUpper), flipped to 1 − u (Patton 2006). The Joe-Clayton parameters are κ = 1 / log2(2 − τU) and γ = −1 / log2(τL).
nDims = 2: conditional inversion of the bivariate Joe-Clayton copula.
nDims ≥ 3: exchangeable Joe-Clayton copula with generator inverse ψ(s) = 1 − (1 − (1 + s)^(−1/γ))^(1/κ), sampled with a frailty V ~ Gamma(M/γ), M ~ Sibuya(1/κ), shared by all columns of a row: U_j = ψ(E_j / V) with independent standard exponentials E_j (Marshall and Olkin 1988, Hofert 2011).
Remarks
Every pair of columns follows the bivariate symmetrized Joe-Clayton copula of apaCopula.SymJoeClayton.Cdf, with upper tail dependence TauUpper and lower tail dependence TauLower.
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.
