Practice
1. In a binary classification problem where false positives are costly, which metric should be prioritized?
easy
Solution
Step 1: Identify the cost concern.
False positives are costly, so we need to minimize them.Step 2: Choose the metric that minimizes false positives.
Precision is the metric that focuses on minimizing false positives.Final Answer:
Option A -> Option AQuick Check:
Precision minimizes false positives. [OK]
Hint: Precision minimizes false positives. [OK]
Common Mistakes:
2. In which scenario is normalization preferred over standardization?
easy
Solution
Step 1: Understand the purpose of normalization.
Normalization scales the data to a range of [0, 1] and is useful when data is on different scales.Step 2: Eliminate wrong options.
When the data follows a Gaussian distribution. is incorrect because standardization is preferred for Gaussian distributions. When the data contains outliers. is incorrect because normalization is sensitive to outliers. When the model is sensitive to variance. is incorrect because standardization handles variance better.Final Answer:
Option A -> Option AQuick Check:
Normalize for non-Gaussian, different scales. [OK]
Hint: Normalize for non-Gaussian, different scales. [OK]
Common Mistakes:
3. Which regularization technique is most suitable for feature selection in a linear regression model?
easy
Solution
Step 1: Identify the purpose of feature selection.
L1 Lasso regularization can shrink some coefficients to zero, effectively selecting features.Step 2: Eliminate wrong options.
L2 Ridge does not shrink coefficients to zero. Elastic Net combines L1 and L2 but is not as direct for feature selection. Dropout is not used in linear regression.Final Answer:
Option A -> Option AQuick Check:
L1 Lasso zeros coefficients for selection. [OK]
Hint: L1 Lasso zeros coefficients for selection. [OK]
Common Mistakes:
4. In the context of Support Vector Machines, what is the primary purpose of the margin?
easy
Solution
Step 1: Understand the role of the margin
The margin in SVM is the distance between the decision boundary and the nearest data points from either class.Step 2: Eliminate wrong options
To minimize the number of support vectors is incorrect because the number of support vectors is not minimized. To ensure the model is non-linear is incorrect because the margin itself does not ensure non-linearity. To reduce the dimensionality of the data is incorrect because the margin does not reduce dimensionality.Final Answer:
Option B -> Option BQuick Check:
Margin maximizes boundary distance [OK]
Hint: Margin maximizes boundary distance [OK]
Common Mistakes:
5. How would you apply the No Free Lunch Theorem to improve a recommendation system for a new user base?
hard
Solution
Step 1: Apply the No Free Lunch Theorem
The theorem suggests no single model is best for all scenarios, so testing is essential.Step 2: Eliminate wrong options
Use the same model that worked for the previous user base. is incorrect because past success doesn't guarantee future performance. Increase the model complexity to handle diverse user preferences. is incorrect because complexity doesn't ensure better results. Rely on collaborative filtering as it works well for recommendations. is incorrect because collaborative filtering isn't universally optimal.Final Answer:
Option C -> Option CQuick Check:
Test models with new data. [OK]
Hint: Test models with new data. [OK]
Common Mistakes:
