Fisher Exact Test for Rare Pixel Defects Across Two Factories
Last updated: November 29, 2026
Quick Overview
Quality control found 3 defective units out of 2,000 Pixel phones from factory A and 11 out of 2,100 from factory B. With such small counts, test whether factory B has a higher defect rate.
0
0
0 solved
Quality control found 3 defective units out of 2,000 Pixel phones from factory A and 11 out of 2,100 from factory B. With such small counts, test whether factory B has a higher defect rate.
Google hardware analytics deals with rare failure counts where normal approximations are shaky. The interviewer checks that you know when exact tests are needed, can derive the hypergeometric reasoning, and can turn the result into a decision for the supply chain team.
What the Interviewer Expects
- Explain why the chi-square approximation is questionable here
- Derive Fisher's test from conditioning on total defects
- Compute one-sided and two-sided p-values
- Report an effect size such as the rate ratio
- Recommend a follow-up given the borderline result
Key Topics to Cover
How to Approach This
- Define your hypotheses (H0 and H1) clearly before performing any test.
- Calculate required sample size BEFORE running an experiment, using power analysis.
- Remember the Central Limit Theorem: sample means become approximately normal with large n.
- Watch for Simpson's paradox. Always segment data by key dimensions.
- Distinguish between statistical significance and practical significance.
Possible Follow-up Questions
- How would a Poisson rate comparison differ from Fisher's test?
- Why is Fisher's test conservative?
- What sample size would you need to detect a 3x difference reliably?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Browse Statistics QuestionsSample Answer
Clarify
Confirm units were sampled the same way from both factories and the inspection was identical. Ask whether the concern is specifically that B is worse (one-sided) or any difference. A hardware team usu...
Approach
Condition on the 14 total defects. Under (same defect rate), which units are defective is a random choice of 14 from 4,100, so the number from factory A is hypergeometric: $P(X = i) = \binom{200...