Professional Documents
Culture Documents
Copulas & Transforms: Enkelejd Hashorva
Copulas & Transforms: Enkelejd Hashorva
Enkelejd Hashorva
University of Lausanne
1
Copulas & Transforms
Properties of Copulas
Archimedean Copula
Insurance Application
Appendix
2
Copulas & Transforms
Copula: Definitions & Examples
3
Copulas & Transforms
Copula: Definitions & Examples
4
Copulas & Transforms
Copula: Definitions & Examples
for any i ≤ d.
5
Copulas & Transforms
Copula: Definitions & Examples
Notes
6
Copulas & Transforms
Copula: Definitions & Examples
7
Copulas & Transforms
Copula: Definitions & Examples
8
Copulas & Transforms
Copula: Definitions & Examples
9
Copulas & Transforms
Copula: Definitions & Examples
10
Copulas & Transforms
Copula: Definitions & Examples
Clayton Copula
11
Copulas & Transforms
Copula: Definitions & Examples
Define a copula C by
C (u ) = 1 + u ∈ [0, 1]d
h X i Y
ρ(i, j)(1 − ui )(1 − uj ) ui ,
1≤i<j≤d 1≤i≤d
with εi = ±1, 1 ≤ i ≤ d.
12
Copulas & Transforms
Distribution & Quantile Transforms
Distribution Transform
13
Copulas & Transforms
Distribution & Quantile Transforms
Bivariate Transform
U1 = F1 (X1 ), U2 = F2 (X2 )
14
Copulas & Transforms
Distribution & Quantile Transforms
Rosenblatt Transform
are independent.
Moreover, U1 , U2∗ are uniformly distributed on (0, 1).
15
Copulas & Transforms
Distribution & Quantile Transforms
Quantile Transform/Function
and set
F −1 (0) = sup{x : F (x) = 0}
In statistical terminology F −1 is the quantile function (qf).
In insurance and finance F −1 is the Value-at-Risk (VaR).
16
Copulas & Transforms
Distribution & Quantile Transforms
17
Copulas & Transforms
Distribution & Quantile Transforms
I Important relation
then F −1 is left-continuous.
18
Copulas & Transforms
Distribution & Quantile Transforms
x1 = F1−1 (u1 ), −1 ∗
x2 = F2|1 (u2 |x1 )
19
Copulas & Transforms
Distribution & Quantile Transforms
∂
C2|1 (u2 , u1 ) = P{X2 ≤ u2 |X1 ≤ u1 } = C (u1 , u2 )
∂u1
Find then the inverse of C2|1 .
Step 3. Calculate
x1 = F1−1 (u1 ) = u1 , −1 ∗
x2 = C2|1 (u2 |u1 )
20
Copulas & Transforms
Properties of Copulas
d-dimensional Setup
21
Copulas & Transforms
Properties of Copulas
Sklar’s Theorem
Theorem. If X ∼ F is a d-dimensional RV with marginals
Fi , i ≤ d, then we can find a copula C such that
and moreover
U = (F1(X1), . . . , Fd (X2)) ∼ C
We say that C is the copula of X , or the copula of F .
23
Copulas & Transforms
Properties of Copulas
Clayton Copula: d = 2
24
Copulas & Transforms
Properties of Copulas
Gaussian Copula
25
Copulas & Transforms
Properties of Copulas
Usefulness of Copulas
26
Copulas & Transforms
Properties of Copulas
27
Copulas & Transforms
Properties of Copulas
28
Copulas & Transforms
Properties of Copulas
29
Copulas & Transforms
Properties of Copulas
Survival Copula
Ce(u1 , u2 ) = u1 + u2 − 1 + C (1 − u1 , 1 − u2 ), u1 , u2 ∈ [0, 1]
30
Copulas & Transforms
Properties of Copulas
Transformation Invariance
31
Copulas & Transforms
Properties of Copulas
u1 − C (u1 , 1 − u2 )
32
Copulas & Transforms
Properties of Copulas
Decomposition of pdf
Copula construction allows for some interesting representation of
pdf f of F . If f exists, then F (x1 , x2 ) = C (F1 (x1 ), F2 (x2 )) ⇒
∂2
c(u, v ) := C11 (u, v ) = C (u, v )
∂u∂v
So we have
f (a1 , a2 )
c(u1 , u2 ) = , a1 = F1−1 (u1 ), a2 = F2−1 (u2 )
f1 (a1 )f2 (a2 )
1 a2 − 2ρa a + a2 a2 + a2
1 2
cρ (u1 , u2 ) = p exp − 1 2
exp 1 2
1 − ρ2 2(1 − ρ2 ) 2
1 a2 − 2ρa a + a2
1 2
f (a1 , a2 ) = exp − 1 2
2(1 − ρ2 )
p
2π 1 − ρ2
1
fi (ai ) = √ exp(−ai2 /2), i = 1, 2
2π
34
Copulas & Transforms
Properties of Copulas
35
Copulas & Transforms
Properties of Copulas
36
Copulas & Transforms
Archimedean Copula
37
Copulas & Transforms
Archimedean Copula
38
Copulas & Transforms
Archimedean Copula
Cψ (u1 , u2 ) = max(0, 1 − (1 − u1 + 1 − u2 ))
= max(0, u1 + u2 − 1) = CL (u1 , u2 )
39
Copulas & Transforms
Archimedean Copula
Examples
I The Clayton copula for which
x −α − 1
ψα (x) = , α>0
α
I The Frank copula has generator ψα given by
e −αx − 1
ψα (x) = − ln −α , α=6 0
e −1
leading to copula
1 [e −αu1 − 1][e −αu2 − 1]
C (u1 , u2 ) = − ln 1 +
α e −α − 1
I The Gumbel copula with generator ψα given by
ψα (x) = (− ln x)α , α≥1
40
Copulas & Transforms
Archimedean Copula
41
Copulas & Transforms
Archimedean Copula
42
Copulas & Transforms
Archimedean Copula
43
Copulas & Transforms
Archimedean Copula
Simulation algorithm:
Step 1: Simulate θ from the df of Θ
Step 2: Simulate u1 , u2 from U1 , U2
1/θ
Step 3: Calculate x1 , x2 using xi = Hi−1 (ui ), i = 1, 2.
44
Copulas & Transforms
Archimedean Copula
45
Copulas & Transforms
Archimedean Copula
46
Copulas & Transforms
Archimedean Copula
Hence, we have
ln H̄1 (x1 ) + ln H̄2 (x2 ) −α
P{X1 > x1 , X2 > x2 } = 1 −
λ
ln H̄i (xi ) −α
P{Xi > xi } = (1 − )
λ
A particular example is H̄i (s) = e −λs , hence α = 1, and
47
Copulas & Transforms
Insurance Application
48
Copulas & Transforms
Insurance Application
49
Copulas & Transforms
Insurance Application
Scatter Plot
50
Copulas & Transforms
Insurance Application
(x1 , y1 ), . . . , (xm , ym )
(X1 , Y1 ), . . . , (Xm , Ym )
51
Copulas & Transforms
Insurance Application
1 X
F̂2 (s) = 1(yi ≤ s)
m
1≤i≤m
52
Copulas & Transforms
Insurance Application
Pseudo-observations
53
Copulas & Transforms
Insurance Application
Likelihood
If f is the pdf of F , which is the underlying df of a bivariate
random sample (X1 , Y1 ), . . . , (Xm , Ym ), then given observations
(xi , yi ), 1 ≤ i ≤ m the likelihood is (recall (9))
m
Y m
Y
L(x1 , y1 , . . . , xm , ym ) = f (xi , yi ) = f1 (xi )f2 (yi )c(xi∗ , yi∗ )
i=1 i=1
with c the pdf of the copula C of F and xi∗ = F1 (xi ), yi∗ = F2 (yi ).
Hence the log-likelihood is
m
X m
X
`(x1 , y1 , . . . , xm , ym ) = ln f1 (xi ) + ln f2 (yi )
i=1 i=1
m
X
+ ln c(xi∗ , yi∗ )
i=1
54
Copulas & Transforms
Insurance Application
Pseudo-log-likelihood
Define the pseudo-log-likelihood function
m
X
`P (x1 , y1 , . . . , xm , ym ) = ln c(F̂1 (xi ), F̂2 (yi ))
i=1
55
Copulas & Transforms
Insurance Application
Likelihood Approach
We construct the pseudo-observations
F1 (x) = F1 (θ; x)
Semi-Likelihood Approach
57
Copulas & Transforms
Insurance Application
Full-Likelihood Approach
m
Y
L(λ; x1 , y1 , . . . , xm , ym ) = f (λ; xi , yi )
i=1
58
Copulas & Transforms
Insurance Application
with φ := ψ −1 .
Usually ψ depends on some parameter α for instance for Gumbel,
Clayton and Frank case.
Hence we estimate α using pseudo-likelihood approach and (12).
59
Copulas & Transforms
Insurance Application
Non-parametric Approach
Let (Xi , Yi ), i ≤ n be a bivariate random sample of size m with
underlying df F and let (xi , yi ), i ≤ n be observations. The df F
can be estimated non-parametrically by
m
X
F̂ (s, t) = I(Xi ≤ s, Yi ≤ t)
i=1
61
Copulas & Transforms
Insurance Application
62
Copulas & Transforms
Appendix
U ∗ = F (X −) + O(F (X ) − F (X −))
63
Copulas & Transforms
Appendix
d
If U1 ∼ Uniform(0, 1), then F1−1 (U1 ) = X1 .
For U2∗ ∼ Uniform(0, 1) independent of U1 , and df F
with a joint pdf f and marginal df’s F1 , F2 , then
d
F1−1 (U1 ), F2|1
−1
(U2∗ |U1 ) = (X1 , X2 ) ∼ F
64
Copulas & Transforms
Appendix
Proof
65
Copulas & Transforms
Appendix
P{X1 ≤ x, U2 ≤ u}
Z
= I (s ≤ x)I (y ≤ u) dF (s, y )
Z Z
= I (s ≤ x) I (F2|1 (y |s) ≤ u) dF2|1 (y |s)) dF1 (s)
Z Z
= I (s ≤ x) dF1 (s) I (F ∗ (y ) ≤ u) dF ∗ (y )
= P{X1 ≤ x}P{U ≤ u}
66
Copulas & Transforms
Appendix
Copula Definition
A d-dimensional function C is a copula if
67
Copulas & Transforms
Appendix
with
∂ ∂
C1,0 (u, v ) = C (u, v ), C0,1 (u, v ) = C (u, v )
∂u ∂v
In fact C1,0 (u, v ) exists almost everywhere for v ∈ [0, 1]
68
Copulas & Transforms
Appendix
ψ 0 (F1 (x1 ))
P{X2 ≤ x2 |X1 = x1 } = (16)
ψ 0 (Cψ (F1 (x1 ), F2 (x2 )))
since
∂ ψ 0 (u1 )
Cψ (u1 , u2 ) = 0
∂u1 ψ (Cψ (u1 , u2 ))
69
Copulas & Transforms
Appendix
Decomposition of Copulas
70
Copulas & Transforms
Appendix
with Z u1 Z u2
AC (u1 , u2 ) = c(x1 , x2 ) dx1 dx2
0 0
Example: The independence copula CI has only an absolutely
continuous part.
71
Copulas & Transforms
Appendix
ψ(0)
− >0 (17)
ψ 0 (0)
ψ(x) x −α − 1
lim = lim =0
x→0 ψ 0 (x) x→0 αx −α−1
72
Copulas & Transforms
Appendix
Proof of (10)
Z ∞
P{X1 ≤ x1 , X2 ≤ x2 } = P{X1 ≤ x1 , X2 ≤ x2 |Θ = θ}dQ(θ)
0
Z ∞
= [H1 (x1 )H2 (x2 )]θ dQ(θ)
0
= E{e Θ ln(H1 (x1 )H2 (x2 )) } = E{e −tΘ }
= LΘ (t),
73
Copulas & Transforms
Appendix
P{X1 ≤ x1 , X2 ≤ x2 } = E{1(X1 ≤ x1 , X2 ≤ x2 )}
= E{E{1(X1 ≤ x1 , X2 ≤ x2 )|Θ}}
= E{E{1(X1 ≤ x1 |Θ}E{1(X2 ≤ x2 |Θ}}
= E{[H1 (x1 )H2 (x2 )]Θ }
= E{e Θ ln(H1 (x1 )H2 (x2 )) } = E{e −tΘ }
= LΘ (t), t = − ln H1 (x1 ) − ln H2 (x2 )
74
Copulas & Transforms
Appendix
Proof of (12)
75
Copulas & Transforms
Appendix