Documentation

Verification.StochasticRho

← Mathematical handbook

Spearman rho dominates xi under stochastic monotonicity #

The scalar estimate compares squared differences with absolute differences of an antitone function taking values in [0,1].

theorem Verification.integral_lower_integral {g : ↑unitInterval → ℝ} (hg : Measurable g) (hb : ∀ (u : ↑unitInterval), g u ∈ Set.Icc 0 1) :
∫ (u : ↑unitInterval), ∫ (w : ↑unitInterval) in Set.Iic u, g w = ∫ (w : ↑unitInterval), (1 - ↑w) * g w
theorem Verification.integral_abs_sub_of_antitone {g : ↑unitInterval → ℝ} (hg : Antitone g) (hb : ∀ (u : ↑unitInterval), g u ∈ Set.Icc 0 1) (u : ↑unitInterval) :
∫ (w : ↑unitInterval), |g u - g w| = ((2 * ∫ (w : ↑unitInterval) in Set.Iic u, g w) - ∫ (w : ↑unitInterval), g w) + g u - 2 * ↑u * g u
theorem Verification.integral_sq_le_twice_lower_integral {g : ↑unitInterval → ℝ} (hg : Antitone g) (hb : ∀ (u : ↑unitInterval), g u ∈ Set.Icc 0 1) :
∫ (u : ↑unitInterval), g u ^ 2 ≤ ((2 * ∫ (u : ↑unitInterval), ∫ (w : ↑unitInterval) in Set.Iic u, g w) - ∫ (u : ↑unitInterval), g u) + (∫ (u : ↑unitInterval), g u) ^ 2