Documentation

Copula.Patchwork.Grid

← Copula mathematical handbook

Checkerboard, check-min and local-copula grid constructions #

Entries are cell probabilities: row sums are row widths and column sums are column widths. The grid can be rectangular and nonuniform. In particular, no implicit matrix normalization or equal-marginal assumption is hidden in a constructor.

A nonnegative matrix of cell probabilities with prescribed uniform marginals.

Instances For

    The coordinate and weight data attached to a matrix of cell masses.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      noncomputable def ProbabilityTheory.Copula.CellMass.patchwork {m n : ℕ} {P : IntervalPartition m} {Q : IntervalPartition n} (A : CellMass P Q) (C : Fin m → Fin n → Copula 2) :

      Fill every cell with an independently specified local copula.

      Equations
      Instances For
        @[simp]
        theorem ProbabilityTheory.Copula.CellMass.cdf_patchwork {m n : ℕ} {P : IntervalPartition m} {Q : IntervalPartition n} (A : CellMass P Q) (C : Fin m → Fin n → Copula 2) (u : Fin 2 → ↑unitInterval) :
        (A.patchwork C).cdf u = ∑ i : Fin m, ∑ j : Fin n, A.mass i j * (C i j).cdf ![P.coord i (u 0), Q.coord j (u 1)]

        Checkerboard copula: independent local coordinates in every cell.

        Equations
        Instances For

          Check-min copula: comonotonic local coordinates in every cell.

          Equations
          Instances For

            Check-W copula: countermonotonic local coordinates in every cell.

            Equations
            Instances For
              theorem ProbabilityTheory.Copula.CellMass.cdf_checkerboard {m n : ℕ} {P : IntervalPartition m} {Q : IntervalPartition n} (A : CellMass P Q) (u v : ↑unitInterval) :
              A.checkerboard.cdf ![u, v] = ∑ i : Fin m, ∑ j : Fin n, A.mass i j * (↑(P.coord i u) * ↑(Q.coord j v))
              theorem ProbabilityTheory.Copula.CellMass.cdf_checkMin {m n : ℕ} {P : IntervalPartition m} {Q : IntervalPartition n} (A : CellMass P Q) (u v : ↑unitInterval) :
              A.checkMin.cdf ![u, v] = ∑ i : Fin m, ∑ j : Fin n, A.mass i j * min ↑(P.coord i u) ↑(Q.coord j v)
              theorem ProbabilityTheory.Copula.CellMass.cdf_checkW {m n : ℕ} {P : IntervalPartition m} {Q : IntervalPartition n} (A : CellMass P Q) (u v : ↑unitInterval) :
              A.checkW.cdf ![u, v] = ∑ i : Fin m, ∑ j : Fin n, A.mass i j * max (↑(P.coord i u) + ↑(Q.coord j v) - 1) 0

              The product matrix produces global independence under checkerboard filling.

              Equations
              Instances For
                noncomputable def ProbabilityTheory.Copula.cellMass {m n : ℕ} (C : Copula 2) (P : IntervalPartition m) (Q : IntervalPartition n) :

                Sample the actual rectangle probabilities of a copula on a finite grid.

                Equations
                • One or more equations did not get rendered due to their size.
                Instances For
                  noncomputable def ProbabilityTheory.Copula.checkerboard {m n : ℕ} (C : Copula 2) (P : IntervalPartition m) (Q : IntervalPartition n) :

                  Checkerboard approximation on the chosen grid.

                  Equations
                  Instances For
                    noncomputable def ProbabilityTheory.Copula.checkMin {m n : ℕ} (C : Copula 2) (P : IntervalPartition m) (Q : IntervalPartition n) :

                    Check-min approximation on the chosen grid.

                    Equations
                    Instances For