Unit 3 - Practice Quiz

INT395 50 Questions
0 Correct 0 Wrong 50 Left
0/50

1 What is the primary motivation behind using Ensemble Methods in machine learning?

A. To reduce the number of features in the dataset
B. To eliminate the need for hyperparameter tuning
C. To increase the computational speed of training models
D. To combine multiple weak models to improve overall performance and generalization

2 Which of the following statements best explains how Ensemble methods reduce error according to the bias-variance decomposition?

A. Bagging primarily reduces variance, while Boosting primarily reduces bias.
B. They always reduce bias without affecting variance.
C. They always reduce variance without affecting bias.
D. Bagging primarily reduces bias, while Boosting primarily reduces variance.

3 In the context of ensemble learning, what is a Weak Learner?

A. A model that has 0% training error
B. A model that performs slightly better than random guessing
C. A model that overfits the data significantly
D. A model that has too many parameters

4 What does Bagging stand for?

A. Bootstrap Aggregating
B. Basic Aggregating
C. Backward Aggregating
D. Binary Aggregating

5 Which statistical technique involves sampling data subsets with replacement?

A. Cross-Validation
B. Bootstrapping
C. Stratification
D. Jackknife

6 In a Random Forest, which two randomization techniques are combined?

A. L1 and L2 regularization
B. Grid Search and Random Search
C. Bootstrap sampling and random feature selection
D. Boosting and Bagging

7 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)?

A.
B.
C.
D.

8 Which of the following is true regarding the parallelization of Bagging and Boosting?

A. Both Bagging and Boosting can be easily parallelized.
B. Boosting is easy to parallelize, whereas Bagging is inherently sequential.
C. Neither can be parallelized.
D. Bagging is easy to parallelize, whereas Boosting is inherently sequential.

9 In AdaBoost, how are the weights of training instances updated after each iteration?

A. Correctly classified instances are given higher weights.
B. Weights are kept constant throughout training.
C. Misclassified instances are given higher weights.
D. Weights are assigned randomly.

10 What is the main difference between AdaBoost and Gradient Boosting?

A. AdaBoost minimizes the loss function using gradient descent, while Gradient Boosting uses weighted voting.
B. AdaBoost cannot be used for regression, while Gradient Boosting can.
C. AdaBoost changes sample weights, while Gradient Boosting fits the new predictor to the residual errors of the previous predictor.
D. There is no difference; they are synonyms.

11 In the context of Stacking, what is a Meta-Learner?

A. The first layer of base models
B. A specific type of Deep Neural Network
C. A model that learns how to combine the predictions of the base models
D. A model used for hyperparameter tuning

12 Which ensemble method is mathematically represented by , where is the learning rate?

A. Hard Voting
B. Stacking
C. Gradient Boosting
D. Random Forest

13 What is the primary risk when using Boosting with a large number of iterations (trees)?

A. Vanishing gradients
B. High bias
C. Overfitting
D. Underfitting

14 What is Hard Voting in ensemble classifiers?

A. Weighting votes based on classifier confidence
B. Using a meta-model to decide the vote
C. Averaging the probabilities of all classifiers
D. Taking the majority class prediction as the final output

15 What is Soft Voting?

A. Predicting the class with the most votes
B. Using a soft-margin SVM as the ensemble
C. Predicting the class with the highest summed predicted probability across classifiers
D. Randomly selecting a classifier's output

16 Why is diversity important in an ensemble?

A. It ensures all models are identical.
B. It increases the bias of the ensemble.
C. It allows models to make independent errors, which cancel out when aggregated.
D. It simplifies the hyperparameter tuning process.

17 Which of the following is NOT a Hyperparameter?

A. The depth of a decision tree
B. The number of neighbors () in KNN
C. The weights learned by a linear regression model
D. The learning rate in Gradient Descent

18 What is the primary purpose of Hyperparameter Tuning?

A. To select the optimal configuration for the learning algorithm to maximize performance
B. To train the model parameters like weights and biases
C. To visualize the results
D. To clean the dataset

19 How does Grid Search work?

A. It uses gradient descent to find optimal hyperparameters.
B. It randomly samples hyperparameters from a distribution.
C. It manually asks the user to input values during training.
D. It exhaustively tries every combination of a specified list of values for hyperparameters.

20 What is the major drawback of Grid Search?

A. It does not find the optimal parameters.
B. It suffers from the Curse of Dimensionality (computationally expensive with many parameters).
C. It only works for Decision Trees.
D. It is difficult to implement.

21 How does Random Search differ from Grid Search?

A. It is always slower than Grid Search.
B. It checks more combinations than Grid Search.
C. It guarantees finding the global optimum.
D. It samples a fixed number of parameter settings from specified distributions.

22 According to Bergstra and Bengio, why is Random Search often more efficient than Grid Search?

A. Because usually only a few hyperparameters are actually important for model performance.
B. Because random numbers are faster to generate.
C. Because Grid Search introduces bias.
D. Because Random Search uses deep learning.

23 What happens if we tune hyperparameters on the Test Set?

A. Nothing; this is standard practice.
B. The training time decreases.
C. Information leakage occurs, leading to an optimistic bias in performance estimation.
D. The model will generalize better.

24 Which technique is commonly used alongside Grid Search to evaluate the performance of each parameter combination?

A. K-Fold Cross-Validation
B. Standardization
C. Clustering
D. Principal Component Analysis

25 In a Bagging classifier, if the base models are unstable (e.g., fully grown Decision Trees), what is the expected outcome?

A. The ensemble will significantly reduce variance and improve accuracy.
B. The ensemble will increase bias significantly.
C. Bagging cannot be used with unstable models.
D. The ensemble will perform worse than a single model.

26 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?

A.
B.
C.
D.

27 What is Stacking usually vulnerable to if not implemented correctly with cross-validation?

A. Data leakage / Overfitting on the training data
B. Convergence failure
C. Underfitting
D. High bias

28 In Gradient Boosting, what is the role of the Learning Rate (shrinkage)?

A. It sets the random seed.
B. It controls the size of the tree.
C. It determines the number of features to select.
D. It scales the contribution of each tree; lower values require more trees but improve generalization.

29 Which of the following ensemble methods uses Decision Stumps as the default base estimator?

A. Random Forest
B. AdaBoost
C. Stacking
D. Bagging

30 What is the key difference between Stacking and Blending?

A. Blending is an older name for Bagging.
B. Stacking uses regression; Blending uses classification.
C. Stacking is parallel; Blending is sequential.
D. Stacking typically uses cross-validated predictions for the meta-learner; Blending uses a hold-out validation set.

31 When performing hyperparameter tuning for a Decision Tree, which parameter typically controls overfitting?

A. Criterion (Gini/Entropy)
B. Splitter (Best/Random)
C. Random State
D. Max Depth

32 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?

A. Bayes Theorem
B. Condorcet's Jury Theorem
C. No Free Lunch Theorem
D. Central Limit Theorem

33 In Random Forest, increasing the number of trees () typically:

A. Makes the model faster to train.
B. Increases the bias significantly.
C. Causes overfitting.
D. Decreases the variance up to a point without significantly increasing overfitting.

34 Which method is best suited if you have high-variance models (e.g., unpruned decision trees)?

A. Logistic Regression
B. Linear Regression
C. Bagging
D. Boosting

35 Which method is best suited if you have high-bias models (e.g., shallow trees)?

A. Boosting
B. Naive Bayes
C. Clustering
D. Bagging

36 What is the OOB (Out-Of-Bag) Error used for?

A. To calculate the gradient in boosting.
B. To stop the training early.
C. To estimate the generalization error of a Bagging ensemble without needing a separate validation set.
D. To select features in Grid Search.

37 In the context of hyperparameter tuning, what is a continuous hyperparameter?

A. Number of trees
B. Number of features
C. Learning rate ()
D. Depth of a tree

38 Why might one choose XGBoost over standard Gradient Boosting?

A. XGBoost does not support regression.
B. XGBoost is slower.
C. XGBoost is a bagging technique.
D. XGBoost includes regularization (L1/L2) and is optimized for speed/scalability.

39 What is the Base Estimator in a heterogeneous Stacking ensemble?

A. It must be a Decision Tree.
B. It can be any supervised learning algorithm (SVM, KNN, Tree, etc.).
C. It must be the same algorithm with different hyperparameters.
D. It must be a Neural Network.

40 Which search strategy uses probability to choose the next set of hyperparameters based on past results (e.g., using Gaussian Processes)?

A. Exhaustive Search
B. Random Search
C. Grid Search
D. Bayesian Optimization

41 In Grid Search, if the optimal value lies between two grid points, the method will:

A. Switch to Random Search.
B. Automatically interpolate to find it.
C. Fail.
D. Select the closest defined grid point.

42 Which of the following is an advantage of Ensemble Methods?

A. Compactness (small model size).
B. Low training time.
C. Interpretability (easy to explain distinct rules).
D. Robustness and Stability.

43 In a Voting Classifier, what requirement must be met to use Soft Voting?

A. There must be an odd number of classifiers.
B. The base classifiers must support the predict_proba method.
C. The data must be linearly separable.
D. The base classifiers must be Decision Trees.

44 When defining a parameter grid for SVM, which parameters are commonly tuned?

A. Learning rate and momentum
B. and
C. and distance metric
D. and (Gamma)

45 What is the concept of Feature Subsampling in Gradient Boosting?

A. Using only a random fraction of features at each split or tree construction to reduce variance.
B. Removing features that are not important.
C. Using PCA before training.
D. Manually selecting features.

46 A Random Forest with features total. For classification, what is the recommended number of features to search at each split?

A.
B.
C.
D.

47 Why is Accuracy sometimes a poor metric to optimize during hyperparameter tuning?

A. In imbalanced datasets, it can be misleading (e.g., predicting the majority class exclusively).
B. It is not differentiable.
C. It is computationally expensive to calculate.
D. Grid search does not support accuracy.

48 In Stacking, the Level-0 models are:

A. The base models trained on the original dataset.
B. The final output layer.
C. The models used for feature selection.
D. The meta-learners.

49 Which component of the error does Random Forest specifically aim to keep low compared to a single Decision Tree?

A. Computation time
B. Bias
C. Noise
D. Variance

50 When using Random Search, if you increase the number of iterations:

A. The probability of finding a near-optimal combination increases.
B. The probability of finding the optimal parameters decreases.
C. The computational cost decreases.
D. The search space shrinks.