MathFin
Map / Probability · Dependence / MathFin.Probability.Dependence.Copula

Copulas

MathFin.Probability.Dependence.CopulaMSC 62H05MSC 91G70JEL C02 source

A copula on ℝ^ι is a probability measure whose coordinates are all uniformly distributed on (0, 1) (IsCopula). Its distribution function u ↦ C.real (Iic u) is what McNeil, Frey and Embrechts (Quantitative Risk Management, 2015, Definition 7.1) call a copula. We take the measure-first definition: grounding, uniform margins and d-increasingness of the distribution function are then theorems about a measure rather than axioms on a function.

The central fact about copulas is Sklar's theorem (Probability/Dependence/Sklar.lean). This file covers the structure every copula shares.

  • Fréchet–Hoeffding bounds. On [0, 1]^ι every copula satisfies max (∑ uᵢ − (d − 1)) 0 ≤ C(u) ≤ minᵢ uᵢ (IsCopula.sum_sub_le_measureReal_Iic, IsCopula.measureReal_Iic_le). The upper bound is monotonicity of measure and the lower bound is the union bound on the complement.
  • The three fundamental copulas. These are the independence copula Π (a product of uniform laws, C(u) = ∏ uᵢ), the comonotonicity copula M (the law of (U, …, U), C(u) = min uᵢ), and in dimension two the countermonotonicity copula W (the law of (U, 1 − U), C(u) = max (u₀ + u₁ − 1) 0). M attains the upper bound in every dimension and W attains the lower bound in dimension two.
  • The lower bound is not attained for d ≥ 3. No copula has distribution function max (∑ uᵢ − (d − 1)) 0 (not_exists_isCopula_frechetLower, QRM Exercise Book, Exercise 7.3). The events {Uᵢ ≤ 1/2} for three coordinates would be pairwise null while each carries mass 1/2, for a total of 3/2 > 1.
  • Distribution functions determine laws on ℝ^ι. Two probability measures on ℝ^ι that agree on every lower orthant Iic u are equal (ext_of_measure_Iic_pi). This is the multidimensional version of MeasureTheory.Measure.ext_of_Iic, and it is what makes a copula unique in Sklar's theorem.

Main definitions

  • IsCopula: a probability measure on ι → ℝ whose every coordinate is uniform on (0, 1).
  • independenceCopula: the law Π of a vector of independent uniforms.
  • comonotoneCopula: the law M of (U, …, U) for a single uniform U.
  • countermonotoneCopula: the law W of (U, 1 − U), in dimension two.

Main results

  • IsCopula.measureReal_coord_le: each coordinate is uniform, C(vᵢ ≤ t) = t on [0, 1].
  • IsCopula.ae_mem_Ioo: almost every point of a copula lies in the open cube (0, 1)^ι.
  • IsCopula.measureReal_Iic_le, IsCopula.sum_sub_le_measureReal_Iic: the Fréchet–Hoeffding bounds.
  • ext_of_measure_Iic_pi: joint distribution functions determine probability laws on ℝ^ι.
  • not_exists_isCopula_frechetLower: for d ≥ 3 the lower Fréchet bound is not a copula.

References

  • A. J. McNeil, R. Frey and P. Embrechts, Quantitative Risk Management: Concepts, Techniques and Tools [McNeilFreyEmbrechts], Section 7.1.2; Theorem 7.7
  • QRM Exercise Book [QRMExerciseBook], Ex. 7.3

Tags

Fréchet–Hoeffding bounds, comonotonicity, countermonotonicity, independence copula, dependence modelling, MSC 62H05, MSC 91G70, JEL C02

Import neighbourhood

Above: what it imports. Below: what imports it.

Corpus entries

qrm-frechet-lower-not-copula · quantitative_risk_management.json · full statement
The Lower Fréchet Bound Is Not a Copula for d ≥ 3

For an index type with at least three elements, no copula (probability measure on ℝ^ι with uniform coordinates) has distribution function u ↦ max(∑ uᵢ − (d − 1), 0) on [0, 1]^ι.

qrm-frechet-hoeffding-lower · quantitative_risk_management.json · full statement
Fréchet–Hoeffding Lower Bound

For every copula C on ℝ^ι and u ∈ [0, 1]^ι: ∑ uᵢ − (d − 1) ≤ C(U ≤ u).

Declarations 24

theoremMathFin.uniformIoo_real_Iicsource
∀ {t : ℝ}, 0 ≤ t → t ≤ 1 → (volume.restrict (Set.Ioo 0 1)).real (Set.Iic t) = t

The uniform law on (0, 1) gives (-∞, t] mass t for t ∈ [0, 1].

theoremMathFin.uniformIoo_Ioi_onesource
(volume.restrict (Set.Ioo 0 1)) (Set.Ioi 1) = 0

The uniform law on (0, 1) gives (1, ∞) no mass.

structureMathFin.IsCopulasource
{ι : Type u_1} → Measure (ι → ℝ) → Prop

A copula on ℝ^ι: a probability measure whose every coordinate is uniformly distributed on (0, 1). Its distribution function u ↦ C.real (Iic u) is a copula in the sense of McNeil–Frey–Embrechts, Definition 7.1.

theoremMathFin.IsCopula.isProbabilityMeasuresource
∀ {ι : Type u_1} {C : Measure (ι → ℝ)}, IsCopula C → IsProbabilityMeasure C

A copula is a probability measure.

theoremMathFin.IsCopula.map_evalsource
∀ {ι : Type u_1} {C : Measure (ι → ℝ)}, IsCopula C → ∀ (i : ι), Measure.map (fun v => v i) C = volume.restrict (Set.Ioo 0 1)

Every coordinate of a copula is uniform on (0, 1).

theoremMathFin.IsCopula.hasLaw_evalsource
∀ {ι : Type u_1} {C : Measure (ι → ℝ)}, IsCopula C → ∀ (i : ι), HasLaw (fun v => v i) (volume.restrict (Set.Ioo 0 1)) C

Under a copula, each coordinate has the uniform law on (0, 1).

theoremMathFin.IsCopula.measure_coord_preimagesource
∀ {ι : Type u_1} {C : Measure (ι → ℝ)}, IsCopula C → ∀ (i : ι) {s : Set ℝ}, MeasurableSet s → C {v | v i ∈ s} = (volume.restrict (Set.Ioo 0 1)) s

The mass a copula gives to a condition on one coordinate is its uniform probability.

theoremMathFin.IsCopula.measureReal_coord_lesource
∀ {ι : Type u_1} {C : Measure (ι → ℝ)}, IsCopula C → ∀ (i : ι) {t : ℝ}, 0 ≤ t → t ≤ 1 → C.real {v | v i ≤ t} = t

Uniform margins: C(vᵢ ≤ t) = t for t ∈ [0, 1].

theoremMathFin.IsCopula.ae_mem_Ioosource
∀ {ι : Type u_1} {C : Measure (ι → ℝ)} [Countable ι], IsCopula C → ∀ᵐ (v : ι → ℝ) ∂C, ∀ (i : ι), v i ∈ Set.Ioo 0 1

Almost every point of a copula lies in the open cube (0, 1)^ι.

theoremMathFin.IsCopula.measureReal_Iic_lesource
∀ {ι : Type u_1} {C : Measure (ι → ℝ)}, IsCopula C → ∀ (u : ι → ℝ) (i : ι), u i ∈ Set.Icc 0 1 → C.real (Set.Iic u) ≤ u i

Upper Fréchet–Hoeffding bound: C(u) ≤ uᵢ for every coordinate with uᵢ ∈ [0, 1], i.e. C(u) ≤ minᵢ uᵢ.

theoremMathFin.IsCopula.sum_sub_le_measureReal_Iicsource
∀ {ι : Type u_1} {C : Measure (ι → ℝ)} [Fintype ι], IsCopula C → ∀ (u : ι → ℝ), (∀ (i : ι), u i ∈ Set.Icc 0 1) → ∑ i, u i - (↑(Fintype.card ι) - 1) ≤ C.real (Set.Iic u)

Lower Fréchet–Hoeffding bound: ∑ uᵢ − (d − 1) ≤ C(u) on [0, 1]^ι, the union bound on the complement of the orthant.

theoremMathFin.isCountablySpanning_range_Iicsource
IsCountablySpanning (Set.range Set.Iic)

The lower half-lines are a countable spanning family of ℝ.

theoremMathFin.ext_of_measure_Iic_pisource
∀ {ι : Type u_1} [Finite ι] {μ ν : Measure (ι → ℝ)} [IsProbabilityMeasure μ] [IsProbabilityMeasure ν], (∀ (u : ι → ℝ), μ (Set.Iic u) = ν (Set.Iic u)) → μ = ν

Joint distribution functions determine probability laws on ℝ^ι: two probability measures that agree on every lower orthant Iic u are equal. The orthants are the boxes built from the π-system of half-lines, which generates the product σ-algebra.

defMathFin.independenceCopulasource
(ι : Type u_1) → [Fintype ι] → Measure (ι → ℝ)

The independence copula Π: the law of a vector of independent uniforms.

defMathFin.comonotoneCopulasource
(ι : Type u_1) → Measure (ι → ℝ)

The comonotonicity copula M: the law of (U, …, U) for a single uniform U.

theoremMathFin.isCopula_independenceCopulasource
∀ {ι : Type u_1} [Fintype ι], IsCopula (independenceCopula ι)

Π is a copula.

theoremMathFin.independenceCopula_real_Iicsource
∀ {ι : Type u_1} [Fintype ι] (u : ι → ℝ), (∀ (i : ι), u i ∈ Set.Icc 0 1) → (independenceCopula ι).real (Set.Iic u) = ∏ i, u i

Π(u) = ∏ uᵢ on [0, 1]^ι.

theoremMathFin.isCopula_comonotoneCopulasource
∀ {ι : Type u_1}, IsCopula (comonotoneCopula ι)

M is a copula.

theoremMathFin.comonotoneCopula_real_Iicsource
∀ {ι : Type u_1} [Fintype ι] [Nonempty ι] (u : ι → ℝ), (∀ (i : ι), u i ∈ Set.Icc 0 1) → (comonotoneCopula ι).real (Set.Iic u) = Finset.univ.inf' ⋯ u

M(u) = minᵢ uᵢ on [0, 1]^ι: the comonotonicity copula attains the upper Fréchet–Hoeffding bound.

defMathFin.countermonotoneCopulasource
Measure (Fin 2 → ℝ)

The countermonotonicity copula W in dimension two: the law of (U, 1 − U).

theoremMathFin.map_one_sub_uniformIoosource
Measure.map (fun t => 1 - t) (volume.restrict (Set.Ioo 0 1)) = volume.restrict (Set.Ioo 0 1)

The reflection t ↦ 1 − t preserves the uniform law on (0, 1).

theoremMathFin.isCopula_countermonotoneCopulasource
IsCopula countermonotoneCopula

W is a copula.

theoremMathFin.countermonotoneCopula_real_Iicsource
∀ (u : Fin 2 → ℝ), (∀ (i : Fin 2), u i ∈ Set.Icc 0 1) → countermonotoneCopula.real (Set.Iic u) = max (u 0 + u 1 - 1) 0

W(u) = max (u₀ + u₁ − 1) 0 on [0, 1]²: in dimension two the countermonotonicity copula attains the lower Fréchet–Hoeffding bound.

theoremMathFin.not_exists_isCopula_frechetLowersource
∀ {ι : Type u_1} [Fintype ι], 3 ≤ Fintype.card ι → ¬∃ C, IsCopula C ∧ ∀ (u : ι → ℝ), (∀ (i : ι), u i ∈ Set.Icc 0 1) → C.real (Set.Iic u) = max (∑ i, u i - (↑(Fintype.card ι) - 1)) 0

The lower Fréchet–Hoeffding bound is not a copula for d ≥ 3 (QRM Exercise Book, Exercise 7.3). No copula on ℝ^ι with card ι ≥ 3 has distribution function max (∑ uᵢ − (d − 1)) 0 on [0, 1]^ι.

Suppose one did. For two coordinates a ≠ b, the point with uₐ = u_b = 1/2 and all other entries 1 gives max (d − 1 − (d − 1)) 0 = 0. The coordinates of a copula are almost surely below 1, so {Uₐ ≤ 1/2} ∩ {U_b ≤ 1/2} is null. Three such events are then pairwise almost disjoint and each has mass 1/2, so their union would have mass 3/2 > 1.