OAI/Combinatorics/ContingencyTables/Transport/FiniteMedianConfidence.lean
2 declarations, 0 contain sorry, 0 declared as axioms
Rational medians with real target intervals
- theorem
OAI.ContingencyTables.FiniteMedianConfidence.median_confidence_realline 16Source documentation
Rational thresholds used only in the proof permit direct reuse of finite median amplification when the intended target is a real number.
theorem median_confidence_real {X : Type*} [Fintype X] [Nonempty X] (output : X → ℚ) (L L' U' U : ℝ) (hL : L < L') (hU : U' < U) (delta : ℚ) (hdelta : 0 < delta) (hbad : uniformAverage (fun x => if (output x:ℝ) < L' ∨ U' < (output x:ℝ) then (1:ℝ) else 0) ≤ 5/16) : 1-(delta:ℝ) ≤ uniformAverage (fun xs : Fin (repetitionCount delta) → X => if L ≤ (rationalMedian (List.ofFn (fun i => output (xs i))):ℝ) ∧ (rationalMedian (List.ofFn (fun i => output (xs i))):ℝ) ≤ U then (1:ℝ) else 0) := by … - lemma
OAI.ContingencyTables.FiniteMedianConfidence.rationalMedian_memline 59