Practice
1. In a dataset with missing values in a numerical feature, which imputation strategy is most appropriate when the data is normally distributed?
easy
Solution
Step 1: Identify the distribution of the data
For normally distributed data, the mean is the best measure of central tendency.Step 2: Eliminate wrong options
Median is better for skewed data, mode for categorical data, and zero imputation can distort the distribution.Final Answer:
Option D -> Option DQuick Check:
Mean for normal distribution [OK]
Hint: Mean for normal distribution [OK]
Common Mistakes:
2. In which scenario is supervised learning most appropriate?
easy
Solution
Step 1: Identify the scenario.
Supervised learning is used when labeled data is available and the goal is to predict outcomes.Step 2: Eliminate wrong options.
When you want to cluster similar data points without labels. describes unsupervised learning (clustering), When you need to explore an environment to maximize rewards. describes reinforcement learning (exploration and rewards), and When you want to reduce dimensionality of data without labels. describes unsupervised learning (dimensionality reduction).Final Answer:
Option B -> Option BQuick Check:
Labeled data -> Supervised learning [OK]
Hint: Labeled data -> Supervised learning [OK]
Common Mistakes:
3. When deciding between Platt Scaling and Isotonic Regression for calibrating a model, which scenario favors Isotonic Regression?
medium
Solution
Step 1: Understand the strengths of Isotonic Regression.
Isotonic Regression is non-parametric and assumes monotonicity, making it suitable for small datasets where this assumption holds.Step 2: Evaluate each scenario.
Isotonic Regression is not ideal for overfitting (A) or binary outputs (B), and is less efficient than Platt Scaling (D).Final Answer:
Option A -> Option AQuick Check:
Isotonic = small data, monotonicity. [OK]
Hint: Isotonic = small data, monotonicity. [OK]
Common Mistakes:
4. An SVM model with a Gaussian kernel is not performing well on the test set. What is a likely cause?
medium
Solution
Step 1: Analyze the effect of regularization on SVM
A low regularization parameter allows more flexibility, leading to overfitting.Step 2: Eliminate wrong options
The model is overfitting due to a high regularization parameter is incorrect because a high regularization parameter reduces overfitting. The model is underfitting due to a low regularization parameter is incorrect because a low regularization parameter does not cause underfitting. The model is underfitting due to a high regularization parameter is incorrect because a high regularization parameter causes underfitting, not overfitting.Final Answer:
Option D -> Option DQuick Check:
Low regularization can lead to overfitting [OK]
Hint: Low regularization can lead to overfitting [OK]
Common Mistakes:
5. When deciding between using a pretrained model or training from scratch for a specific task, which scenario favors training from scratch?
medium
Solution
Step 1: Identify when pretraining is less beneficial.
Pretraining is less useful when no relevant pretrained models exist.Step 2: Eliminate wrong options.
The task is similar to the one the pretrained model was trained on. favors using pretrained models due to task similarity. The task has a very large and diverse dataset available. also favors pretrained models due to data availability. The task requires real-time inference with minimal latency. is unrelated to the choice between pretraining and training from scratch.Final Answer:
Option A -> Option AQuick Check:
No pretrained model? Train from scratch. [check]
Hint: No pretrained model? Train from scratch. [check]
Common Mistakes:
