CS FundamentalsVery hardProduct company interview · GATE level

Two inspectors review the same document independently. Inspector 1 finds 30 defects, inspector 2 finds 24, and 12 defects are found by both. Using the capture-recapture (Lincoln-Petersen) estimate, how many defects does the document probably contain, and how many are still undiscovered?

  1. A. About 60 in total; about 18 undiscovered
  2. B. About 60 in total; about 6 undiscovered
  3. C. About 42 in total; none undiscovered
  4. D. About 54 in total; about 12 undiscovered

Correct answer: A. About 60 in total; about 18 undiscovered

If inspector 2 caught 12 of inspector 1's 30 defects (40%), inspector 2 is assumed to catch about 40% of all defects, so the total N = 30 x 24 / 12 = 60. Distinct defects found = 30 + 24 - 12 = 42, so about 18 remain. 42 assumes the two inspectors together found everything; 6 subtracts the sum 54 instead of the union 42.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic