Shuffles of M are dense in the bivariate copulas #
This file formalizes Nelsen, An Introduction to Copulas, 2nd ed., Theorem 3.2.2
(Mikusiński, Sherwood and Taylor, 1992): for every copula C and every ε > 0 there is a
straight shuffle of M whose CDF is uniformly within ε of C.
The construction follows the classical proof. Fix a partition P of [0,1] into n cells
and let m i j be the C-mass of the cell P_i × P_j (a CellMass P P). Split the vertical
strip P_i into consecutive pieces of lengths m i 0, m i 1, … and the horizontal strip P_j
into consecutive pieces of lengths m 0 j, m 1 j, …; the piece (i, j) of the first strip is
sent by a translation onto the piece (i, j) of the second one. In the terminology of
Copula.Shuffle.Weights the source order of the pieces is lexicographic in (i, j) and the
target order is lexicographic in (j, i); zero-mass pieces are discarded automatically.
The resulting straight shuffle A.shuffle puts mass m i j into every cell, so it agrees with
C at all grid vertices (cdf_gridShuffle_point); both CDFs are monotone and Lipschitz, which
gives |S(u,v) - C(u,v)| ≤ 2/n on the uniform grid (abs_cdf_gridShuffle_uniform_sub_le).
Main results #
CellMass.shuffle,cdf_cellMass_shuffle_point: exact grid interpolation by a shuffle.abs_cdf_sub_le_of_eq_on_grid: two copulas that agree on a grid are close.uniformCDFDistance_gridShuffle_le:d∞(S_n, C) ≤ 2/n.tendstoUniformly_gridShuffle: uniform convergence along refining uniform grids.exists_isStraightShuffleOfMin_uniformCDFDistance_lt: Nelsen, Theorem 3.2.2.dense_isStraightShuffleOfMin,dense_isShuffleOfMin: density in the uniform metricuniformMetricSpace 2.
Copulas agreeing on a grid #
Two copulas whose CDFs agree at all vertices of a grid differ by at most the mesh sizes.
Lexicographic offsets of the pieces #
The lexicographic rank of the cell (i, j) among the n × n cells (i is the major key).
Equations
Instances For
The total mass of the cells lexicographically before (i, j).
Equations
- ProbabilityTheory.Copula.lexOffset m i j = ∑ q : Fin n × Fin n, if ProbabilityTheory.Copula.lexRank q < ProbabilityTheory.Copula.lexRank (i, j) then m q.1 q.2 else 0
Instances For
At a grid point the clipped length of a piece is all or nothing.
The shuffle of a matrix of cell masses #
The masses listed in lexicographic order of the cells.
Equations
- A.lexWeights k = A.mass (finProdFinEquiv.symm k).1 (finProdFinEquiv.symm k).2
Instances For
The permutation of the cells from lexicographic (i, j) order to lexicographic (j, i)
order.
Equations
Instances For
The straight shuffle of M that puts the mass A.mass i j into the cell P_i × P_j
(Nelsen, proof of Theorem 3.2.2).
Equations
Instances For
The shuffle of a matrix of cell masses has the prescribed cumulative masses at every grid vertex.
Grid shuffles of a copula #
The straight shuffle of M carrying the C-mass of every cell of the grid P × P.
Equations
- C.gridShuffle P = (C.cellMass P P).shuffle
Instances For
Grid shuffles along refining uniform grids converge uniformly to C.
Nelsen, Theorem 3.2.2 (Mikusiński–Sherwood–Taylor): every bivariate copula is
uniformly approximated by straight shuffles of M.
Straight shuffles of M are dense in the bivariate copulas for the uniform metric.
Shuffles of M are dense in the bivariate copulas for the uniform metric.
Every bivariate copula is the uniform limit of a sequence of straight shuffles of M.