Expected Reels Until Two Likes in a Row Versus Like Then Skip

Last updated: November 29, 2026

Quick Overview

Each Reel a user watches is liked independently with probability 1/2. What is the expected number of Reels until the user produces two likes in a row (LL), and how does that compare to the expected number until a like followed by a skip (LS)?

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

0

0

0 solved


Each Reel a user watches is liked independently with probability 1/2. What is the expected number of Reels until the user produces two likes in a row (LL), and how does that compare to the expected number until a like followed by a skip (LS)?

Meta data science screens often open with a short probability puzzle dressed in product language before moving to experimentation. The interviewer is checking whether you can set up a Markov chain of partial-pattern states and explain why two patterns of the same length have different waiting times.

What the Interviewer Expects
  • Define states by the longest useful suffix of the sequence so far
  • Write and solve linear equations for expected remaining steps
  • Get 6 for LL and 4 for LS
  • Explain intuitively why overlap with itself makes LL slower
  • Optionally confirm with a quick simulation
Key Topics to Cover
Markov chains
First-step analysis
Pattern waiting times
Linearity of expectation
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 likes in a row?
  • With like probability p, what is the expected wait for LL?
  • Which pattern is more likely to appear first, LL or LS?
  • How would you generalize using the autocorrelation of the pattern?
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

Treat each Reel as a fair coin: L with probability 1/2, S otherwise, independent across Reels. We want E[TLL]E[T_{LL}] and E[TLS]E[T_{LS}], where TT counts Reels watched up to and including the one that comp...

Approach

Use first-step analysis. The state is how much of the target pattern the recent history matches. For each pattern there are three states: nothing matched (start), first symbol matched, done. Let aa b...


Submit Your Answer
Markdown supported