Expected Pulls to Win a Rare Item Under a Pity Rule

Last updated: November 29, 2026

Quick Overview

A gacha banner gives a rare item with 1% probability per pull, and a pity rule guarantees the item on pull 90 if none appeared earlier; find the expected number of pulls to get the item and the probability that pity is what delivers it.

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

0

0

0 solved


A gacha banner gives a rare item with 1% probability per pull, and a pity rule guarantees the item on pull 90 if none appeared earlier; find the expected number of pulls to get the item and the probability that pity is what delivers it.

Many Tencent mobile games monetise through randomized draws with disclosed rates and pity guarantees, and regulators in China require published probabilities. Game data science screens use this to check comfort with truncated geometric distributions, the tail-sum trick for expectations, and turning the math into a design insight.

What the Interviewer Expects
  • Models pulls as a geometric distribution truncated at 90
  • Uses the tail-sum formula for expectation or an equivalent derivation
  • Computes about 59.5 expected pulls and about 41% pity probability
  • Explains how pity changes the effective drop rate
  • Mentions simulation as a check
Key Topics to Cover
Geometric distribution
Expectation via tail sums
Truncated distributions
Simulation
Game economy design
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 effective per-pull rate players experience?
  • How does a soft pity (rate rising from pull 75) change the analysis?
  • What is the expected spend to obtain two copies?
  • How would you check from logs that the live rates match the published ones?
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

Each pull is independent with success probability p=0.01p = 0.01 until pull 89. If pulls 1 to 89 all fail, pull 90 is a guaranteed success. Let NN be the pull on which the item arrives, so $N \in {1, \d...

Approach

For a non-negative integer random variable, E[N]=∑k≥0P(N>k)E[N] = \sum_{k \ge 0} P(N > k). Here P(N>k)=(1−p)kP(N > k) = (1-p)^k for k=0,…,89k = 0, \dots, 89 (no success in the first kk pulls) and P(N>90)=0P(N > 90) = 0 because pull 90 a...


Submit Your Answer
Markdown supported

Related Questions