Question 1Easy
Random Forest builds many decision trees and combines them by
- Picking the deepest tree
- Training each tree on the errors left by the previous tree in sequence
- Using only the best-scoring feature
- 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
- Train trees on bootstrap samples.
- Use random feature subsets at splits.
- 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 3Medium
Which pair is correctly matched?
- Bagging - parallel models; Boosting - sequential models
- Bagging - sequential; Boosting - parallel
- Both are strictly sequential, each model depending on the previous one
- 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
- Bagging: bootstrap, independent.
- Boosting: reweight errors, dependent.
- 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 5Medium
Boosting algorithms such as AdaBoost and gradient boosting train their weak learners
- Independently in parallel on identical copies of the full dataset
- Only once, then discard them
- Sequentially, each focusing on mistakes of the earlier ones
- 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
- Fit first weak learner.
- Increase weight or residual on mistakes.
- 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?
- The test set held out before training
- Rows with missing values dropped
- About 63% of the data that the tree actually trains on, the in-bag part
- 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
- Sample n rows with replacement.
- P(row never picked) = (1-1/n)^n -> 0.368.
- 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%.