Run the weighted majority algorithm by hand with experts, all starting with weight , and penalty factor (the weight of a wrong expert is multiplied by ). In round 1, experts predict and experts predict , and the true label is . In round 2, experts predict and experts predict , and the true label is . What does the algorithm predict, and what are the weights, after each round?
Learning theory, Mistake-bound model
Level L2 Elementary. Length Medium. Nature Mat Mathematical.
What's being asked
Whether you can carry out the weighted vote and update step correctly on a small example.
Key idea
Predict the label with more total weight; after the true label is revealed multiply the weight of each wrong expert by .
Steps
- Round 1 vote: weight on label is and on label is . The algorithm predicts .
- True label , so the algorithm makes a mistake. Experts were wrong, so their weights become . The weights are with total .
- Round 2 vote: weight on is (experts ), and on is (experts ). The algorithm predicts .
- True label , so the algorithm is correct. Experts were wrong, so their weights are halved: , total .
- Check: after a mistake the total weight must be at most times the old total: . ✓
Common mistakes
- Updating the weights of the correct experts too. Only wrong experts are penalised.
- Updating only when the algorithm errs. Experts are penalised every round they are wrong.
- Using the number of experts for the vote and not the sum of weights.
How long your answer should be
A small table of weights per round; 3 minutes.
Last checked on 4 December 2026.
Read this
Previous in Learning theory: A perceptron is run on linearly separable data with for all . Some unit vector separates it with margin . What upper bound does Novikoff's theorem give on the number of mistakes? What changes if all inputs are multiplied by ?
Next in Learning theory: A class has VC dimension . By Sauer's lemma, at most how many different labellings can it produce on points? What fraction of all labellings is that, and what does the bound say for ?