Calibrated forecasting and the Foster–Vohra theorem #
Formalizes binary online calibration via Blackwell approachability [Blackwell1956, FosterVohra1998]:
- Deterministic impossibility (
deterministic_calError_ge_half): every deterministic forecasterf : List Bool → ℝincurs exactℓ₁calibration error at least1 / 2against an adaptive binary adversary (y_t = decide (f h < 1 / 2)) for every horizonT ≥ 1. Hence randomization is strictly required for asymptotic calibration. - Calibration payoff and
ℓ₁ball (calPayoff,l1Ball): on the uniform gridgridPoint K i = i / K ∈ [0, 1](i : Fin (K + 1)), round-tpredictioniagainst outcomeb : Boolincurs the vector payoff(outcome b - i / K) • e_i ∈ EuclideanSpace ℝ (Fin (K + 1)). Its cumulative vector average hasℓ₁norm equal to the classic empiricalℓ₁calibration error(1 / T) * ∑ k, |∑_{i_t = k} (outcome b_t - gridPoint K k)|. - Response condition & explicit two-point Foster–Vohra strategy (
calPayoff_response,fosterVohraRule,fosterVohraRule_halfspace): verifies both Blackwell's response condition (SatisfiesResponseCondition) for theℓ₁balll1Ball K (1 / (2 * K))(by rounding to the nearest grid point) and an explicit closed-form 2-point-supported distributionfosterVohraDist K wsatisfying the supporting halfspace condition directly (handling endpointsw 0 ≤ 0,0 ≤ w Kand adjacent sign changew i ≥ 0 ≥ w (i + 1)with exact weight balance cancelingoutcome b). - Finite-sample and
ε–δcalibration bounds (fosterVohra_expected_calError_le,fosterVohra_prob_calError_ge_le,exists_calibrated_forecaster): against every adaptive binary adversaryadv : List (Fin (K + 1)) → Bool,𝔼[calError_T] ≤ 1 / (2 * K) + 2 * √((K + 1) / T)(givingO(T ^ (-1 / 3))whenK ≈ T ^ (1 / 3)), andPr[calError_T ≥ ε] ≤ 4 * (K + 1) / (T * (ε - 1 / (2 * K)) ^ 2)whenever1 / (2 * K) < ε.
Main definitions #
Cslib.MachineLearning.OnlineLearning.Blackwell.outcome: binary outcome{false ↦ 0, true ↦ 1}.Cslib.MachineLearning.OnlineLearning.Blackwell.detCalError: bucketedℓ₁empirical calibration error of a deterministic real-valued forecasterf : List Bool → ℝ.Cslib.MachineLearning.OnlineLearning.Blackwell.gridPoint: uniform grid pointi / Kin[0, 1].Cslib.MachineLearning.OnlineLearning.Blackwell.calPayoff: vector payoff inEuclideanSpace ℝ (Fin (K + 1)).Cslib.MachineLearning.OnlineLearning.Blackwell.l1Ball: closedℓ₁ball{x | ∑ k, |x k| ≤ r}.Cslib.MachineLearning.OnlineLearning.Blackwell.fosterVohraDist: explicit 2-point-supported forecast distribution given dual directionw.Cslib.MachineLearning.OnlineLearning.Blackwell.fosterVohraRule: stationary BlackwellFeedbackRulefor calibrated forecasting on theK-grid.Cslib.MachineLearning.OnlineLearning.Blackwell.empiricalCalError: realizedℓ₁calibration error(h.length : ℝ)⁻¹ * ∑ k, |(sumPayoff (calPayoff K) adv h) k|.
Main results #
Cslib.MachineLearning.OnlineLearning.Blackwell.deterministic_calError_ge_half: every deterministic forecaster suffers calibration error at least1 / 2.Cslib.MachineLearning.OnlineLearning.Blackwell.calPayoff_response:calPayoff KsatisfiesSatisfiesResponseConditionforl1Ball K (1 / (2 * K)).Cslib.MachineLearning.OnlineLearning.Blackwell.fosterVohra_expected_calError_le:𝔼[calError_T] ≤ 1 / (2 * K) + 2 * √((K + 1) / T)against arbitrary adaptive adversaries.Cslib.MachineLearning.OnlineLearning.Blackwell.fosterVohra_prob_calError_ge_le: Markov probability boundPr[calError_T ≥ ε] ≤ 4 * (K + 1) / (T * (ε - 1 / (2 * K)) ^ 2).Cslib.MachineLearning.OnlineLearning.Blackwell.exists_calibrated_forecaster: for allε, δ > 0, explicitKand horizonT₀with𝔼[calError_T] ≤ εandPr[calError_T ≥ ε] ≤ δfor allT ≥ T₀[FV98].
References #
Binary outcome in {0, 1} ⊆ ℝ.
Deterministic forecasters cannot be calibrated [FV98]: for every
deterministic forecaster f : List Bool → ℝ and every horizon T ≥ 1, the adaptive adversary
playing y t = true iff f h_t < 1 / 2 forces exact bucketed ℓ₁ calibration error at least
1 / 2.
Closed ℓ₁ ball {x : EuclideanSpace ℝ (Fin n) | ∑ k, |x k| ≤ r}.
Blackwell's response condition holds for binary calibration (calPayoff K targeting
l1Ball (K + 1) (1 / (2 * K))): against any mixed outcome q ∈ Δ(Bool), placing mass 1 on the
grid point nearest to q true keeps the expected vector payoff inside the ℓ₁ ball of radius
1 / (2 * K).
Explicit 2-point-supported distribution on Fin (K + 1) forcing the l1Ball supporting
halfspace of w : EuclideanSpace ℝ (Fin (K + 1)) against both binary outcomes true, false
[FV98].
Core Foster–Vohra halfspace lemma: for every dual vector w, fosterVohraDist K w
forces ⟪w, expectedPayoff (calPayoff K) (fosterVohraDist K w) b⟫ ≤ ⟪w, s*⟫ for an explicit
s* ∈ l1Ball (K + 1) (1 / (2 * K)) against both binary outcomes b : Bool.
Explicit stationary Foster–Vohra feedback rule targeting l1Ball (K + 1) (1 / (2 * K)):
given current realized average error vector y, returns fosterVohraDist K (y - Π_S y).
fosterVohraRule K satisfies Blackwell's supporting-halfspace inequality for every y and
every binary outcome b : Bool.
Realized ℓ₁ empirical calibration error along a reverse-ordered history
h : List (Fin (K + 1)) against an adaptive binary adversary adv : List (Fin (K + 1)) → Bool:
(1 / |h|) * ∑ k, |∑_{i_t = k} (outcome (y_t) - k / K)|.
Foster–Vohra finite-sample expected ℓ₁ calibration bound [FV98]:
for every grid size K ≥ 1, horizon T ≥ 1, and arbitrary adaptive binary adversary
adv : List (Fin (K + 1)) → Bool, the explicit two-point-supported fosterVohraRule K achieves
𝔼[empiricalCalError K adv h] ≤ 1 / (2 * K) + 2 * √((K + 1) / T).
Foster–Vohra high-probability calibration tail bound [FV98]: whenever ε
exceeds the grid discretization 1 / (2 * K), for every adaptive binary adversary adv and
horizon T ≥ 1,
Pr[empiricalCalError K adv h ≥ ε] ≤ 4 * (K + 1) / (T * (ε - 1 / (2 * K)) ^ 2).
Existence of (ε, δ)-calibrated randomized forecasters [FV98]:
for every ε > 0 and δ > 0, there exist an explicit grid resolution K ≥ 1 and horizon
T₀ ≥ 1 (K = ⌈2 / ε⌉₊, T₀ = O(K / (δ * ε ^ 2))) such that fosterVohraRule K achieves
both 𝔼[empiricalCalError K adv h] ≤ ε and Pr[empiricalCalError K adv h ≥ ε] ≤ δ for all
T ≥ T₀ and every adaptive binary adversary adv.