Documentation

Copula.Families.Gaussian.Sheppard

← Copula mathematical handbook

Rank correlations of the bivariate Gaussian copula #

For the bivariate Gaussian copula C_r with correlation r ∈ [-1, 1]:

All three reduce to Sheppard's orthant formula (orthant_nonpos_of_linear_laws): Kendall's tau is 4 P(X' ≤ X, Y' ≤ Y) − 1 for an independent copy (X', Y'), and (X − X', Y − Y') is bivariate normal with correlation r; Spearman's rho is 12 P(X' ≤ X, Y'' ≤ Y) − 3 for independent X', Y'' ~ N(0, 1), and (X − X', Y − Y'') is bivariate normal with correlation r/2.

References #

theorem ProbabilityTheory.Copula.corr_quadratic_nonneg {r : ℝ} (hr : r ∈ Set.Icc (-1) 1) (a b : ℝ) :
0 ≤ a ^ 2 + 2 * a * b * r + b ^ 2

The variance a² + 2abr + b² of aX + bY is nonnegative for |r| ≤ 1.

The integral of a section measure is the measure of the set in the product.

theorem ProbabilityTheory.Copula.map_linear_sub_prod {μ ν : MeasureTheory.Measure (ℝ × ℝ)} [MeasureTheory.SFinite μ] [MeasureTheory.SFinite ν] (a b : ℝ) {v w : NNReal} (hμ : MeasureTheory.Measure.map (fun (p : ℝ × ℝ) => a * p.1 + b * p.2) μ = gaussianReal 0 v) (hν : MeasureTheory.Measure.map (fun (p : ℝ × ℝ) => a * p.1 + b * p.2) ν = gaussianReal 0 w) :
MeasureTheory.Measure.map (fun (z : (ℝ × ℝ) × ℝ × ℝ) => a * (z.2.1 - z.1.1) + b * (z.2.2 - z.1.2)) (μ.prod ν) = gaussianReal 0 (↑v + ↑w).toNNReal

If L(p) = a p₁ + b p₂ has centered Gaussian laws N(0, v) under μ and N(0, w) under ν, then L(q) − L(p) has law N(0, v + w) under μ ⊗ ν (for (p, q) ~ μ ⊗ ν).

Blomqvist's beta of the Gaussian copula (Sheppard's formula): β(C_r) = (2/π) arcsin r.

Kendall's tau of the Gaussian copula: τ(C_r) = (2/π) arcsin r.

Spearman's rho of the Gaussian copula: ρ_S(C_r) = (6/π) arcsin (r/2).

Kendall's tau and Blomqvist's beta coincide for Gaussian copulas.

The correlation parameter is recovered from Kendall's tau: r = sin(π τ / 2).

Spearman's rho as a function of Kendall's tau for Gaussian copulas: ρ_S = (6/π) arcsin (sin(π τ / 2) / 2).

theorem ProbabilityTheory.Copula.kendallTau_bivariateGaussian_lt {r r' : ℝ} (hr : r ∈ Set.Icc (-1) 1) (hr' : r' ∈ Set.Icc (-1) 1) (h : r < r') :

Kendall's tau is strictly increasing in the correlation.

Spearman's rho is strictly increasing in the correlation.