Qm
BrainteasersJane StreetOptiver

The king who wants to test everyone

A kingdom has one million people, and one in every 500 has a certain disease. A test for the disease has a false-negative rate of 1 per cent (a sick person tests negative 1 time in 100) and a false-positive rate of 2 per cent (a healthy person tests positive 2 times in 100).

The king plans to test everyone and quarantine every positive.

  1. How many people will test positive?
  2. Of those, what fraction actually has the disease?
Show a hint

Work with counts, not percentages. Start by splitting the million into sick and healthy, then apply the error rates to each group.

Your answer

Solving needs a free account

Answers, streaks and solutions unlock when you are signed in. Reading the question and the hint stays free.

Discussion

Sign in to join the discussion · reading is open to everyone

💡 Discussion rules

  1. No full solutions here. Hints and approaches only.
  2. Complexity, edge cases and intuition are the point.
  3. Interview experiences are welcome. Respect your NDAs.

Loading discussion…

Learn the concepts

The theory behind this question.

Related questions

After ten heads in a rowThe prosecutor's fallacyThe father who says it snowedFrom an hour to half an hourAnts on a triangle
All questions →