Documentation

Copula.Vine.Basic

← Copula mathematical handbook

Simplified C-vine copulas #

One construction step adjoins an independent uniform root to a residual copula, then applies the conditional quantile of each root-pair copula to its residual coordinate. Iterating this step gives a simplified C-vine in any finite dimension. The recursive residual copula is fixed, independent of the value of the root.

noncomputable def ProbabilityTheory.Copula.Vine.rootTransform {d : ℕ} (pairs : Fin d → Copula 2) (p : ↑unitInterval × (Fin d → ↑unitInterval)) :
Fin (d + 1) → ↑unitInterval

The inverse conditional transform for one level of a C-vine.

Equations
Instances For
    noncomputable def ProbabilityTheory.Copula.vineStep {d : ℕ} (pairs : Fin d → Copula 2) (D : Copula d) :
    Copula (d + 1)

    Adjoin a root with the prescribed bivariate copulas to a residual copula. The residual dependence is independent of the root (the simplifying assumption).

    Equations
    Instances For
      @[simp]
      theorem ProbabilityTheory.Copula.reindex_vineStep_root_pair {d : ℕ} (pairs : Fin d → Copula 2) (D : Copula d) (i : Fin d) :
      (vineStep pairs D).reindex ![0, i.succ] = pairs i

      Each first-tree pair is exactly the bivariate copula supplied by the caller.

      A simplified C-vine, with roots ordered 0, 1, …. At each level the pair copulas describe the remaining coordinates conditional on all earlier roots. There are d * (d - 1) / 2 bivariate inputs in dimension d.

      • nil : CVine 0

        The empty vine.

      • cons {d : ℕ} (pairs : Fin d → Copula 2) (tail : CVine d) : CVine (d + 1)

        Add the next root and its pair copulas.

      Instances For
        @[simp]
        theorem ProbabilityTheory.Copula.CVine.toCopula_cons {d : ℕ} (pairs : Fin d → Copula 2) (tail : CVine d) :
        (cons pairs tail).toCopula = vineStep pairs tail.toCopula
        def ProbabilityTheory.Copula.CVine.ofPairs (d : ℕ) :
        ((i j : Fin d) → i < j → Copula 2) → CVine d

        Construct a C-vine from its strict upper triangular table of pair copulas. The entry (i, j) is the pair of coordinates i and j conditional on coordinates 0, …, i - 1. Entries below the diagonal are not required.

        Equations
        Instances For
          @[simp]
          theorem ProbabilityTheory.Copula.CVine.reindex_ofPairs_root_pair {d : ℕ} (pairs : (i j : Fin (d + 1)) → i < j → Copula 2) (j : Fin d) :
          (ofPairs (d + 1) pairs).toCopula.reindex ![0, j.succ] = pairs 0 j.succ ⋯

          The first row of the triangular table gives the root's bivariate marginals.

          A bivariate vine consists of its single pair copula.

          Equations
          Instances For
            def ProbabilityTheory.Copula.CVine.triple (C₀₁ C₀₂ C₁₂₀ : Copula 2) :

            A three-variable vine with pairs C₀₁, C₀₂ and conditional pair C₁₂;₀.

            Equations
            Instances For
              @[simp]
              theorem ProbabilityTheory.Copula.CVine.toCopula_triple (C₀₁ C₀₂ C₁₂₀ : Copula 2) :
              (triple C₀₁ C₀₂ C₁₂₀).toCopula = vineStep ![C₀₁, C₀₂] C₁₂₀