Chance a Five-Unit Inspection Catches a Defective Vendor Lot

Last updated: November 29, 2026

Quick Overview

An Amazon inbound dock receives a lot of 50 units from a vendor, 4 of which are defective. Quality control inspects 5 units at random. What is the probability the inspection finds at least one defect, and how many units should be inspected to catch a bad lot 90% of the time?

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

0

0

0 solved


An Amazon inbound dock receives a lot of 50 units from a vendor, 4 of which are defective. Quality control inspects 5 units at random. What is the probability the inspection finds at least one defect, and how many units should be inspected to catch a bad lot 90% of the time?

A combinatorics question in the style of an Amazon phone screen for analysts and Data Scientists in Vendor Quality or Inbound Operations. The interviewer checks that you pick sampling without replacement, compute a hypergeometric probability, and turn it into a sampling plan.

What the Interviewer Expects
  • Uses the hypergeometric distribution (sampling without replacement)
  • Computes via the complement and simplifies the binomial coefficients
  • Compares with the binomial approximation
  • Sizes the sample for a target detection rate
  • Explains when the binomial approximation is fine
Key Topics to Cover
hypergeometric distribution
combinations
complement rule
acceptance sampling
binomial approximation
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
  • How many inspected units give 90% detection?
  • How does the answer change for a lot of 5,000 with 8% defects?
  • What is the expected number of defects found in the sample?
  • How would you set an acceptance rule that tolerates one defect?
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

Lot size 50, 4 defective, sample 5 without replacement. Want P(at least 1 defective in sample)P(\text{at least 1 defective in sample})....

Approach

Complement: the sample has zero defects only if all 5 come from the 46 good units. P(0)=(465)/(505)P(0) = \binom{46}{5} / \binom{50}{5}....


Submit Your Answer
Markdown supported