Practice
1. A company implemented an ML model to predict customer churn but found that the model's predictions were not improving business outcomes. What is the most likely root cause?
medium
Solution
Step 1: Identify the mismatch
If the model's predictions are not improving business outcomes, it is likely that the business problem was not correctly translated into an ML problem.Step 2: Eliminate wrong options
The model is overfitting the training data is incorrect because overfitting would affect prediction accuracy, not business alignment. The model's hyperparameters were not optimized is incorrect because hyperparameter tuning affects model performance, not problem alignment. The dataset used was too small is incorrect because data size affects model accuracy, not problem framing.Final Answer:
Option B -> Option BQuick Check:
Align ML problem with business goals for impact. [OK]
Hint: Align ML problem with business goals for impact. [OK]
Common Mistakes:
2. You are tasked with designing a fraud detection system. How would you ensure that your model does not suffer from data leakage?
hard
Solution
Step 1: Identify potential leakage sources in fraud detection
Using future-derived features can cause leakage.Step 2: Evaluate each option
Use cross-validation with shuffling to ensure robust performance. might introduce leakage if shuffling is inappropriate, Include all available transaction data up to the current date in the training set. risks future data leakage, Use a single train-test split to simplify the evaluation process. is simplistic and risky.Final Answer:
Option A -> Option AQuick Check:
Avoid future-derived features in training [OK]
Hint: Avoid future-derived features in training [OK]
Common Mistakes:
3. You are tasked with designing a segmentation system for autonomous vehicles that must handle both object detection and segmentation efficiently. Which approach would you choose and why?
hard
Solution
Step 1: Determine system requirements
Autonomous vehicles need both object detection and detailed scene understanding.Step 2: Evaluate segmentation approaches
Semantic lacks instance detail, instance lacks semantic context, object detection is not segmentation.Final Answer:
Option B -> Option BQuick Check:
Panoptic = Comprehensive scene understanding [OK]
Hint: Panoptic = Comprehensive scene understanding [OK]
Common Mistakes:
4. In a real-time system where predictions need to be made quickly, which approach to linear regression is more suitable and why?
hard
Solution
Step 1: Consider real-time constraints
Stochastic Gradient Descent (SGD) updates weights after each data point, allowing for faster, more frequent updates suitable for real-time systems.Step 2: Eliminate wrong options
Batch Gradient Descent (A) is too slow for real-time, Least Squares (C) is not iterative, and Mini-batch (D) is a compromise but not as fast as SGD.Final Answer:
Option A -> Option AQuick Check:
SGD updates weights after each data point. [OK]
Hint: SGD updates weights after each data point. [OK]
Common Mistakes:
5. You need to design a model for a task involving both spatial and temporal hierarchies. Which approach is most suitable?
hard
Solution
Step 1: Identify task requirements
The task requires capturing both spatial and temporal hierarchies, which suggests a hybrid approach.Step 2: Eliminate wrong options
Use a shallow CNN for spatial features and a separate RNN for temporal features. is incorrect because separate models may not capture interactions. Use a shallow RNN for temporal features and ignore spatial features. is incorrect because it ignores spatial features. Use a deep CNN for spatial features and ignore temporal features. is incorrect because it ignores temporal features.Final Answer:
Option A -> Option AQuick Check:
Hybrid models for spatial-temporal tasks. [OK]
Hint: Hybrid models for spatial-temporal tasks. [OK]
Common Mistakes:
