Ensemble Methods Questions with Answers

6 practice questions on Ensemble Methods (Machine Learning) with answers and step-by-step solutions. Try 6 samples below, then practise all 6 free in the AptiNest app.

Sample questions

Question 1Easy

Random Forest builds many decision trees and combines them by

  1. Picking the deepest tree
  2. Training each tree on the errors left by the previous tree in sequence
  3. Using only the best-scoring feature
  4. Majority vote (classification) or averaging (regression)

Answer: D. Majority vote (classification) or averaging (regression)

Explanation

The forest averages many decorrelated trees, which lowers variance compared with a single deep tree.

Step-by-step solution

  1. Train trees on bootstrap samples.
  2. Use random feature subsets at splits.
  3. Aggregate by vote or mean.

Why the other options are wrong

  • A. Depth is not the selection rule; all trees vote.
  • B. That is boosting, not random forest.
  • C. Each tree uses random subsets of features, not a single best one.

Question 2Medium

A voting ensemble of three independent classifiers each has 70% accuracy and makes errors independently. Majority-vote accuracy is closest to

  1. 70%
  2. 90%
  3. 78%
  4. 100%

Answer: C. 78%

Explanation

P(at least 2 correct) = 3(0.7^2)(0.3) + 0.7^3 = 0.441 + 0.343 = 0.784.

Step-by-step solution

  1. Exactly 2 correct: 3*0.49*0.3 = 0.441.
  2. All 3 correct: 0.343.
  3. Sum = 0.784.

Why the other options are wrong

  • A. Voting helps when errors are independent.
  • B. The gain is limited; it is not 100 - 3x10.
  • D. Majority voting cannot guarantee perfection.

Question 3Medium

Which pair is correctly matched?

  1. Bagging - parallel models; Boosting - sequential models
  2. Bagging - sequential; Boosting - parallel
  3. Both are strictly sequential, each model depending on the previous one
  4. Both train one model only

Answer: A. Bagging - parallel models; Boosting - sequential models

Explanation

Bagging trains independent models on resampled data; boosting trains models one after another, each depending on the last.

Step-by-step solution

  1. Bagging: bootstrap, independent.
  2. Boosting: reweight errors, dependent.
  3. So bagging parallel, boosting sequential.

Why the other options are wrong

  • B. Reversed; bagging models are independent.
  • C. Bagging has no dependency between models.
  • D. Both are ensembles of many models.

Question 4Medium

Bagging mainly reduces which source of error?

  1. Bias
  2. Variance
  3. Irreducible noise
  4. Labelling cost

Answer: B. Variance

Explanation

Averaging many models trained on bootstrap samples smooths out their individual fluctuations, cutting variance.

Step-by-step solution

  1. Each model overfits differently.
  2. Averaging cancels the random parts.
  3. Variance drops, bias stays roughly the same.

Why the other options are wrong

  • A. Bagging averages models; it does not fix systematic underfitting.
  • C. Noise in the data cannot be removed by any model.
  • D. That is a data collection concern, not model error.

Question 5Medium

Boosting algorithms such as AdaBoost and gradient boosting train their weak learners

  1. Independently in parallel on identical copies of the full dataset
  2. Only once, then discard them
  3. Sequentially, each focusing on mistakes of the earlier ones
  4. On disjoint random features only

Answer: C. Sequentially, each focusing on mistakes of the earlier ones

Explanation

Each new learner is fit to the errors (residuals or re-weighted samples) of the ensemble so far.

Step-by-step solution

  1. Fit first weak learner.
  2. Increase weight or residual on mistakes.
  3. Add next learner to fix them.

Why the other options are wrong

  • A. That is bagging-style parallelism.
  • B. Boosting keeps all weak learners in the final model.
  • D. That is random subspace sampling, not boosting.

Question 6Hard

In a Random Forest, what is the out-of-bag (OOB) sample for a tree?

  1. The test set held out before training
  2. Rows with missing values dropped
  3. About 63% of the data that the tree actually trains on, the in-bag part
  4. The training rows not selected in that tree's bootstrap sample, roughly 37% of the data

Answer: D. The training rows not selected in that tree's bootstrap sample, roughly 37% of the data

Explanation

A bootstrap sample of size n leaves out about (1-1/n)^n = 36.8% of the rows, which give a free validation estimate.

Step-by-step solution

  1. Sample n rows with replacement.
  2. P(row never picked) = (1-1/n)^n -> 0.368.
  3. Those rows evaluate the tree.

Why the other options are wrong

  • A. OOB is drawn from the training set itself.
  • B. Missing values have nothing to do with OOB.
  • C. 63% is the in-bag part; OOB is the remaining 37%.

Practise all 6 questions free

The full question bank with timed practice, progress tracking and Vidya, your AI tutor. Free, no ads.

Open this topic in the app →

Related topics

See all Machine Learning topics · All topics