23.01.2014 Views

Modelling Dependence with Copulas - IFOR

Modelling Dependence with Copulas - IFOR

Modelling Dependence with Copulas - IFOR

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

• Generate independent uniform (0, 1) variates q and u.<br />

Assume that this gives q =0.6 andu =0.2.<br />

• Choose the index j such that<br />

j =min{i ≥ 1|<br />

i∑<br />

λ k ≥ q}.<br />

k=1<br />

Since λ 1 qwe get j =2.<br />

• The desired random variate from C is:<br />

(a 2 1(u), (a 2 2(u), (a 2 3(u)), where<br />

(a 2 1(u),a 2 2(u), (a 2 3(u)) = (u, u, u) − (0, 0, 1)(2u − 1)<br />

= (u, u, 1 − u) =(0.2, 0.2, 0.8).<br />

Note the similarity <strong>with</strong> the binary representation of j − 1=1(u ∼ 0,<br />

1 − u ∼ 1).<br />

When many random variates are produced according to the algorithm, the rank<br />

correlation matrix of the data is very close to ρ.<br />

Example 8.3. Consider the following problem: We are given margins F 1 ,... ,F 4<br />

and rank correlation matrix ρ given by<br />

⎛<br />

⎞<br />

1 0.1 −0.1 −1<br />

⎜ 0.1 1 0.7 −0.1<br />

⎟<br />

⎝ −0.1 0.7 1 0.1 ⎠ .<br />

−1 −0.1 0.1 1<br />

This is a positive-semi-definite matrix (however not positive-definite since det(ρ) =<br />

0) and hence a proper rank correlation matrix. We want to find a distribution<br />

<strong>with</strong> this rank correlation matrix, which belongs to the family of mixtures of extremal<br />

distributions obtained from convex combinations of extremal distributions<br />

<strong>with</strong> margins F 1 ,... ,F 4 . In other words we want to find a convex decomposition<br />

of ρ in the eight extremal rank correlation matrices. Simply solving the resulting<br />

equation system<br />

⎛<br />

⎜<br />

⎝<br />

1 1 1 1 −1 −1 −1 −1 0.1<br />

1 1 −1 −1 1 1 −1 −1 −0.1<br />

1 −1 1 −1 1 −1 1 −1 −1<br />

1 1 −1 −1 −1 −1 1 1 0.7<br />

1 −1 1 −1 −1 1 −1 1 −0.1<br />

1 −1 −1 1 1 −1 −1 1 0.1<br />

1 1 1 1 1 1 1 1 1<br />

given by (8.0.8) and only allowing nonnegative solutions yields<br />

⎞<br />

,<br />

⎟<br />

⎠<br />

λ 1 =0,λ 2 =0.425,λ 3 =0,λ 4 =0.125,λ 5 =0,λ 6 =0.25,λ 7 =0,λ 8 = 0425,<br />

as the only solution (note that in general the decomposition is not unique). From<br />

Theorem 8.3 it is clear that the resulting copula, C, isgivenby<br />

C(u 1 ,u 2 ,u 3 ,u 4 ) = 0.425 max(min(u 1 ,u 2 ,u 3 )+u 4 − 1, 0) +<br />

0.125 max(min(u 1 ,u 2 ) + min(u 3 ,u 4 ) − 1, 0) +<br />

0.25 max(min(u 1 ,u 3 )+min(u 2 ,u 4 ) − 1, 0) +<br />

0.425 max(u 1 + min(u 2 ,u 3 ,u 4 ) − 1, 0).<br />

65

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!