Wald's equation turns a random sum into a product of two expected values: the average contribution per step and the average number of steps. Its surprising feature is that the number of steps may depend on what has already happened. A procedure can stop on its first successful Bernoulli trial, for example, while the identity still accounts for its total cost. The crucial restriction is that the decision to take the next step cannot use that step's unobserved outcome.
Let be real independent and identically distributed random variables with , let , and put and . Suppose is a nonnegative integer-valued stopping time for the natural filtration , with . Then is an integrable random variable andThese hypotheses allow statistical dependence between and the increments; they do not allow access to future increments. The finite-expected value requirement is stronger than stopping almost surely.[ref]
For the proof idea, count step only on . This event is determined by the first observations, so its indicator function is independent of . The Proof of Wald's equation by stopping indicators combines this observation with the tail-sum formula for expectation. The same calculation with gives , which justifies interchanging the expected value and the infinite series. This is why the result survives a data-dependent end point without assuming an independent count.
The identity is useful in randomized algorithms and repeated sampling: one can translate an average amount of work into an average number of attempts, or conversely, without first finding the full probability distribution of the total. The examples below separate a permissible stopping rule from a rule that peeks ahead and from a valid rule whose average waiting time is infinite.
Consider a stipulated repeated-attempt model, with independent Bernoulli trials of success probability . An unsuccessful attempt costs three units of work, and a successful attempt costs one. Let be its success indicator function, its cost, and the first success. Observing reveals , so is a stopping time for the costs' natural filtration. The geometric distribution gives and , including the deterministic case . ThusAt , the average is four attempts and ten units of work. An independent check uses the pathwise identity : there are failures and one final success. No success probabilities or costs in this example are measured data.
Cost and survival probabilities for stopping at the first success
. Original stipulated model with success probability , failure cost three, and success cost one. The top shows one illustrative stopped sequence; the lower panels show exact probabilities and the contributions to the expected value from each admitted step. Details.Here is not independent of the observed costs. In particular, conditioning on forces every preceding cost to be three and the final cost to be one, so , generally different from at . Nevertheless the unconditional identity holds. This distinction explains why conditioning on the total count as though the original cost law remained unchanged is a faulty proof.
Let be independent fair signs, each taking and with equal probability. Set if , and if . Deciding whether requires the second sign, so is not a stopping time for the natural filtration. The four equally likely possibilities giveBoth the increments and the count are bounded, but the identity fails because the second contribution is retained only when it is negative. This is selection using an unobserved outcome, rather than a legitimate sequential decision. Boundedness alone cannot replace the stopping time hypothesis.[ref]
For a simple symmetric random walk starting at zero, let be its first hitting time of . The infinite mean first passage of a simple symmetric random walk shows that almost surely but . Since , assuming a finite expected value for would let Wald's equation assert , a contradiction. The formal expression is not an allowed use of the theorem.[ref]
Compare . From every surviving position in , three consecutive positive increments force absorption within three steps. Each fresh block has probability of this event, so and . This establishes finiteness before invoking the theorem. If is the average remaining time from position , the law of total expectation givesso . Symmetry gives equal exit probabilities at and , and , as Wald's equation predicts. This is a small gambler's ruin problem with two absorbing barriers.
Even for , each bounded stopping time satisfies . The stopped process tends to almost surely, but its expected value does not tend to . Rare long negative excursions retain the balancing contribution. The existing stopped-walk martingale with almost sure but not L1 convergence explains the related failure of uniform integrability; almost sure convergence alone does not permit exchanging a limit and an expected value.
If is a stopping time for independent identically distributed integrable variables and , then depends only on and is independent of . HenceThe interchange is justified because the same calculation with gives finite expected absolute sum.
Articles by others on the same topic
Wald's equation is a result in probability theory that deals with the expectation of the sum of a random number of random variables.

