General ordinal sums #
Nelsen, An Introduction to Copulas, 2nd ed., Definition 3.2.1: let {(a_k, b_k)} be a family
of pairwise disjoint open subintervals of [0,1] and let C_k be copulas. The ordinal sum of
the C_k with respect to the intervals is the copula
C(u,v) = a_k + (b_k - a_k) C_k((u - a_k)/(b_k - a_k), (v - a_k)/(b_k - a_k)) on [a_k, b_k]²,
C(u,v) = min(u, v) elsewhere.
The index type is arbitrary (necessarily at most countably many intervals are nonempty, but no
countability assumption is needed), so the construction covers finite and countable families
and intervals that do not exhaust [0,1].
Construction #
Write w_k = b_k - a_k and c_k(u) = clamp((u - a_k)/w_k, 0, 1). The CDF is assembled as
C(u,v) = min(g(u), g(v)) + ∑' k, w_k C_k(c_k(u), c_k(v)), g(u) = u - ∑' k, w_k c_k(u).
Here g(u) is the Lebesgue measure of [0,u] outside the intervals (the mass that M puts on
the residual part of the diagonal). Disjointness enters through the finite estimate
∑_{k ∈ s} |[x,y] ∩ (a_k, b_k)| ≤ y - x, proved with Lebesgue measure; it gives summability of
the widths and monotonicity of g. Two-increasingness holds termwise.
Main declarations #
OrdinalIntervals ι: pairwise disjoint nondegenerate open subintervals of[0,1].generalOrdinalSum J C,cdf_generalOrdinalSum.cdf_generalOrdinalSum_eq_min_sub:C(u,v) = min(u,v) - ∑' k, w_k (M - C_k)(c_k u, c_k v).
A family of pairwise disjoint nonempty open subintervals (left k, right k) of [0,1]
(Nelsen, Definition 3.2.1).
- left : ι → ↑unitInterval
- right : ι → ↑unitInterval
Instances For
Length of the kth interval.
Instances For
The clipped affine coordinate of the kth interval.
Equations
- J.coord k u = Set.projIcc 0 1 ProbabilityTheory.Copula.OrdinalIntervals.coord._proof_1 ((↑u - ↑(J.left k)) / J.width k)
Instances For
On its interval, the coordinate inverts the affine map s ↦ a_k + w_k s.
Disjointness and summability #
The increments of the weighted coordinates between u ≤ v add up to at most v - u.
Summability of any family dominated by the widths.
The residual diagonal mass #
The Lebesgue measure of [0,u] outside the intervals: u - ∑' k, w_k c_k(u).
Instances For
The general ordinal sum #
The CDF of the ordinal sum.
Equations
Instances For
General ordinal sum (Nelsen, Definition 3.2.1): the copula equal to
a_k + w_k C_k((u - a_k)/w_k, (v - a_k)/w_k) on the squares [a_k, b_k]² and to M elsewhere.
Equations
- ProbabilityTheory.Copula.generalOrdinalSum J C = ProbabilityTheory.Copula.ofClassical (fun (u : Fin 2 → ↑unitInterval) => J.cdf C (u 0) (u 1)) ⋯
Instances For
The defect of the kth block from M: w_k (M - C_k)(c_k u, c_k v).
Equations
Instances For
The ordinal sum as M minus the defects of the blocks.