Theorem 21.11: for T > 2 log d and η = √(2 log(d)/T), Weighted-Majority pays ∑ₜ⟨w⁽ᵗ⁾, vₜ⟩ ≤ minᵢ ∑ₜ vₜ,ᵢ + √(2 log(d) T)
ProvedUnderstandingML.weighted_majority_regretprediction-with-expert-adviceregretweighted-majority
Theorem 21.11. Assuming that , the Weighted-Majority algorithm enjoys the bound
Formally: experts, costs , , rounds indexed from , and (the unrolled update rule).
Preamble
import Definitions.Def_UnderstandingML_Online open MeasureTheory open scoped InnerProductSpace
Formal statement
namespace UnderstandingML
/-- **Theorem 21.11** (p. 296). Assuming that `T > 2 log(d)`, the Weighted-Majority algorithm
with `η = √(2 log(d)/T)` enjoys the bound
`∑_{t=1}^T ⟨w⁽ᵗ⁾, vₜ⟩ − min_{i ∈ [d]} ∑_{t=1}^T v_{t,i} ≤ √(2 log(d) T)`,
for every sequence of cost vectors `vₜ ∈ [0,1]^d`. Rounds indexed from `0`; `d ≥ 1`. -/
theorem weighted_majority_regret (d : ℕ) (hd : 0 < d) (T : ℕ) (hT : 2 * Real.log d < T)
(v : ℕ → Fin d → ℝ) (hv : ∀ t i, v t i ∈ Set.Icc (0 : ℝ) 1) :
∑ t ∈ Finset.range T, ∑ i, wmWeights (Real.sqrt (2 * Real.log d / T)) v t i * v t i -
⨅ i, ∑ t ∈ Finset.range T, v t i ≤ Real.sqrt (2 * Real.log d * T) := by sorry
end UnderstandingML
Source
Shalev-Shwartz and Ben-David, Understanding Machine Learning: From Theory to Algorithms, Cambridge University Press 2014, doi:10.1017/CBO9781107298019, §21.2.1 p. 296, Theorem 21.11
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.