Find the optimal last-success selection window with Bruss’s backward odds rule, and distinguish this objective from maximising trading reward.
Odds algorithm
The odds algorithm is Bruss’s rule for maximising the probability of selecting the last success in a finite sequence of independent binary trials, observed one at a time without recall. It turns this particular optimal stopping problem into a backward sum. For quant modelling, its first lesson is to specify the objective: correctly identifying the final qualifying signal is different from maximising a trade’s expected profit.
Build the window backward; make the choice forward
Let Ij be a Bernoulli indicator, with Ij=1 denoting success. Assume a fixed horizon n, mutually independent trials and probabilities pj=P(Ij=1) known before observation. Here we restrict to 0≤pj<1, so the odds are finite:
qj=1−pj,rj=qjpj.
You may select one observed success and cannot return to a rejected one. Selecting a success followed by another success loses; a sequence with no successes also loses.
Starting at trial n, add rn,rn−1,… until the running total first reaches or exceeds one. Call that index s. If the total never reaches one, set s=1. Ignore trials before s, then select the first success at or after s. If none appears, lose. This is the optimal rule among all decisions based on observations so far, not just among rules with a fixed starting index. See Bruss’s original theorem and algorithm, §§2–2.1.
The backward calculation uses known probabilities; the forward decision uses the current observation. It never reveals future outcomes. Also, sum odds, not probabilities.
Working backward, trial 3 contributes 1/3<1. Adding trial 2 gives 4/3≥1, so s=2. Discard trial 1 even if it succeeds. Then:
If trial 2 succeeds, select it; win only if trial 3 fails. This event has probability 0.50×0.75=0.375.
If trial 2 fails and trial 3 succeeds, select trial 3 and win. This event has probability 0.50×0.25=0.125.
The win probability is therefore 0.375+0.125=0.500. Trial 1 can have either outcome: an earlier discarded success does not prevent a later selection from being the last success.
Known independent success probabilities are 0.20, 0.50 and 0.25. Backward odds cross one at trial 2. Starting acceptance at trials 1, 2 and 3 gives last-success win probabilities 0.475, 0.500 and 0.250 respectively.
Original stipulated example. The acceptance window begins at trial 2; the three bars compare probabilities of selecting the last success, not expected payoffs.
Starting at trial 1 instead wins with probability 0.475; waiting until trial 3 wins with probability 0.250. Accepting earlier creates a risk of stopping before the final success. Waiting longer sacrifices the chance to select trial 2 when it is the final success.
Why the odds enter
For any starting index k, the first success in the suffix k,…,n is also its last exactly when that suffix contains one success. Write its win probability as Wk. Independence gives
In the example, W2=(0.50×0.75)(1+1/3)=0.500. A useful check on the threshold comes from subtracting neighbouring choices:
Wk−Wk+1=pk(i=k+1∏nqi)1−j=k+1∑nrj.
Including trial k helps when the later odds sum is below one and hurts when it is above one, provided pk>0. Equality can produce tied thresholds. This explains the backward crossing; the theorem additionally establishes optimality over observation-dependent rules. Bruss’s later author note, §2 restates the threshold and value.
Where the shortcut stops
With two independent trials each having p=0.10, total odds are 2/9<1. Start immediately: the win probability is 2(0.10)(0.90)=0.18. A threshold rule does not ensure a high chance of winning when successes are scarce.
A certain success, pj=1, lies outside the finite-odds formulas used here; direct substitution divides by zero. Bruss treats that case separately. Unknown probabilities and dependence also require further analysis: past outcomes can then change what should be believed about future trials.
For a financial comparison, American Options and Early Exercise develops exercise versus continuation to maximise expected discounted payoff (public preview; full lesson requires membership). That objective and its dependent price process require their own stopping analysis; applying this last-success threshold to price increases does not establish an optimal exit policy.