You want an ensemble of linear SVMs. What are two different ways to get different linear SVMs from one training set, why does each make the SVMs differ, and why must the ensemble combine their votes rather than average their real-valued scores?

Supervised learning, Ensembles
Level L4 Advanced. Length Medium. Nature Th Theoretical.

What's being asked

Whether you know that an ensemble helps only when its members disagree, how to create that disagreement for a fairly stable learner, and a subtle point about combining linear models.

Key idea

Diversity comes from changing the data, the features or the hyperparameters: bootstrap samples (bagging), random feature subsets (random subspace) or different C values. Averaging B members with variance σ2 and pairwise correlation ρ gives variance ρσ2+1−ρBσ2, so less correlated members help more. Averaging the scores 1B∑k(wk⊤x+bk) is still one linear classifier; only a majority vote of the predicted labels gives a nonlinear boundary.

Steps

  1. Method 1, bootstrap samples (bagging): train each SVM on n points drawn from the training set with replacement, so some points appear twice and others not at all. An SVM depends only on its support vectors, so samples that drop or repeat support vectors move the boundary. A repeated point counts like a point with double C.
  2. Method 2, random feature subsets (random subspace): train each SVM on a random subset of m<d features. Each weight vector wk then uses different coordinates, so the boundaries differ even on the same samples. This decorrelates the members strongly when d is large.
  3. Other options: different C values (different trade-offs between margin and violations), different class weights, or boosting-style sample weights (a different Ci per point).
  4. Justify with the variance formula ρσ2+1−ρBσ2. Identical members (ρ=1) give no benefit at all; the methods above lower ρ.
  5. Explain the combining rule. Averaging scores gives 1B∑k(wk⊤x+bk)=wˉ⊤x+bˉ, where wˉ and bˉ are the averages; this is just another linear classifier. A majority vote, sign⁡(∑ksign⁡(wk⊤x+bk)), is piecewise linear and can draw boundaries no single linear model can.

Common mistakes

How long your answer should be

Two justified methods plus the averaging remark; about half a page.

Last checked on 4 December 2026.

Read this

Previous in Supervised learning: The Huber loss with threshold δ is ℓ(r)=12r2 for ∣r∣≤δ and δ(∣r∣−12δ) otherwise, where r is the residual. How do you derive ℓ′(r), show that ℓ is convex, and use this to show that the optimal constant c for the data {1,2,3,4,100} with δ=1.5 is c=3?
Next in Supervised learning: The linear SVM minimises ∑i[1−ti(w⊤xi+b)]++λ∥w∥22, where [a]+=max⁡(0,a) and ti∈{−1,+1} is the label. What changes if the penalty is replaced by λ∥w∥1, in the solution, the optimisation problem, the use of kernels and the meaning of the margin?