Documentation

Copula.MarkovProduct.Checkerboard

← Copula mathematical handbook

Markov products of checkerboard copulas #

A checkerboard copula with cell masses A = (aᵢⱼ) on the grid P × Q has the piecewise constant density aᵢⱼ / (|Pᵢ| |Qⱼ|) on the cell Pᵢ × Qⱼ. Its conditional distribution functions are therefore

∂₁C(s, v) = ∑ᵢ 1_{Pᵢ}(s)/|Pᵢ| · ∑ⱼ aᵢⱼ coordⱼ(v) for almost every s

(conditionalCDF_checkerboard), and the Darsow–Nguyen–Olsen product of two checkerboards over a common middle grid Q is again a checkerboard, with the (width-normalized) matrix product of the cell masses (checkerboard_markovProduct_checkerboard):

(A ⋆ B)ᵢₖ = ∑ⱼ aᵢⱼ bⱼₖ / |Qⱼ|.

On uniform n-grids, with the doubly stochastic matrices n aᵢⱼ, this is the ordinary matrix product (Durante and Sempi 2016, §5.2 and §4.1; Darsow, Nguyen and Olsen 1992). We also record the transpose of a checkerboard (transpose_checkerboard).

The normalized indicator 1_{(pᵢ, pᵢ₊₁]} / |Pᵢ| of a cell: the uniform density on it.

Equations
Instances For

    The cell density integrates to the clipped local coordinate: ∫_{[0,u]} 1_{Pᵢ}/|Pᵢ| = coordᵢ(u).

    The total mass of a cell density is one.

    Distinct cells are disjoint: 1_{Pᵢ} 1_{Pⱼ} / (|Pᵢ||Pⱼ|) vanishes for i ≠ j.

    The transposed cell masses on the grid Q × P.

    Equations
    • A.transpose = { mass := fun (j : Fin n) (i : Fin m) => A.mass i j, nonneg := ⋯, row_sum := ⋯, col_sum := ⋯ }
    Instances For
      noncomputable def ProbabilityTheory.Copula.CellMass.mul {m n l : ℕ} {P : IntervalPartition m} {Q : IntervalPartition n} {R : IntervalPartition l} (A : CellMass P Q) (B : CellMass Q R) :

      The width-normalized matrix product ∑ⱼ aᵢⱼ bⱼₖ / |Qⱼ| of cell masses.

      Equations
      • A.mul B = { mass := fun (i : Fin m) (k : Fin l) => ∑ j : Fin n, A.mass i j * B.mass j k / Q.width j, nonneg := ⋯, row_sum := ⋯, col_sum := ⋯ }
      Instances For

        The transpose of a checkerboard copula is the checkerboard of the transposed masses.

        theorem ProbabilityTheory.Copula.CellMass.conditionalCDF_checkerboard {m n : ℕ} {P : IntervalPartition m} {Q : IntervalPartition n} (A : CellMass P Q) (v : ↑unitInterval) :
        (fun (s : ↑unitInterval) => A.checkerboard.conditionalCDF s v) =ᵐ[MeasureTheory.volume] fun (s : ↑unitInterval) => ∑ i : Fin m, P.cellDensity i s * ∑ j : Fin n, A.mass i j * ↑(Q.coord j v)

        The conditional distribution functions of a checkerboard copula: ∂₁C(s,v) = ∑ᵢ 1_{Pᵢ}(s)/|Pᵢ| ∑ⱼ aᵢⱼ coordⱼ(v) for almost every s.

        The Markov product of two checkerboard copulas over a common middle grid is the checkerboard copula of the width-normalized matrix product of their cell masses.