What is a copula?¶
A copula describes dependence after the marginal distributions have been made uniform. Write \(I=[0,1]\). In the library, a \(d\)-dimensional copula is a probability measure \(\mu_C\) on \(I^d\) such that every coordinate has the uniform distribution on \(I\).
Its distribution function is derived from that measure:
The notation \(C\) refers to the CDF in mathematical prose; Lean distinguishes
the bundled object C, its measure C.toMeasure, and the function C.cdf.
The measure representation covers singular copulas as well as copulas with
densities.
The classical viewpoint¶
A classical copula CDF is grounded, has uniform one-dimensional margins, and has nonnegative alternating increments over coordinate rectangles. In two dimensions, the rectangle condition is
The library constructs a measure-based copula from these classical conditions and proves that its CDF is the original function.
Every copula is bounded¶
Fréchet–Hoeffding bounds
For \(d\geq1\) and \(u\in I^d\),
In two dimensions these bounds are themselves copulas: \(W(u,v)=\max(0,u+v-1)\) and \(M(u,v)=\min(u,v)\). In dimensions above two, the displayed lower-bound function is generally not a copula. The formal theorems also cover dimension zero, using the empty-infimum convention; the empty-dimensional CDF is one.
Continuity needs no extra hypothesis¶
Lipschitz regularity
Every copula satisfies
Thus every copula CDF is continuous, even if its measure has no density.
This is a Lipschitz constant of one for the sum metric. Lean's default metric on finite products is the maximum metric, for which the corresponding bound has constant \(d\).
Three reference examples¶
For a bivariate copula, the main benchmarks are
They represent independent coordinates, equal uniform coordinates, and coordinates \((U,1-U)\), respectively.
Continue with Sklar's theorem to connect these objects to arbitrary joint distributions, or families for parameterized examples.
Library revision: fe53ea2f · Lean 4.34.0