Expected Scans Until Two Consecutive Misreads at a Sorter

Last updated: November 29, 2026

Quick Overview

Each package scan at an Amazon sortation station misreads independently with probability p, and the line halts after two misreads in a row. Derive the expected number of scans until a halt, give the value for p = 1/6, and verify it.

Amazon
Statistics & Math
Data Scientist
Amazon
November 29, 2026
Data Scientist
Onsite
Statistics & Math
Hard

0

0

0 solved


Each package scan at an Amazon sortation station misreads independently with probability p, and the line halts after two misreads in a row. Derive the expected number of scans until a halt, give the value for p = 1/6, and verify it.

A Markov chain waiting-time question in the style of an Amazon onsite for Data Scientist or Applied Science adjacent roles. The interviewer is checking whether you can set up first-step equations with states, rather than guessing $1/p^2$.

What the Interviewer Expects
  • Defines states by current streak length
  • Writes first-step analysis equations correctly
  • Solves to $(1+p)/p^2$ and plugs in p
  • Explains why the answer is not $1/p^2$
  • Checks with simulation or a sanity case such as p = 1
  • Relates the result to an operational alert rule
Key Topics to Cover
Markov chains
first-step analysis
waiting times
pattern matching
simulation
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
  • What is the expected wait for three consecutive misreads?
  • What is the expected wait for the pattern misread then good read?
  • If misreads are positively autocorrelated, does the halt come sooner or later?
  • How would you choose the halt rule to keep false halts under one per shift?
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

Scans are independent, each a misread with probability pp. The line halts at the first time two consecutive scans are misreads. Let E0E_0 be the expected remaining scans with no current streak, E1E_1...

Approach

First-step analysis. From each state, condition on the outcome of the next scan, which costs one scan and moves the chain:

  • From state 0: misread goes to state 1, good read stays in state 0.
  • From s...

Submit Your Answer
Markdown supported