Search the atlas

Wald’s identity

Use an exactly enumerated two-trial experiment to show what Wald’s identity guarantees, why a stopped average can be biased and when looking ahead breaks the theorem.

Wald’s Identity and the Bias of Stopping After Success

A procedure that stops after a success does not usually collect the same kind of dataset as a fixed-length procedure. Wald’s identity can still describe its expected total under suitable assumptions. It does not make the resulting sample average unbiased.

State the Identity and Its Conditions

Let X1,X2,…X_1,X_2,\ldots be independent, identically distributed increments with E∣X1∣<∞E|X_1|<\infty and mean μ\mu. Let NN be a nonnegative integer stopping time for the observations, with E[N]<∞E[N]<\infty. Then

E[∑i=1NXi]=μE[N].E\left[\sum_{i=1}^{N}X_i\right]=\mu E[N].

A stopping time means that whether to stop by observation nn can be decided from observations available by then. It does not require NN to be independent of the observed increments. Berkeley’s probability notes, theorem 10.5, give the identity and its proof.

Write the stopped sum as ∑i≥1Xi1{N≥i}\sum_{i\ge1}X_i\mathbf1_{\{N\ge i\}}. The decision to include observation ii depends on the past before that observation, so its indicator is independent of XiX_i. This is the useful independence, rather than independence of the final sample size from everything observed.

Enumerate a Valid Stopping Rule

Use independent Bernoulli trials with success probability 1/2. Stop after the first trial if it succeeds; otherwise take one more trial and stop. Thus NN is always one or two.

Potential pair (X1,X2)(X_1,X_2)

Probability

NN

Observed total SNS_N

SN/NS_N/N

(1,1)

1/4

1

1

1

(1,0)

1/4

1

1

1

(0,1)

1/4

2

1

1/2

(0,0)

1/4

2

0

0

The second potential trial is not observed when N=1N=1; listing it simply gives four equally likely underlying outcomes.

The table gives E[N]=3/2E[N]=3/2 and E[SN]=3/4E[S_N]=3/4, agreeing with μE[N]=(1/2)(3/2)\mu E[N]=(1/2)(3/2).

The Stopped Average Answers a Different Question

The expected observed success fraction is

E[SN/N]=58=0.625,E[S_N/N]=\frac58=0.625,

not the underlying 0.5. In contrast, E[SN]/E[N]=0.5E[S_N]/E[N]=0.5. Expectation does not commute with division by a random denominator. Stopping early on success overrepresents short all-success records when each record is given equal weight.

This is a bounded, exactly calculated example; no asymptotic approximation or simulation uncertainty is involved.

Break the Condition by Looking Ahead

Now define N=1N=1 if the second potential trial succeeds, and N=2N=2 otherwise. At the end of the first trial this rule cannot be decided without seeing the future, so it is not a stopping time for the observations.

Its reported sum is always X1X_1: if N=2N=2, the second trial is zero. Hence E[SN]=1/2E[S_N]=1/2, while μE[N]=3/4\mu E[N]=3/4. The failed identity exposes the invalid rule, not an exception to the theorem.

Applications and checks

When summarizing repeated inspection or retry episodes, preserve the stopping rule and identify whether the statistic weights episodes or individual trials. An expected-cost calculation for a stopped sum does not automatically validate a success-rate estimate from stopped averages.

The exhaustive check verifies all four outcomes and both rules. Dependence between trials, changing success probabilities or unbounded stopping with nonfinite expectation requires separate analysis. A table supplies stronger evidence here than an animated random run, which could hide the exact selection effect.

Back to contents