Appendix C, the event — with probability at least
ProvedXuMannorRobust.Quantile.eventE_cell_deviation_boundLet be a probability measure on a measurable space and let be a partition of into measurable sets. Let , , consist of i.i.d. draws from , and let be the set of indices of the points of that fall into . For let be the event
Then .
On the empirical cell frequencies are uniformly close to the cell probabilities; the proof of Theorem 5 works entirely on this event.
Formalization Note "Probability at least " is encoded as: the outer measure under the product measure of the set of training sets on which the inequality fails is at most ; the outer measure makes a measurability statement about that set unnecessary. Indices run over . This is Eq. (3) of the paper's proof of Theorem 1, restated in this mission's namespace.
import Mathlib open MeasureTheory
namespace XuMannorRobust.Quantile
open Classical in
/-- **The event ℰ** (Xu & Mannor 2012, pp. 415–416, Appendix C, proof of Theorem 5). For a
measurable partition `C_1, …, C_K` of `Z`, `n ≥ 1` i.i.d. draws `s` from a probability measure `μ`
and `δ > 0`, let `N_i = {j : s_j ∈ C_i}`. Then `Pr(ℰ) ≥ 1 − δ`, where `ℰ` is the event
`∑_i ||N_i|/n − μ(C_i)| ≤ √((2K ln 2 + 2 ln(1/δ))/n)`: the outer measure under `μⁿ` of the
complement of `ℰ` is at most `δ`. -/
theorem eventE_cell_deviation_bound {Z : Type*} [MeasurableSpace Z] (μ : Measure Z)
[IsProbabilityMeasure μ] {K : ℕ} (C : Fin K → Set Z) (hC_meas : ∀ i, MeasurableSet (C i))
(hC_disj : Pairwise (Function.onFun Disjoint C)) (hC_cover : (⋃ i, C i) = Set.univ)
{n : ℕ} (hn : 0 < n) (δ : ℝ) (hδ : 0 < δ) :
(Measure.pi fun _ : Fin n => μ)
{s : Fin n → Z | ¬ (∑ i, |((Finset.univ.filter fun j => s j ∈ C i).card : ℝ) / (n : ℝ)
- (μ (C i)).toReal|
≤ Real.sqrt ((2 * (K : ℝ) * Real.log 2 + 2 * Real.log (1 / δ)) / (n : ℝ)))}
≤ ENNReal.ofReal δ := by sorry
end XuMannorRobust.Quantile
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.