Quality Assurance
Sampling
Learn how businesses use statistical sampling to inspect products, control defect rates, and make data-driven accept/reject decisions using the sample proportion \( \hat{p} \).
What Is QA Sampling?
In manufacturing and services, it is impractical to inspect every single item produced. Instead, businesses select a representative subset (a sample) and use the results to judge the quality of the entire batch or lot.
Core Vocabulary
Why Sampling Matters
The Sample Proportion Formula
When sampling from a large lot, \( \hat{p} \) is an unbiased estimator of the true defect rate \( p \). As the sample size \( n \) increases, \( \hat{p} \) becomes a more precise estimate of \( p \).
Acceptance Sampling Rule
Sampling vs. 100% Inspection
| Sampling | 100% Inspection | |
|---|---|---|
| Cost | Low | High |
| Time | Fast | Slow |
| Destructive Tests | Practical | Impossible |
| Accuracy | Estimate with error | Exact count |
| Risk of Error | Producer and Consumer Risk | None (if perfect) |
Types of Sampling Plans
Producer and Consumer Risk
How to Apply: Step by Step
Example 1: Phone Charger Inspection
A shipment of 1,000 phone chargers arrives. The buyer's AQL is 2%. The sampling plan specifies: \( n = 80 \), \( c = 3 \). The inspector finds \( d = 2 \) defectives.
Example 2: LED Bulb Factory
A factory produces 5,000 LED bulbs per day. Quality control uses \( n = 200 \), \( c = 5 \). Today's sample reveals \( d = 8 \) defectives.
Example 3: Choosing Sample Size
A food company wants the margin of error for its defect rate estimate to be at most \( E = 0.02 \) (2 percentage points) at 95% confidence. Past data suggests \( p \approx 0.05 \). How large a sample is needed?
The OC Curve
The Operating Characteristic (OC) Curve shows the probability of accepting a lot as a function of the true defect rate \( p \). It is the signature of a sampling plan.
Common Mistakes
Summary of Key Concepts
| Concept | Symbol | Meaning |
|---|---|---|
| Lot size | \( N \) | Total items in the batch |
| Sample size | \( n \) | Items drawn for inspection |
| Acceptance number | \( c \) | Max defectives to accept lot |
| Defectives found | \( d \) | Observed defective count |
| Sample proportion | \( \hat{p} = \frac{d}{n} \) | Estimated defect rate |
| AQL | — | Maximum tolerable defect rate |
| Producer's risk | \( \alpha \) | Rejecting a good lot (Type I) |
| Consumer's risk | \( \beta \) | Accepting a bad lot (Type II) |
Question 1 of 5
A sample of \( n = 100 \) items yields \( d = 4 \) defectives. What is the sample proportion \( \hat{p} \)?
Question 2 of 5
A sampling plan uses \( n = 50 \) and \( c = 2 \). A sample reveals \( d = 3 \) defectives. What is the decision?
Question 3 of 5
The producer's risk \( \alpha \) is best described as:
Question 4 of 5
Which of the following would decrease the standard error of \( \hat{p} \)?
Question 5 of 5
Why is sampling preferred over 100% inspection when the test is destructive?