Expected Applications Reviewed Until Two Consecutive Fraud Flags

Last updated: November 29, 2026

Quick Overview

Each application in a review queue is independently flagged with probability 0.1. On average, how many applications are reviewed until two flags appear back to back, and how does that compare with waiting for a flag followed by a clean application?

Upstart
Statistics & Math
Data Scientist
Upstart
November 29, 2026
Data Scientist
Technical Screen
Statistics & Math
Medium

0

0

0 solved


Each application in a review queue is independently flagged with probability 0.1. On average, how many applications are reviewed until two flags appear back to back, and how does that compare with waiting for a flag followed by a clean application?

Upstart's quantitative screens include classic pattern-waiting puzzles, here dressed up as a fraud review queue. The interviewer wants a clean state-based expectation argument and the counterintuitive result that two patterns of the same probability can have very different waiting times.

What the Interviewer Expects
  • Define states by progress toward the pattern
  • Write first-step equations for expected time
  • Solve to get a closed form in p
  • Compare with the flag-then-clean pattern
  • Explain why overlap changes the waiting time
Key Topics to Cover
expected value
Markov states
pattern waiting times
first-step analysis
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
  • Generalize to k consecutive flags.
  • Which pattern is more likely to appear first, flag-flag or flag-clean?
  • How would you verify the answer with a quick simulation?
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

Trials are independent with flag probability p=0.1p = 0.1, clean probability q=0.9q = 0.9. Count the applications reviewed, including the one that completes the pattern. Pattern FF means two flags in a row;...

Approach

Let E0E_0 be expected remaining reviews from scratch and E1E_1 after one trailing flag. For FF: E0=1+pE1+qE0E_0 = 1 + pE_1 + qE_0 and E1=1+p⋅0+qE0E_1 = 1 + p \cdot 0 + qE_0, because a clean application after a flag reset...


Submit Your Answer
Markdown supported