Proposition 4, p. 16 — trimmed mean of N samples, ζN arbitrarily corrupted: |µ̂ − µ| ≥ C₀ max σⱼ (3ζ+4η)√log(3/η) w.p. ≤ 3exp(−Nη²/9)
ProvedRobustMultitask.Estimator.proposition_4Let be random variables on a probability space and a set of indices with , where . Suppose that the samples are independent and that each , , is -subgaussian with mean (Definition 1), ; the samples may be arbitrarily corrupted. Let with . Then for every constant and every ,
This is the robust-statistics step of the paper: unlike the classical results, the uncorrupted samples need only be independent, not identically distributed, so the bound applies to per-task least-squares estimates with different variances.
Formalization Note The corrupted samples , , are arbitrary functions of the sample point: no independence, measurability or integrability is assumed. Definition 1 is Mathlib's HasSubgaussianMGF (Z j − µ) (σ j ^ 2) (written with mu), which forces . Independence is iIndepFun over the subtype . The constant is universally quantified ("with some constant " holds for every such in the proof, p. 40), and the trimming level is fixed to . The probability is the outer measure of the failure event, so no measurability of the trimmed mean is needed. The maximum over is a supremum over that (nonempty, since ) subtype. The trimmed mean removes values from each end. The hypothesis is added: with all the threshold is and the event "" is certain, so the printed inequality would fail.
import Mathlib import Definitions.Def_RobustMultitask_Estimator_TrimmedMean
namespace RobustMultitask.Estimator
open MeasureTheory ProbabilityTheory
open scoped NNReal
/-- Proposition 4, p. 16 (trimmed mean under corruption). `N` samples `Z j`; a set `𝒥` of
corrupted indices with `|𝒥| < ζN`, `0 < ζ < 1/2`. The uncorrupted samples `Z j`, `j ∉ 𝒥`, are
independent, `σ_j`-subgaussian about the common mean `µ` (written `mu`; `σ_j > 0`); the corrupted ones are
arbitrary functions of the sample point. Then for every `C₀ > 2` and `0 < η ≤ 1/2 − 1/C₀ − ζ`,
with `µ̂ = TrimmedMean({Z_j}, ω)` and `ω = ζ + η`,
`P[|µ̂ − µ| ≥ C₀ max_{j∈𝒥ᶜ} σ_j (3ζ + 4η) √log(3/η)] ≤ 3 exp(−Nη²/9)`. -/
theorem proposition_4 {Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω) [IsProbabilityMeasure P]
{N : ℕ} (Z : Fin N → Ω → ℝ) (𝒥 : Finset (Fin N)) (σ : Fin N → ℝ≥0) (mu ζ η C₀ : ℝ)
(hC₀ : 2 < C₀) (hζ0 : 0 < ζ) (hζ1 : ζ < 1 / 2) (hcard : (𝒥.card : ℝ) < ζ * N)
(hη0 : 0 < η) (hη1 : η ≤ 1 / 2 - 1 / C₀ - ζ)
(hσ : ∀ j ∉ 𝒥, 0 < σ j)
(hsub : ∀ j ∉ 𝒥, HasSubgaussianMGF (fun ω => Z j ω - mu) (σ j ^ 2) P)
(hind : iIndepFun (fun j : {j : Fin N // j ∉ 𝒥} => Z j) P) :
P {ω | C₀ * (⨆ j : {j : Fin N // j ∉ 𝒥}, (σ j : ℝ)) * (3 * ζ + 4 * η)
* Real.sqrt (Real.log (3 / η))
≤ |trimmedMean (fun j => Z j ω) (ζ + η) - mu|}
≤ ENNReal.ofReal (3 * Real.exp (-((N : ℝ) * η ^ 2) / 9)) := by sorry
end RobustMultitask.Estimator
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.