The Prophet Inequality
A guarantee that, even watching random values arrive one at a time and having to decide immediately whether to keep each one, you can secure at least half of what a prophet with perfect foresight would get, just by using a single well-chosen threshold.
Prerequisites: Optimal Stopping Theory
Imagine offers or trade opportunities arrive one at a time, each an independent random value from a known distribution, and you must accept or reject each one the instant it appears, no going back to a rejected offer, no waiting to see what's coming. A prophet who could see every future value in advance would simply pick the single best one. You can't. How much of that prophet's payoff can you guarantee to capture using only a real-time decision rule, with no foresight at all? The prophet inequality gives a strikingly clean, distribution-free answer: at least half, always, using nothing more exotic than a single fixed threshold.
An analogy: judging a live singing competition
Imagine judging contestants one at a time live, deciding to award the prize on the spot, once you pass on a contestant, they're gone for good. A prophet who's already heard everyone would obviously award the best one; judging live, you clearly can't always match that. The prophet inequality says something remarkable anyway: fix a single cutoff score in advance and award the prize to the first contestant who clears it, and you can guarantee capturing, on average, at least half of what the all-knowing prophet would have gotten, regardless of how scores are actually distributed, with no clever adaptive strategy needed.
The idea, one symbol at a time
Let be independent (not necessarily identically distributed) non-negative random variables, revealed one at a time in order. A prophet, seeing all values in advance, achieves expected value . A real-time player uses a stopping rule , a rule that decides, using only what's been seen so far, whether to stop and take the current value. The prophet inequality states that there exists a single threshold (a fixed number, chosen in advance from the known distributions) such that stopping at the first guarantees:
In plain English: the best single-threshold real-time rule guarantees, in expectation, at least half of what a perfect-foresight prophet would collect, no matter how the values are distributed, and is the best guarantee possible in general (some distributions let no online rule beat it). A common construction uses : stop at the first value reaching half the prophet's expected best.
Worked example 1: two independent offers
Suppose two independent offers arrive: with probability 0.5, else $0; with certainty. The prophet's expected best: (since when the max is 100, and when the max is ). Set threshold . The rule: accept if it clears 35 (i.e., if ); otherwise move to , which also clears 35, so accept it. Expected value of this rule: , here the simple threshold actually matches the prophet exactly, because both realizations clear the threshold appropriately.
Worked example 2: a harder distribution
Now suppose (huge) with probability , else $0; and with certainty, large. Prophet's expected best: for large , the rare huge win contributes about 1, the fallback about 1. Threshold . Rule: accept only if it's the huge value ; otherwise fall through to , which clears the threshold too, so accept it. Expected value again, but the guarantee of "at least half" is what protects the worst-case distributions where the online player genuinely cannot do this well, not a claim you always match the prophet.
What this means in practice
Prophet inequalities are the theoretical backbone of "sell now versus wait" decisions under genuine uncertainty and irrevocability: a trader shopping a large block to counterparties one at a time with no recall, or an execution algorithm deciding whether to take a currently visible price or wait for a better one that may never reappear. The value of the result is precisely that it needs no assumption about the shape of the distribution, a single, computable threshold gives a worst-case performance guarantee, which is a much stronger promise than "this works well on average in backtests."
Facing a sequence of independent random values you must accept or reject on the spot with no recall, a single fixed threshold, set in advance from the known distributions, guarantees an expected payoff of at least half of what a prophet with perfect foresight of all values would achieve, and this 1/2 guarantee holds for any distribution, not just convenient ones.
The 1/2 guarantee is a worst-case bound, not a typical-case estimate, in many realistic distributions the simple threshold rule captures far more than half of the prophet's value (as in both worked examples above), which can lead practitioners to assume the rule is "basically as good as foresight." Relying on that assumption is risky precisely because the guarantee exists to protect against the distributions where it isn't close, don't mistake a worst-case floor for a typical-case estimate when sizing how much value a real-time strategy is actually leaving on the table.
Discussion
💡 Discussion rules
- Ask and answer about this concept. Off-topic gets removed.
- No homework dumps. Show what you tried first.
- Corrections are welcome. Cite a source when you claim an error.
Loading discussion…
Related concepts
- The House-Selling Problem and Reservation Values
- The Secretary Problem and Optimal Stopping
- The Gittins Index
- The Newsvendor Problem and Inventory Control
- Alternating Renewal Processes and Availability
- Branching Processes With Immigration
- Exponential Tilting and Esscher Transforms
- Hazard Rate and Residual Lifetime
Practice in interviews
Further reading
- Krengel & Sucheston (1978), On semiamarts, amarts, and processes with finite value
- Samuel-Cahn (1984), Comparison of threshold stop rules and maximum for independent nonnegative random variables