Run the weighted majority algorithm by hand with 5 experts, all starting with weight 1, and penalty factor β=12 (the weight of a wrong expert is multiplied by β). In round 1, experts 1,2,3 predict 1 and experts 4,5 predict 0, and the true label is 0. In round 2, experts 1,2 predict 0 and experts 3,4,5 predict 1, and the true label is 1. 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

  1. Round 1 vote: weight on label 1 is 1+1+1=3 and on label 0 is 1+1=2. The algorithm predicts 1.
  2. True label 0, so the algorithm makes a mistake. Experts 1,2,3 were wrong, so their weights become 0.5. The weights are (0.5,0.5,0.5,1,1) with total 3.5.
  3. Round 2 vote: weight on 1 is 0.5+1+1=2.5 (experts 3,4,5), and on 0 is 0.5+0.5=1 (experts 1,2). The algorithm predicts 1.
  4. True label 1, so the algorithm is correct. Experts 1,2 were wrong, so their weights are halved: (0.25,0.25,0.5,1,1), total 3.0.
  5. Check: after a mistake the total weight must be at most 1+β2 times the old total: 3.5≤5×0.75=3.75. ✓

Common mistakes

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 ∥xi∥≤5 for all i. Some unit vector w∗ separates it with margin yi w∗ ⁣⋅xi≥0.5. What upper bound does Novikoff's theorem give on the number of mistakes? What changes if all inputs are multiplied by 10?
Next in Learning theory: A class has VC dimension 3. By Sauer's lemma, at most how many different labellings can it produce on 10 points? What fraction of all 210 labellings is that, and what does the bound say for m=3?