Two generalizations turn weighted majority into the general multiplicative weights (MW) algorithm.
Generalization 1 — output a distribution, not a decision
- Instead of committing to one answer, each day we output a probability distribution
p(t)over thenexperts36:0337:3438:06. - The objective becomes minimizing the expected total cost
Σ_{t=1}^{T} ⟨m(t), p(t)⟩38:06. - With 0/1 costs, that dot product is exactly the probability of being wrong on that day
38:55.
Generalization 2 — cost vectors in [−1, 1]ⁿ
m(t)is now the cost (mistake) vector at timet, not a running count; the letter reuse from earlier was an accident the lecturer corrects mid-proof39:5940:52.- Binary version:
mᵢ(t) = 1if expertiis wrong on dayt,0if right39:59. - General version:
m(t) ∈ [−1, 1]ⁿinstead of{0, 1}ⁿ40:52. - Negative entries mean benefit, not just correctness — "he was right and gave us $100." Since we minimize the total, negatives help us
41:35.
The MW update rule
pᵢ(t+1) ∝ (1 − ε)^{mᵢ(t)} · pᵢ(t)
- Treat
pas the weight vector; formallypᵢ(t) = wᵢ(t) / Σⱼ wⱼ(t)46:36. - This strictly generalizes weighted majority:
mᵢ = 0→ weight unchanged;mᵢ = 1→ weight scaled by(1 − ε)43:0743:53. - Negative
mᵢnow increases weight; as before, that is notational convenience — you could keep only ratios instead44:06.
Provenance
- MW has been rediscovered repeatedly under different names in economics, theoretical computer science / algorithms, machine learning, and elsewhere
44:2445:08. - Reference given in class: the 2012 monograph by Arora, Hazan and Kale, which covers the history and many applications
45:0845:38.
The MW theorem
For every expert
i:Σ_t ⟨m(t), p(t)⟩ ≤ Σ_t mᵢ(t) + ε·Σ_t |mᵢ(t)| + ln n / ε47:4148:3049:23
Reading it: our expected cost is at most the best expert's cost, plus an ε-fraction of the magnitude of that expert's costs, plus an additive ln n / ε — the classic regret bound. (Note m is indexed by i, p is not — the dot product is over experts 48:30.)