Documentation

Copula.Families.Gaussian.Bivariate

← Copula mathematical handbook

The bivariate Gaussian copula #

For a correlation r ∈ [-1, 1] let bivariateNormal r be the law of (Z₁, r Z₁ + √(1 − r²) Z₂) for independent standard normal Z₁, Z₂: the centered bivariate normal law with unit variances and correlation r. It is characterized by its linear forms (eq_bivariateNormal_of_linear_laws, a Cramér–Wold argument).

The bivariate Gaussian copula bivariateGaussian r hr is the library's gaussian copula for the correlation matrix !![1, r; r, 1]. We show:

Standard normal CDF facts (strictMono_standardNormalCDF, standardNormalCDF_neg) are proved on the way.

References #

The standard normal CDF #

The standard normal CDF Φ is strictly increasing.

Symmetry of the standard normal CDF: Φ(−x) = 1 − Φ(x).

Φ(−x) = 1 − Φ(x) as points of the unit interval.

Φ(0) = 1/2 as a point of the unit interval.

The standard bivariate normal law #

The centered bivariate normal law with unit variances and correlation r, realized as the law of (Z₁, r Z₁ + √(1 − r²) Z₂) for independent standard normal Z₁, Z₂.

Equations
  • One or more equations did not get rendered due to their size.
Instances For
    theorem ProbabilityTheory.Copula.map_linear_bivariateNormal {r : ℝ} (hr : r ∈ Set.Icc (-1) 1) (a b : ℝ) :
    MeasureTheory.Measure.map (fun (p : ℝ × ℝ) => a * p.1 + b * p.2) (bivariateNormal r) = gaussianReal 0 (a ^ 2 + 2 * a * b * r + b ^ 2).toNNReal

    Linear forms of the bivariate normal law: aX + bY ~ N(0, a² + 2abr + b²).

    theorem ProbabilityTheory.Copula.eq_bivariateNormal_of_linear_laws {r : ℝ} (hr : r ∈ Set.Icc (-1) 1) {μ : MeasureTheory.Measure (ℝ × ℝ)} [MeasureTheory.IsFiniteMeasure μ] (h : ∀ (a b : ℝ), MeasureTheory.Measure.map (fun (p : ℝ × ℝ) => a * p.1 + b * p.2) μ = gaussianReal 0 (a ^ 2 + 2 * a * b * r + b ^ 2).toNNReal) :

    Cramér–Wold characterization of the bivariate normal law.

    Sheppard's orthant formula for the bivariate normal law.

    Changing the sign of the second coordinate changes the correlation r into −r.

    Changing the sign of both coordinates preserves the bivariate normal law.

    The correlation matrix and the Gaussian copula #

    The 2 × 2 correlation matrix with off-diagonal entry r.

    Equations
    Instances For

      Linear forms of the multivariate normal law with correlation matrix corrMatrix r.

      The coordinate map (x, y) ↦ (Φ(x), Φ(y)) into the unit square.

      Equations
      Instances For
        noncomputable def ProbabilityTheory.Copula.bivariateGaussian (r : ℝ) (hr : r ∈ Set.Icc (-1) 1) :

        The bivariate Gaussian copula with correlation r ∈ [-1, 1].

        Equations
        Instances For

          The bivariate Gaussian copula is the law of (Φ(X), Φ(Y)) for (X, Y) ~ bivariateNormal r.

          CDF of the bivariate Gaussian copula: C_r(Φ(x), Φ(y)) = P(X ≤ x, Y ≤ y) for (X, Y) ~ bivariateNormal r, i.e. C_r(u, v) = Φ_r(Φ⁻¹(u), Φ⁻¹(v)).

          theorem ProbabilityTheory.Copula.exists_standardNormalCDFUnit_eq {u : ↑unitInterval} (hu0 : 0 < ↑u) (hu1 : ↑u < 1) :
          ∃ (x : ℝ), cdfUnit (gaussianReal 0 1) x = u

          Every point of the open unit interval is a value of Φ.

          Endpoints and symmetries #

          theorem ProbabilityTheory.Copula.gaussian_congr {d : ℕ} {R R' : Matrix (Fin d) (Fin d) ℝ} (h : R = R') (hR : R.PosSemidef) (hd : ∀ (i : Fin d), R i i = 1) (hR' : R'.PosSemidef) (hd' : ∀ (i : Fin d), R' i i = 1) :
          gaussian R hR hd = gaussian R' hR' hd'
          theorem ProbabilityTheory.Copula.bivariateGaussian_congr {r r' : ℝ} (h : r = r') (hr : r ∈ Set.Icc (-1) 1) (hr' : r' ∈ Set.Icc (-1) 1) :
          @[simp]

          Zero correlation gives the independence copula.

          @[simp]

          Correlation one gives the comonotonic copula M.

          @[simp]

          The bivariate Gaussian copula is exchangeable.

          Reflecting the second coordinate changes the correlation r into −r.

          Reflecting the first coordinate changes the correlation r into −r.

          @[simp]

          Correlation −1 gives the countermonotonic copula W.

          @[simp]

          The bivariate Gaussian copula is radially symmetric: Ĉ_r = C_r.