Two Trial Offers: Chance of One Ride and of Lasting Loyalty
Statistics & ExperimentsModel answerLast updated
Work out, for a rider shown two independently fair-or-unfair prices on day one, the chance of exactly one ride the next day and the chance they eventually become a permanent rider.
A ride-hailing company is testing a new pricing scheme on first-time users. On day 1, each new user is shown two ride offers. Each offered price is judged "reasonable" with probability P, independently of the other offer.
Assume the following behavior model (state any assumptions of your own if you change it):
- Both prices reasonable: the user becomes a permanent rider and rides every day afterward.
- Exactly one price reasonable: the user is hesitant and is offered a single ride the next day.
- Neither price reasonable: the user churns and never returns.
- The single-ride day: if that one price is reasonable (probability
P), trust is restored and the user is again shown two offers, repeating the process. Otherwise the user churns.
Questions
- What is the probability that a user takes exactly one ride the next day?
- What is the probability that a user eventually becomes a permanent rider?
Explain your model, derive both answers as functions of P, and show a few sanity checks (for example P = 0, P = 1, P = 1/2). Mention any ambiguity you notice in the wording and say how you resolved it.
Hints
Hint 1
Let X be the number of reasonable prices among the two offers. What distribution does X follow, and what are the probabilities of X = 0, 1 and 2? Remember the two orderings of 'one reasonable, one not'.
Hint 2
Draw the process as states: 'shown two offers', 'shown one offer', 'permanent', 'churned'. The last two are absorbing. Write down the transition probabilities out of each non-absorbing state.
Hint 3
Use first-step analysis: let x be the chance of ending permanent from the two-offer state and y from the one-offer state. Write x in terms of y and y in terms of x, then solve the linear system.
Model answer
Easy Try it yourself first — then compare your approach, complexity and edge cases.
Clarify the model
The wording leaves behavior open, so state the rules first. I use the rules given in the problem:
- Day 1: two offers, each reasonable independently with probability
P. - Two reasonable: permanent rider.
- One reasonable: a single offer the next day.
- Zero reasonable: churn.
- From the single-offer state: reasonable (probability
P) sends the user back to the two-offer state; otherwise churn.
Step 1: Day-1 outcomes
Let X be the number of reasonable prices, so X ~ Binomial(2, P).
| Outcome | Probability | Consequence |
|---|---|---|
| X = 2 | P² | Permanent |
| X = 1 | 2P(1−P) | One offer next day |
| X = 0 | (1−P)² | Churn |
Check: P² + 2P(1−P) + (1−P)² = (P + (1−P))² = 1.
The factor 2 in the middle row is the classic slip: "first reasonable, second not" and "first not, second reasonable" are different outcomes.
Answer 1: exactly one ride the next day
$$ \Pr(\text{one ride tomorrow}) = 2P(1-P) $$
It peaks at P = 1/2 with value 1/2, which makes sense: the hesitant outcome is most likely when each price is a coin flip.
A different reading would count only rides completed at a reasonable price, giving 2P(1−P)·P = 2P²(1−P). Flag the ambiguity, then commit to the plain reading above, where "takes one ride" simply means being offered exactly one.
Step 2: Markov chain for permanence
States: S2 (two offers, the start), S1 (one offer), Permanent and Churn (absorbing).
- From S2: Permanent with P², S1 with 2P(1−P), Churn with (1−P)².
- From S1: S2 with P, Churn with 1−P.
Let x = Pr(permanent | S2) and y = Pr(permanent | S1). First-step analysis:
$$ x = P^2 + 2P(1-P),y, \qquad y = P,x $$
Substitute y:
$$ x,[1 - 2P^2(1-P)] = P^2 $$
Answer 2: eventual permanence
$$ \Pr(\text{permanent}) = \frac{P^2}{1 - 2P^2(1-P)} $$
Sanity checks
- P = 0 gives 0, and P = 1 gives 1.
- P = 1/2 gives (1/4)/(1 − 1/4) = 1/3.
- The result is always at least P², since the detour through S1 can only add probability.
Why it is well defined. One full loop S2 → S1 → S2 has probability 2P²(1−P), which is at most 8/27 (at P = 2/3). Since this is below 1, the geometric series
$$ P^2 \sum_{k\ge 0} \big[2P^2(1-P)\big]^k $$
converges. It is an equally valid derivation: the user loops back k times and then gets two reasonable prices.
A simpler variant
If the rules instead say that a reasonable price on the single offer makes the user permanent immediately, there is no loop:
$$ \Pr(\text{permanent}) = P^2 + 2P(1-P)\cdot P = P^2(3-2P) $$
At P = 1/2 this is 1/2, larger than 1/3, because only one reasonable price is needed from S1. The method is the same: write first-step equations for whichever rules the interviewer specifies.
Quick simulation check
import random
def simulate(p, trials=200_000, seed=0):
rng = random.Random(seed)
one_next_day = permanent = 0
for _ in range(trials):
first_day = True
state = 2
while True:
if state == 2:
good = (rng.random() < p) + (rng.random() < p)
if first_day and good == 1:
one_next_day += 1
first_day = False
if good == 2:
permanent += 1
break
if good == 0:
break
state = 1
else:
if rng.random() < p:
state = 2
else:
break
return one_next_day / trials, permanent / trials
def closed_form(p):
return 2 * p * (1 - p), p**2 / (1 - 2 * p**2 * (1 - p))
At P = 0.5 both should be near (0.50, 0.333).
Common mistakes
- Dropping the factor 2 and writing P(1−P).
- Not stating assumptions for an underspecified scenario.
- Answering P² for "permanent" and ignoring the second-chance path through S1.
- Setting up the recursion without checking convergence or the boundaries P = 0 and P = 1.
- Confusing "was offered a ride" with "took a ride at a reasonable price".
Takeaway for the experiment
Permanent conversion behaves like P² for small P, so it is strongly convex at the low end: modest improvements in how many prices feel fair can have an outsized effect on long-term retention.