What is the AdaBoost algorithm for binary labels yi∈{−1,+1}, and when and why must a weak classifier be rejected, in terms of its weight αt?

Supervised learning, Ensembles
Level L3 Intermediate. Length Long. Nature Th+Mat Both.

What's being asked

Whether you can state AdaBoost precisely (sample weights, classifier weights, reweighting, final vote) and use the formula for αt to explain what goes wrong at a weighted error of 0.5 or more.

Key idea

A weak classifier only needs to beat random guessing. Its vote is αt=12ln⁡1−ϵtϵt, where ϵt is its weighted error, and αt>0 only when ϵt<0.5. At ϵt=0.5, αt=0 and the weights do not change, so the algorithm makes no progress. At ϵt>0.5, αt<0: the classifier is worse than chance. So it is rejected (or its output flipped).

Steps

  1. Initialise the sample weights equally: D1(i)=1/n for i=1,…,n. Dt(i) is how much point i matters in round t.
  2. For t=1,…,T: train a weak classifier ht(x)∈{−1,+1} on the weighted data and compute its weighted error ϵt=∑iDt(i) 1[ht(xi)≠yi], where 1[⋅] is 1 if the condition holds and 0 otherwise. If ϵt≥0.5, reject ht and stop (or try another weak learner).
  3. Set αt=12ln⁡1−ϵtϵt and update Dt+1(i)=Dt(i)exp⁡(−αtyiht(xi))Zt. Since yiht(xi)=+1 when correct and −1 when wrong, mistakes are scaled up by eαt and correct points scaled down by e−αt. Zt=2ϵt(1−ϵt) makes the weights sum to 1.
  4. Output the weighted vote H(x)=sign⁡(∑t=1Tαtht(x)).
  5. Work a small example. If ϵt=0.3, then αt=12ln⁡(7/3)≈0.424. Wrong points are multiplied by e0.424≈1.53 and correct ones by e−0.424≈0.65. After normalising, the wrong points hold exactly half the weight, so ht has error 0.5 on Dt+1 and the next round is forced to focus on what ht got wrong.
  6. Explain the rejection. The training error of H is at most ∏tZt=∏t2ϵt(1−ϵt), and each factor is below 1 only if ϵt≠0.5. At ϵt=0.5, αt=0 and Dt+1=Dt, so the next round faces the same problem and nothing improves. At ϵt>0.5, αt<0, which would mean adding the flipped classifier −ht. The standard algorithm therefore requires ϵt<0.5, the weak-learning assumption.

Common mistakes

How long your answer should be

About a page: the algorithm plus a paragraph on rejection; 6–8 minutes.

Last checked on 4 December 2026.

Read this

Previous in Supervised learning: A binary classification training set has 64 one-dimensional samples, 32 from each class, and all 64 values of x are distinct. A decision tree splits with thresholds x≤θ and keeps splitting until every leaf is pure. Justify each answer. (a) What is the maximum possible training accuracy? (b) What is the maximum possible depth of the tree? (c) What is the minimum possible depth? (d) Does the minimum-depth tree need regularisation?
Next in Supervised learning: Class 0 has points (1,2),(2,1),(3,3) and class 1 has points (5,4),(6,6),(7,5). With equal priors, fit LDA (shared covariance). What are the discriminant direction w and the boundary, and which class is the query (4,3) assigned to?