Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.
You're offline
Unit 3 MCQsEnsemble Methods and Hyperparameter Tuning
What is the primary motivation behind using Ensemble Methods in machine learning?
Not quite. Try another option.
Answer: To combine multiple weak models to improve overall performance and generalization
Ensemble methods combine predictions from multiple base estimators to improve generalizability and robustness over a single estimator.
Question 2 of 50
Which of the following statements best explains how Ensemble methods reduce error according to the bias-variance decomposition?
Not quite. Try another option.
Answer: Bagging primarily reduces variance, while Boosting primarily reduces bias.
Bagging aggregates high-variance low-bias models (like deep trees) to reduce variance. Boosting aggregates high-bias low-variance models (like stumps) to reduce bias.
Question 3 of 50
In the context of ensemble learning, what is a Weak Learner?
Not quite. Try another option.
Answer: A model that performs slightly better than random guessing
A weak learner is a classifier that is only slightly correlated with the true classification (better than random guessing), which can be boosted into a strong learner.
Question 4 of 50
What does Bagging stand for?
Not quite. Try another option.
Answer: Bootstrap Aggregating
Bagging stands for Bootstrap aggregating.
Question 5 of 50
Which statistical technique involves sampling data subsets with replacement?
Not quite. Try another option.
Answer: Bootstrapping
Bootstrapping is a resampling technique used to estimate statistics on a population by sampling a dataset with replacement.
Question 6 of 50
In a Random Forest, which two randomization techniques are combined?
Not quite. Try another option.
Answer: Bootstrap sampling and random feature selection
Random Forest uses Bagging (Bootstrap sampling) for rows and random feature selection for split candidates at each node to decorrelate trees.
Question 7 of 50
If you are training a Bagging ensemble with samples, approximately what fraction of samples are left out of a single bootstrap sample (Out-Of-Bag)?
Not quite. Try another option.
Answer:
The probability of a sample not being picked is . As , this converges to .
Question 8 of 50
Which of the following is true regarding the parallelization of Bagging and Boosting?
Not quite. Try another option.
Answer: Bagging is easy to parallelize, whereas Boosting is inherently sequential.
In Bagging, trees are independent and can be trained simultaneously. In Boosting, each tree depends on the errors of the previous tree.
Question 9 of 50
In AdaBoost, how are the weights of training instances updated after each iteration?
Not quite. Try another option.
Answer: Misclassified instances are given higher weights.
AdaBoost increases the weights of misclassified samples so the next weak learner focuses more on the 'hard' cases.
Question 10 of 50
What is the main difference between AdaBoost and Gradient Boosting?
Not quite. Try another option.
Answer: AdaBoost changes sample weights, while Gradient Boosting fits the new predictor to the residual errors of the previous predictor.
Gradient Boosting generalizes boosting by training on residuals (gradients of the loss function), whereas AdaBoost specifically reweights samples.
Question 11 of 50
In the context of Stacking, what is a Meta-Learner?
Not quite. Try another option.
Answer: A model that learns how to combine the predictions of the base models
Stacking involves a second-level model (meta-learner) that takes the outputs of the first-level models as input features to make the final prediction.
Question 12 of 50
Which ensemble method is mathematically represented by , where is the learning rate?
Not quite. Try another option.
Answer: Gradient Boosting
This equation represents additive modeling in Gradient Boosting, where a new weak learner is added to the previous ensemble prediction scaled by a learning rate.
Question 13 of 50
What is the primary risk when using Boosting with a large number of iterations (trees)?
Not quite. Try another option.
Answer: Overfitting
Because Boosting focuses on reducing bias and correcting errors, running it for too many iterations can lead to overfitting the training noise.
Question 14 of 50
What is Hard Voting in ensemble classifiers?
Not quite. Try another option.
Answer: Taking the majority class prediction as the final output
Hard voting predicts the class that receives the largest number of votes from the individual classifiers.
Question 15 of 50
What is Soft Voting?
Not quite. Try another option.
Answer: Predicting the class with the highest summed predicted probability across classifiers
Soft voting averages the class probabilities (confidence) predicted by the base estimators and selects the class with the highest average probability.
Question 16 of 50
Why is diversity important in an ensemble?
Not quite. Try another option.
Answer: It allows models to make independent errors, which cancel out when aggregated.
If all models make the same errors, averaging them yields no benefit. Diversity ensures errors are uncorrelated, reducing overall variance.
Question 17 of 50
Which of the following is NOT a Hyperparameter?
Not quite. Try another option.
Answer: The weights learned by a linear regression model
Weights are model parameters learned during training. Hyperparameters are configuration settings external to the model defined before training.
Question 18 of 50
What is the primary purpose of Hyperparameter Tuning?
Not quite. Try another option.
Answer: To select the optimal configuration for the learning algorithm to maximize performance
Hyperparameter tuning optimizes the settings that govern the learning process to prevent overfitting/underfitting and improve accuracy.
Question 19 of 50
How does Grid Search work?
Not quite. Try another option.
Answer: It exhaustively tries every combination of a specified list of values for hyperparameters.
Grid Search defines a grid of hyperparameter values and evaluates the model performance for every possible combination in that grid.
Question 20 of 50
What is the major drawback of Grid Search?
Not quite. Try another option.
Answer: It suffers from the Curse of Dimensionality (computationally expensive with many parameters).
The number of combinations grows exponentially with the number of hyperparameters, making Grid Search extremely slow for high-dimensional spaces.
Question 21 of 50
How does Random Search differ from Grid Search?
Not quite. Try another option.
Answer: It samples a fixed number of parameter settings from specified distributions.
Random Search picks random combinations from the search space, which is often more efficient than Grid Search for finding good parameters in high-dimensional spaces.
Question 22 of 50
According to Bergstra and Bengio, why is Random Search often more efficient than Grid Search?
Not quite. Try another option.
Answer: Because usually only a few hyperparameters are actually important for model performance.
In high dimensions, not all parameters affect the objective function equally. Random search explores unique values for important parameters more effectively than a grid.
Question 23 of 50
What happens if we tune hyperparameters on the Test Set?
Not quite. Try another option.
Answer: Information leakage occurs, leading to an optimistic bias in performance estimation.
The test set must remain unseen. Tuning on it incorporates test data info into the model configuration, invalidating the test set as an unbiased evaluation metric.
Question 24 of 50
Which technique is commonly used alongside Grid Search to evaluate the performance of each parameter combination?
Not quite. Try another option.
Answer: K-Fold Cross-Validation
To ensure the hyperparameter performance isn't specific to one random split of data, Cross-Validation is used to average performance across multiple folds.
Question 25 of 50
In a Bagging classifier, if the base models are unstable (e.g., fully grown Decision Trees), what is the expected outcome?
Not quite. Try another option.
Answer: The ensemble will significantly reduce variance and improve accuracy.
Bagging works best with unstable, high-variance models. By averaging them, the variance is smoothed out.
Question 26 of 50
If you perform a Grid Search with: Parameter A = [1, 2, 3], Parameter B = [10, 20], and 5-fold Cross-Validation, how many total training runs are executed?
Not quite. Try another option.
Answer:
Total runs = (Number of combinations) (Number of folds). Combinations = . Total runs = .
Question 27 of 50
What is Stacking usually vulnerable to if not implemented correctly with cross-validation?
Not quite. Try another option.
Answer: Data leakage / Overfitting on the training data
If the meta-learner is trained on the same data used to train base learners (without cross-validated prediction generation), it will learn to rely on the base learners' overfitting.
Question 28 of 50
In Gradient Boosting, what is the role of the Learning Rate (shrinkage)?
Not quite. Try another option.
Answer: It scales the contribution of each tree; lower values require more trees but improve generalization.
The learning rate () scales the update: . Smaller steps lead to better convergence but require more iterations.
Question 29 of 50
Which of the following ensemble methods uses Decision Stumps as the default base estimator?
Not quite. Try another option.
Answer: AdaBoost
AdaBoost typically uses decision stumps (trees with a depth of 1) as weak learners.
Question 30 of 50
What is the key difference between Stacking and Blending?
Not quite. Try another option.
Answer: Stacking typically uses cross-validated predictions for the meta-learner; Blending uses a hold-out validation set.
Blending is a simplified version of stacking where predictions for the meta-learner are generated from a hold-out set rather than full k-fold cross-validation.
Question 31 of 50
When performing hyperparameter tuning for a Decision Tree, which parameter typically controls overfitting?
Not quite. Try another option.
Answer: Max Depth
Limiting the Max Depth prevents the tree from growing too complex and memorizing noise in the training data.
Question 32 of 50
Which theoretical theorem states that if individual classifiers are independent and better than random guessing, the ensemble accuracy approaches 1 as the number of classifiers increases?
Not quite. Try another option.
Answer: Condorcet's Jury Theorem
Condorcet's Jury Theorem provides the mathematical justification for why combining weak independent learners results in a strong learner.
Question 33 of 50
In Random Forest, increasing the number of trees () typically:
Not quite. Try another option.
Answer: Decreases the variance up to a point without significantly increasing overfitting.
Unlike Boosting, adding more trees to a Random Forest does not lead to overfitting; the error rate usually stabilizes.
Question 34 of 50
Which method is best suited if you have high-variance models (e.g., unpruned decision trees)?
Not quite. Try another option.
Answer: Bagging
Bagging reduces variance by averaging, making it ideal for high-variance base models.
Question 35 of 50
Which method is best suited if you have high-bias models (e.g., shallow trees)?
Not quite. Try another option.
Answer: Boosting
Boosting turns weak learners (high bias) into strong learners by sequentially correcting errors.
Question 36 of 50
What is the OOB (Out-Of-Bag) Error used for?
Not quite. Try another option.
Answer: To estimate the generalization error of a Bagging ensemble without needing a separate validation set.
Since ~37% of data is not seen by each tree, these samples can be used as a built-in validation set to evaluate performance.
Question 37 of 50
In the context of hyperparameter tuning, what is a continuous hyperparameter?
Not quite. Try another option.
Answer: Learning rate ()
Integer values like depth or number of trees are discrete. Learning rate is a floating-point value and is continuous.
Question 38 of 50
Why might one choose XGBoost over standard Gradient Boosting?
Not quite. Try another option.
Answer: XGBoost includes regularization (L1/L2) and is optimized for speed/scalability.
XGBoost (Extreme Gradient Boosting) is an optimized implementation that includes regularization terms in the objective function to control overfitting and supports parallel processing.
Question 39 of 50
What is the Base Estimator in a heterogeneous Stacking ensemble?
Not quite. Try another option.
Answer: It can be any supervised learning algorithm (SVM, KNN, Tree, etc.).
Stacking thrives on heterogeneity; combining different types of algorithms often yields better results than combining variations of the same algorithm.
Question 40 of 50
Which search strategy uses probability to choose the next set of hyperparameters based on past results (e.g., using Gaussian Processes)?
Not quite. Try another option.
Answer: Bayesian Optimization
Bayesian Optimization builds a probabilistic model of the function mapping hyperparameters to a target objective to select the most promising hyperparameters to evaluate next.
Question 41 of 50
In Grid Search, if the optimal value lies between two grid points, the method will:
Not quite. Try another option.
Answer: Select the closest defined grid point.
Grid Search is restricted to the specific values provided in the grid. It cannot find values that were not explicitly requested.
Question 42 of 50
Which of the following is an advantage of Ensemble Methods?
Not quite. Try another option.
Answer: Robustness and Stability.
Ensembles are generally more robust to noise and outliers than single models. However, they lose interpretability and are computationally heavier.
Question 43 of 50
In a Voting Classifier, what requirement must be met to use Soft Voting?
Not quite. Try another option.
Answer: The base classifiers must support the predict_proba method.
Soft voting relies on averaging predicted probabilities, so the underlying models must be able to output probability estimates.
Question 44 of 50
When defining a parameter grid for SVM, which parameters are commonly tuned?
Not quite. Try another option.
Answer: and (Gamma)
controls the regularization (margin hardness) and defines the influence of a single training example in RBF kernels.
Question 45 of 50
What is the concept of Feature Subsampling in Gradient Boosting?
Not quite. Try another option.
Answer: Using only a random fraction of features at each split or tree construction to reduce variance.
Similar to Random Forests, Stochastic Gradient Boosting can subsample columns (features) to decorrelate trees and reduce overfitting.
Question 46 of 50
A Random Forest with features total. For classification, what is the recommended number of features to search at each split?
Not quite. Try another option.
Answer:
A common heuristic for the number of features to consider at each split in Random Forest classification is the square root of the total features.
Question 47 of 50
Why is Accuracy sometimes a poor metric to optimize during hyperparameter tuning?
Not quite. Try another option.
Answer: In imbalanced datasets, it can be misleading (e.g., predicting the majority class exclusively).
In skewed classes, a model can achieve high accuracy by ignoring the minority class. Metrics like F1-score or AUC-ROC are often better targets for tuning.
Question 48 of 50
In Stacking, the Level-0 models are:
Not quite. Try another option.
Answer: The base models trained on the original dataset.
Level-0 refers to the base models. Level-1 refers to the meta-learner that stacks the predictions of Level-0.
Question 49 of 50
Which component of the error does Random Forest specifically aim to keep low compared to a single Decision Tree?
Not quite. Try another option.
Answer: Variance
A single deep decision tree has low bias but high variance. Random Forest averages many such trees to lower the variance while maintaining low bias.
Question 50 of 50
When using Random Search, if you increase the number of iterations:
Not quite. Try another option.
Answer: The probability of finding a near-optimal combination increases.
More iterations mean more samples from the hyperparameter space, increasing the likelihood of hitting a high-performance configuration.
That's unit 3
Answer a few questions and your score shows up here.
Nearly through. Did unit 3 of INT395 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 3 of INT395 save you a night before the exam?
Then you can help keep it free for the next batch. Ads cover part of the server bill;
the rest comes out of a student's own pocket: the domain, the storage, and keeping
the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.