Chance an Inspection Sample Catches a Defective Pill Bottle

Last updated: November 29, 2026

Quick Overview

A CVS distribution center receives a lot where each bottle is independently mislabeled with probability 1%. If quality control inspects 20 bottles, what is the probability of catching at least one mislabeled bottle, and how many must be inspected to have a 95% chance?

CVS Health
Statistics & Math
Data Scientist
CVS Health
November 29, 2026
Data Scientist
Phone Screen
Statistics & Math
Easy

0

0

0 solved


A CVS distribution center receives a lot where each bottle is independently mislabeled with probability 1%. If quality control inspects 20 bottles, what is the probability of catching at least one mislabeled bottle, and how many must be inspected to have a 95% chance?

A quick probability warm-up set in CVS supply chain quality control. The interviewer checks the complement rule, comfort with logs, and whether the candidate questions the independence assumption.

What the Interviewer Expects
  • Uses the complement rule correctly
  • Computes 1 minus 0.99 to the 20th
  • Solves for n with logarithms and rounds up
  • Approximates mentally with the exponential
  • Questions independence when defects cluster by batch
Key Topics to Cover
complement rule
binomial
logarithms
sampling inspection
How to Approach This
  1. Define your hypotheses (H0 and H1) clearly before performing any test.
  2. Calculate required sample size BEFORE running an experiment, using power analysis.
  3. Remember the Central Limit Theorem: sample means become approximately normal with large n.
  4. Watch for Simpson's paradox. Always segment data by key dimensions.
  5. Distinguish between statistical significance and practical significance.
Possible Follow-up Questions
  • What if the lot has exactly 500 bottles and 5 are mislabeled (sampling without replacement)?
  • How does the answer change if defects come in runs from one machine?
  • What is the expected number of mislabeled bottles found in 20?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Browse Statistics Questions
Sample Answer
Clarify

Each bottle is mislabeled independently with p=0.01p = 0.01. Sample of n=20n = 20, assume the lot is large so sampling is effectively with replacement....

Approach

"At least one" problems are easiest through the complement: none defective. Then invert the formula to solve for the sample size....


Submit Your Answer
Markdown supported