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.

Google
Statistics & Math
Data Scientist
Google
November 29, 2026
Data Scientist
Onsite
Statistics & Math
Medium

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
Fisher's exact test
hypergeometric distribution
rare events
rate ratio
quality control
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 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 Questions
Sample 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 H0H_0 (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...


Submit Your Answer
Markdown supported