Documentation

Copula.Rank.Spearman

← Mathematical handbook

Spearman's rho: distance formulas, bounds and benchmark copulas #

theorem ProbabilityTheory.Copula.spearmanRho_eq_one_sub (C : Copula 2) :
C.spearmanRho = 1 - 6 * ∫ (x : Fin 2 → ↑unitInterval), (↑(x 0) - ↑(x 1)) ^ 2 ∂C.toMeasure
theorem ProbabilityTheory.Copula.spearmanRho_eq_neg_one_add (C : Copula 2) :
C.spearmanRho = -1 + 6 * ∫ (x : Fin 2 → ↑unitInterval), (↑(x 0) + ↑(x 1) - 1) ^ 2 ∂C.toMeasure