False positive vs false negative in a spam filter and a medical test: which error costs more?

Quick Overview

Asks for concrete false positive and false negative examples in a spam filter and a medical screening test, and which error costs more in each. Tests reasoning about asymmetric error costs, precision versus recall, and how costs set a decision threshold.

False positive vs false negative in a spam filter and a medical test: which error costs more?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: easy

Interview Round: Other

Can you give a concrete example of a false positive and a false negative in a spam filter or medical test, and explain which is more costly? ```hint Name the positive class first Decide what "positive" means in each setting, then follow each kind of mistake to what actually happens to the user or patient afterward. ``` ### What a Strong Answer Covers - Correct definitions of a false positive and a false negative, with the positive class stated - A concrete example of each error for the spam filter and for the medical test - Which error costs more in each setting, with the reason tied to consequences - How the cost comparison changes with context, such as an invasive follow-up or a contagious condition - How the costs translate into a decision threshold and a choice between precision and recall ### Follow-up Questions - How would you choose the classification threshold if you could only roughly estimate the cost of each error? - A screening test is 99% sensitive and 95% specific, and 1% of the people tested have the disease. What fraction of positive results are true positives? - Can you describe a medical setting where a false positive is the more costly mistake? - How would you evaluate the spam filter offline when the two errors have very different costs?

Overview: Asks for concrete false positive and false negative examples in a spam filter and a medical screening test, and which error costs more in each. Tests reasoning about asymmetric error costs, precision versus recall, and how costs set a decision threshold.

PracHub logo
General
Nov 24, 2026
easyMachine Learning EngineerOtherMachine Learning
0
0

Can you give a concrete example of a false positive and a false negative in a spam filter or medical test, and explain which is more costly?

What a Strong Answer Covers Guidance

  • Correct definitions of a false positive and a false negative, with the positive class stated
  • A concrete example of each error for the spam filter and for the medical test
  • Which error costs more in each setting, with the reason tied to consequences
  • How the cost comparison changes with context, such as an invasive follow-up or a contagious condition
  • How the costs translate into a decision threshold and a choice between precision and recall

Follow-up Questions Guidance

  • How would you choose the classification threshold if you could only roughly estimate the cost of each error?
  • A screening test is 99% sensitive and 95% specific, and 1% of the people tested have the disease. What fraction of positive results are true positives?
  • Can you describe a medical setting where a false positive is the more costly mistake?
  • How would you evaluate the spam filter offline when the two errors have very different costs?