Question 5Medium
For a heavily imbalanced problem, which curve is often more informative than ROC?
- Learning-rate curve
- Elbow curve
- Precision-recall curve
- Loss curve on training data only
Answer: C. Precision-recall curve
Explanation
ROC can look optimistic when negatives dominate; PR focuses on the positive class.
Step-by-step solution
- ROC uses FPR, whose denominator is the huge number of negatives.
- Many false positives still give a tiny FPR, so ROC looks rosy.
- Precision reflects false positives against the few true positives, so the PR curve is more revealing.
Why the other options are wrong
- A. Learning-rate curves are about training, not classifier quality.
- B. Elbow curves choose k in clustering.
- D. Training-loss curves do not show test-time trade-offs.
Question 9Hard
Hyperparameters are tuned with grid search using the test set. What is the problem?
- The test score is biased
- Grid search cannot use the test set
- There is no problem
- It makes training slower only
Answer: A. The test score is biased
Explanation
Tune on validation data or cross-validation and keep the test set for the final check.
Step-by-step solution
- Grid search picks the setting that scores best on the data it is given.
- If that data is the test set, the chosen model is fitted to the test set.
- Its test score is then optimistically biased.
Why the other options are wrong
- B. Technically grid search can use any data; the problem is bias.
- C. Tuning on test data inflates the score.
- D. Speed is not the issue.
Question 10Hard
Raising a classifier's decision threshold from 0.5 to 0.8 usually:
- Lowers both
- Raises both precision and recall
- Has no effect
- Raises precision and lowers recall
Answer: D. Raises precision and lowers recall
Explanation
Fewer, more confident positives mean fewer false positives but more missed positives.
Step-by-step solution
- A higher threshold means fewer items are predicted positive.
- Those that remain are the most confident, so precision usually rises.
- More true positives fall below the threshold, so recall falls.
Why the other options are wrong
- A. Precision usually rises; only recall falls.
- B. Precision and recall trade off as the threshold moves.
- C. The threshold directly changes predictions.
Tip: Threshold up: precision up, recall down.