Practice
1. In the context of monitoring ML models in production, which of the following best describes data drift?
easy
Solution
Step 1: Define data drift
Data drift refers to changes in the statistical properties of input data over time.Step 2: Eliminate wrong options
A sudden drop in model accuracy due to a bug in the code. describes a bug, not data drift. An increase in the model's training time due to larger datasets. is about computational resources, not data properties. A decrease in the model's interpretability over time. is unrelated to data drift.Final Answer:
Option C -> Option CQuick Check:
Data drift = change in data stats [OK]
Hint: Data drift = change in data stats [OK]
Common Mistakes:
2. In the context of fairness in machine learning, which of the following techniques is specifically designed to ensure that a model's predictions are equally accurate across different demographic groups?
easy
Solution
Step 1: Identify the technique focused on fairness.
Adversarial debiasing is specifically designed to reduce bias by ensuring equal accuracy across groups.Step 2: Eliminate wrong options.
Data augmentation (A) is for increasing data diversity, cross-validation (C) is for model validation, and gradient boosting (D) is for improving model accuracy, not fairness.Final Answer:
Option B -> Option BQuick Check:
Adversarial debiasing ensures fairness across groups. [OK]
Hint: Adversarial debiasing ensures fairness across groups. [OK]
Common Mistakes:
3. In the context of statistical significance testing in ML, which of the following best describes a p-value?
easy
Solution
Step 1: Understand p-value definition
A p-value is the probability of observing the data, or something more extreme, given that the null hypothesis is true.Step 2: Eliminate wrong options
The probability that the null hypothesis is true. is incorrect because p-value is not the probability that the null hypothesis is true. The probability of the alternative hypothesis being true. is incorrect because it does not relate to the alternative hypothesis. The probability of making a Type I error. is incorrect because it confuses p-value with Type I error probability.Final Answer:
Option A -> Option AQuick Check:
P-value is about data given null hypothesis [OK]
Hint: P-value is about data given null hypothesis [OK]
Common Mistakes:
4. A neural network model is not improving beyond a certain accuracy. What is the most likely cause?
medium
Solution
Step 1: Analyze the symptom
If a model's accuracy plateaus, it often indicates that the model has reached its capacity to learn from the data.Step 2: Eliminate wrong options
Options A and B would show different symptoms like oscillating loss or high training error. The dataset is too small would likely cause overfitting, not a plateau.Final Answer:
Option A -> Option AQuick Check:
Plateau = model capacity limit [OK]
Hint: Plateau = model capacity limit [OK]
Common Mistakes:
5. When comparing two models using statistical significance, which approach is more appropriate if you have a small sample size?
medium
Solution
Step 1: Consider sample size constraints
With small sample sizes, non-parametric tests are more reliable as they do not assume normal distribution.Step 2: Eliminate inappropriate tests
Use a t-test assuming equal variances. assumes equal variances which may not hold. Use a z-test assuming normal distribution. assumes normal distribution, which is unreliable with small samples. Use a chi-squared test for independence. is for categorical data, not model comparison.Final Answer:
Option B -> Option BQuick Check:
Small samples? Use non-parametric tests [OK]
Hint: Small samples? Use non-parametric tests [OK]
Common Mistakes:
