KatInterview

Selecting the Top-Performing Sensor Calibration Batch

Statistics & ExperimentsModel answer
MediumModel answerStatistics & Experimentshypothesis-testingmultiple-comparisonsbinary-outcomes

Last updated

Design a statistically rigorous approach to rank five manufacturing batches using three binary pass/fail calibration checks per unit.

Sensor Calibration Batch Selection

A factory produces precision sensors. Before shipping, every sensor is run through three independent calibration checks. Each check produces a binary result: pass (1) or fail (0). Sensors were randomly assigned to one of five production batches at the start of the experiment, so batch membership is not self-selected.

You now have a full dataset with one row per sensor: its batch label and its three check outcomes.

Your task: Describe a statistically sound method to determine which batch has the best overall quality.

Your answer should cover all four of the following areas:

  1. Composite metric. How do you collapse three binary check results into a single quality measure per batch? Discuss at least two options and the trade-offs between them. Identify the choice you would defend as the default and explain why.

  2. Unequal batch sizes. Batches ended up with different numbers of sensors. Explain why this is manageable and how you handle it correctly.

  3. Uncertainty quantification. How do you avoid crowning a winner that got lucky? Describe both a frequentist and a Bayesian way to attach uncertainty to each batch's quality estimate.

  4. Multiple-comparison control. With five batches, naively picking the top one and testing it inflates your false-positive rate. Walk through a concrete strategy for controlling this, including what you would report when the evidence is inconclusive.

A strong answer is structured, uses precise terminology, mentions numbers where relevant (e.g., how many pairwise tests exist, typical threshold values), and acknowledges practical limitations.

Hints

Hint 1

Start by deciding what 'quality' means before touching the data. A sensor that passes two checks but fails the safety-critical one may still be unacceptable — your metric should reflect that business reality, not just an average.

Hint 2

Unequal group sizes only become a problem when you compare raw counts. Switching to rates with confidence intervals neutralizes the imbalance. Think about which interval formula behaves well near pass rates of 0.95 or higher.

Hint 3

With five groups you have ten possible pairwise comparisons. Running all of them at α = 0.05 gives you roughly a 40% chance of at least one false positive. A good answer names a specific correction strategy and explains when you would stop before even reaching the pairwise stage.