Each week a loyalty-app user is either Engaged or Idle. An Engaged user becomes Idle the next week with probability 0.10, and an Idle user becomes Engaged with probability 0.15; these probabilities do not change over time. In the long run, what share of weeks is a user Engaged?
Show the answer and explanation
Correct answer: D, 60%: in balance the flows match, π_E × 0.10 = π_I × 0.15, so π_E = 0.15/(0.10 + 0.15), the Idle-to-Engaged share of switching.
Explanation Markov Chains
The stationary distribution π satisfies π = πP: if users are distributed as π this week, they are still distributed as π next week. For two states the quickest way to solve it is flow balance: the probability flow out of Engaged must equal the flow into it.
π_E · 0.10 = π_I · 0.15, and π_E + π_I = 1
So π_E = 0.15 / (0.10 + 0.15) = 0.60 and π_I = 0.40.
General rule for two states with switching probabilities a (1 → 2) and b (2 → 1):
| State | Long-run share |
|---|---|
| 1 | b / (a + b) |
| 2 | a / (a + b) |
Each state's share is the probability of moving into it divided by the total switching probability. The flow out of a state is its share times its own leaving probability; pairing π_E with 0.15 instead (π_E × 0.15 = π_I × 0.10) swaps the states and gives the Idle share, 40%. The 0.90 stay probability only says how long an Engaged spell lasts (mean 1/0.10 = 10 weeks); the long-run share also depends on how fast Idle users return (mean Idle spell 1/0.15 ≈ 6.7 weeks, and 10 / (10 + 6.7) = 0.6). An even split happens only when a = b.
Interview tip: sanity-check the result with expected spell lengths, and mention why it is well defined: the chain is irreducible (so π is unique) and aperiodic (so it converges to π from any start).