Skip to content

Ordinal sums

Import Copula.OrdinalSum or Copula. For bivariate copulas C, D and a : unitInterval, C.ordinalSum D a places C on the square [0,a]² and D on [a,1]². The parameter is the length of the lower interval. The result is a bundled copula with proved uniform marginals.

This implements the binary construction from Nelsen, An Introduction to Copulas, second edition, §3.2.2 (book and DOI). All proofs are written independently using the package's classical-to-measure representation theorem. Both singular and absolutely continuous inputs are allowed.

CDF and endpoints

For 0<a<1, writing O=C.ordinalSum D a, the usual formulas are:

O(u,v) = a C(u/a,v/a)                         if u,v ≤ a
O(u,v) = a+(1−a) D((u−a)/(1−a),(v−a)/(1−a))  if u,v ≥ a
O(u,v) = min(u,v)                            on the two other rectangles.

The formulas agree at shared boundaries. The implementation uses clipped rescaling maps OrdinalSum.lowerCoord and OrdinalSum.upperCoord so that the constructor also supports a=0 and a=1. The endpoint identities are ordinalSum_zero : C.ordinalSum D 0 = D and ordinalSum_one : C.ordinalSum D 1 = C.

cdf_ordinalSum_lower, cdf_ordinalSum_upper, cdf_ordinalSum_lower_upper, and cdf_ordinalSum_upper_lower give the four regions. cdf_ordinalSum_lowerEmbed and cdf_ordinalSum_upperEmbed give the equivalent affine-coordinate formulas, convenient for rewriting:

O(a u,a v) = a C(u,v)                         when a>0
O(a+(1−a)u,a+(1−a)v) = a+(1−a) D(u,v)       when a<1.

At every split, O(a,a)=a. For an interior split this proves that O is dependent and fails negative quadrant dependence, regardless of the two components. In particular, two independent components still yield a dependent copula. Splitting at a=1/2 gives CDF values 1/8 at (1/4,1/4), 5/8 at (3/4,3/4), and 1/4 at (1/4,3/4).

Recovery, order and positive dependence

At a fixed interior split, ordinalSum_eq_iff recovers both components:

ordinalSum(C,D,a) = ordinalSum(E,F,a) ↔ C=E and D=F.

lowerOrthantLE_ordinalSum_iff likewise gives the exact comparison:

ordinalSum(C,D,a) ≤lo ordinalSum(E,F,a) ↔ C≤lo E and D≤lo F.

The forward construction preserves lower orthant order at all split points, including the endpoints. The recovery implications require both block lengths to be positive. In dimension two the same comparison also determines concordance and upper orthant order through the existing equivalences.

IsPQD.ordinalSum proves closure of positive quadrant dependence. No converse or closure under SI, LTD, RTI or total positivity is claimed here.

Probability law and integration

OrdinalSum.Measure identifies the underlying measure directly. Write L_a(x)_i = a x_i and U_a(x)_i = a+(1−a)x_i. Then

μ_(C⊕ₐD) = a (L_a)_* μ_C + (1−a) (U_a)_* μ_D.

toMeasure_ordinalSum states this identity using Measure.map and nonnegative extended-real weights. integral_ordinalSum gives the resulting change-of-variables formula for every continuous real observable:

∫ f d(C⊕ₐD) = a ∫ f(L_a(x)) dC(x) + (1−a) ∫ f(U_a(x)) dD(x).

Both formulas include a=0 and a=1; neither needs a density. OrdinalSum.Blocks proves that the lower square has probability a, the upper square has probability 1−a, and the two off-diagonal open rectangles have probability zero. The block indicators of the two coordinates agree almost surely. Closed block boundaries do not change their probabilities because uniform marginals have no atoms.

Converse decomposition and unique components

OrdinalSum.Decomposition proves the binary converse in Nelsen's Theorem 3.2.1. For each prescribed interior split 0<a<1, the following are equivalent:

  • C(a,a)=a.
  • C = D⊕ₐE for some copulas D and E.
  • There is exactly one pair (D,E) with C = D⊕ₐE.

The split point itself need not be unique: M admits every interior split. Uniqueness here is only for the two components at a fixed split.

The constructors C.lowerOrdinalComponent a ha0 ha and C.upperOrdinalComponent a ha1 ha use a proof ha : C.diagonal a = a and the corresponding positive block-length proof. Their CDFs are:

D(u,v) = C(au,av)/a
E(u,v) = [C(a+(1−a)u,a+(1−a)v)−a]/(1−a).

ordinalSum_components proves reconstruction; the two ...OrdinalComponent_ordinalSum lemmas recover the original inputs of any ordinal sum. Each component can be constructed whenever its own block length is positive, so the lower component at a=1 and the upper component at a=0 are both C. Zero-length components are not defined by these constructors.

OrdinalSum.Cut also proves the probabilistic criterion

P(1{U≤a} ≠ 1{V≤a}) = 2(a−C(a,a)).

Thus a diagonal fixed point is exactly a threshold whose two indicators agree almost surely. Equivalently, the probabilities of max(U,V)≤a and min(U,V)≤a agree. These probability identities include the endpoint thresholds. The set of fixed points is closed. NQD copulas have C(a,a)<a at every interior point, ruling out nontrivial ordinal sums for independence and countermonotonicity as well.

OrdinalSum.CutConsequences identifies cuts within each extracted component with the corresponding affine images in the original copula. It also transfers all three fixed-split rank lower bounds to any copula satisfying C(a,a)=a, without requiring a preexisting ordinal-sum representation.

Rank coefficients and sharp bounds

For any components C and D and every split a, OrdinalSum.Rank proves:

rho(C⊕ₐD) = 1 − a³(1−rho(C)) − (1−a)³(1−rho(D))
tau(C⊕ₐD) = 1 − a²(1−tau(C)) − (1−a)²(1−tau(D))
footrule(C⊕ₐD) = 1 − a²(1−footrule(C)) − (1−a)²(1−footrule(D)).

The more general concordance identity requires a common split for both inputs:

Q(C⊕ₐD, E⊕ₐF) = 1 − a²(1−Q(C,E)) − (1−a)²(1−Q(D,F)).

Tau follows by pairing the copula with itself; footrule follows by pairing with M, which is an ordinal sum of two copies of itself. Rho follows from the squared difference of the two uniform coordinates. These proofs include singular components and zero-length blocks.

OrdinalSum.RankExamples specializes the formulas:

Components rho tau footrule
Π, Π 3a(1−a) 2a(1−a) 2a(1−a)
W, W 6a(1−a)−1 4a(1−a)−1 3a(1−a)−1/2

The W/W row gives sharp lower bounds over all component choices at a fixed split. In particular, every ordinal sum at a=1/2 has rho at least 1/2, tau at least 0, and footrule at least 1/4. W/W attains all three bounds, giving a dependent copula with zero tau and positive rho; it is not PQD.

For Π/Π, the respective maxima are 3/4, 1/2 and 1/2. The library proves that each maximum is attained exactly at a=1/2. Equal splitting therefore maximizes these three coefficients within this particular family.

Symmetry and extremal copulas

Transposition acts on both components: (C.ordinalSum D a).transpose = C.transpose.ordinalSum D.transpose a. Exchangeable inputs therefore give an exchangeable ordinal sum; at an interior split the converse holds as well.

An ordinal sum of two copies of M is M. At an interior split, the sum equals M exactly when both components are M. These statements do not assert uniqueness of the split point.

Tail dependence

The proved equivalences include both existence and value of the limits:

HasLowerTailDependence (ordinalSum C D a) l ↔ HasLowerTailDependence C l   if a>0
HasUpperTailDependence (ordinalSum C D a) l ↔ HasUpperTailDependence D l   if a<1.

The proof rescales the tail width and compares the ratios near zero. It requires no density, derivatives, or symmetry. For every interior split:

Lower component Upper component Lower tail Upper tail
M Π 1 0
Π M 0 1
W W 0 0
Π Π 0 0

The M/Π example is exchangeable but not radially symmetric, as its two tail coefficients differ. The public examples check this distinction, the endpoint identities, CDF calculations, recovery, order and dependence results.

Extremal median concordance

Copula.Rank.MedianExtrema proves that every ordinal sum with split 1/2 has Blomqvist beta 1. Reflecting its second coordinate gives beta −1 and Spearman footrule −1/2. With two independent components these constructions differ from M and W, respectively, giving explicit nonuniqueness examples. See the rank equality cases.

For independent components and any interior split, the PQD result combines with the new strict rank criteria to give positive rho and tau.

The converse is now formalized too: beta 1 is equivalent to a unique component pair at split 1/2. Beta −1 is equivalent to a second-coordinate reflection of such an ordinal sum. As consequences, beta 1 implies rho≥1/2, tau≥0, and footrule≥1/4; beta −1 implies rho≤−1/2 and tau≤0. These bounds are sharp, as shown by the W/W example and its reflection.

Finite and increasing countable sums

finiteOrdinalSum P C accepts an arbitrary IntervalPartition n and n component copulas. Its CDF is sum_i width_i C_i(coord_i(u),coord_i(v)). ordinalSumPi P specializes every component to independence. finiteOrdinalSum_comonotonic proves that copies of M give M. IntervalPartition.binary and finiteOrdinalSum_binary identify the interior two-block case with the existing binary constructor above.

countableOrdinalSum P C allows countably many adjacent positive-length blocks. CountableIntervalPartition requires a strictly increasing endpoint sequence starting at zero and tending to one. The weighted CDF series is summable (summable_cdf); the uniform marginal identities and all copula axioms are proved. countableOrdinalSumPi gives independent blocks. CountableIntervalPartition.dyadic is a concrete partition with endpoints 1-(1/2)^k, and countably many copies of M still give M. For any such partition, countableOrdinalSumPi_diagonal_fixed proves every endpoint is a diagonal fixed point and countableOrdinalSumPi_isSI proves the independent-block sum is stochastically increasing. The proof interpolates each CDF section between its two enclosing endpoint sections.

Formal statementSource and proofProbabilityTheory.Copula.cdf_countableOrdinalSum

See grid constructions for the common finite patchwork machinery, checkerboard and check-min copulas, shuffles and Bernstein copulas.

General ordinal sums

Copula.OrdinalSum.General implements Nelsen's Definition 3.2.1 in full generality. OrdinalIntervals ι is a family of open intervals (left k, right k) of [0,1], indexed by an arbitrary type, with left k < right k and pairwise disjoint (right k ≤ left l or right l ≤ left k for k ≠ l). The intervals need not be adjacent, ordered, finite or exhaust [0,1]. For copulas C k, generalOrdinalSum J C satisfies, with w_k = b_k − a_k,

O(u,v) = a_k + w_k C_k((u−a_k)/w_k, (v−a_k)/w_k)   on [a_k,b_k]²
O(u,v) = min(u,v)                                  off the open squares.

The construction writes O(u,v) = min(g(u),g(v)) + Σ' w_k C_k(c_k(u),c_k(v)), where g(u) is the Lebesgue measure of [0,u] outside the intervals. Disjointness gives summability of the widths through a finite Lebesgue-measure estimate; no countability assumption is needed. cdf_generalOrdinalSum_eq_min_sub gives the equivalent form O = M − Σ' w_k (M − C_k)(c_k u, c_k v).

Formal statementSource and proofProbabilityTheory.Copula.cdf_generalOrdinalSum_of_mem

GeneralProperties proves component recovery (cdf_component_eq, generalOrdinalSum_injective), δ(t) = t outside the open intervals and at every endpoint, transposition componentwise with exchangeability iff all components are exchangeable, lower orthant comparison iff componentwise comparison, and PQD closure. Copies of M, or an empty family, give M. generalOrdinalSum_ofPartition, generalOrdinalSum_ofCountable and ordinalSum_eq_generalOrdinalSum show that the finite, increasing countable and binary constructors are special cases.

GeneralDecomposition generalizes the converse theorem: for any family J, a copula is an ordinal sum with respect to J if and only if its diagonal is the identity at every point outside the open intervals, and then the components are unique. They are the rescaled restrictions OrdinalIntervals.component, which are copulas whenever both endpoints of the square are diagonal fixed points.

Formal statementSource and proofProbabilityTheory.Copula.exists_generalOrdinalSum_iff

Scope and module map

The full decomposition, rank and dependence API concerns binary bivariate sums. Finite sums and increasing countable partitions have proved constructors and CDF formulas. Arbitrary disjoint interval families with a residual comonotonic part have the construction, component recovery, diagonal characterization, order, symmetry and PQD results above; rank formulas for them and canonical decomposition into indecomposable components are not yet formalized. General ordinal-sum formulas for gamma, xi, and beta beyond the midpoint results are also future work.

Module Content
OrdinalSum.Rescale Clipped inverse coordinates, affine embeddings and identities
OrdinalSum.Basic Copula validity, constructor, endpoints and regional CDF formulas
OrdinalSum.Measure Weighted pushforward law and integration over component squares
OrdinalSum.Blocks Block probabilities, almost-sure block agreement and zero cross-block mass
OrdinalSum.Rank General rho, tau, footrule and common-split concordance formulas
OrdinalSum.RankExamples Benchmark formulas, sharp lower bounds and unique optimal independent-component split
OrdinalSum.Properties Recovery, exact ordering, exchangeability, diagonal and extremal results
OrdinalSum.Cut CDF sections, threshold disagreement, probability criteria and diagonal fixed points
OrdinalSum.Components Explicit copulas obtained by rescaling lower and upper restrictions
OrdinalSum.Decomposition Reconstruction, fixed-split uniqueness, converse theorem and NQD obstruction
OrdinalSum.CutConsequences Component cuts, beta ±1 structural characterizations and rank bounds
OrdinalSum.Dependence PQD closure and the independent-component example
OrdinalSum.TailDependence Tail-ratio identities and equivalence of tail limits
OrdinalSum.Finite Arbitrary finite partitions, independent components and binary compatibility
OrdinalSum.Countable Increasing countable partitions, summability, uniform margins and CDF series
OrdinalSum.CountableSI Fixed endpoints and stochastic increase of countable independent-block sums
OrdinalSum.General Disjoint interval families, residual diagonal mass, construction and CDF formulas
OrdinalSum.GeneralProperties Square and off-square formulas, recovery, fixed points, symmetry, order, PQD and special cases
OrdinalSum.GeneralDecomposition Square components and the diagonal fixed-point characterization

Library revision: fe53ea2f · Lean 4.34.0