PROBABILITY & STATISTICS · INTERVIEW QUESTION
What is the difference between Type I and Type II errors? How do they relate to precision and recall?
🟡 intermediate · Statistical Inference
Hint: Type I = false positive, Type II = false negative. Think about the confusion matrix.
Answer
Type I and Type II errors represent the two fundamental ways a statistical test can be wrong.
Definitions
| Error | Name | What Happens | Symbol |
|---|---|---|---|
| Type I | False Positive | Reject a true | |
| Type II | False Negative | Fail to reject a false |
Power = (probability of correctly detecting a real effect).
Connection to Classification
- Precision = (related to Type I)
- Recall = (related to Type II)
Practical Trade-offs
There is a fundamental tradeoff: reducing one error type increases the other.
- Medical testing: Type II (missing disease) is worse → optimize for recall
- Spam filtering: Type I (blocking good email) may be worse → optimize for precision
- Justice system: Type I (convicting innocent) is considered worse
The threshold controls this trade-off. ROC and precision-recall curves help visualize it.
Related questions
- What is the difference between descriptive and inferential statistics?
- Explain the difference between parametric and non-parametric tests. When would you use each?
- What is the multiple comparisons problem? How do you correct for it?
- What is a confidence interval? How is it different from a credible interval?
- Explain Bayes' theorem and give an ML application.