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 be independent, identically distributed increments with and mean . Let be a nonnegative integer stopping time for the observations, with . Then
A stopping time means that whether to stop by observation can be decided from observations available by then. It does not require 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 . The decision to include observation depends on the past before that observation, so its indicator is independent of . 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 is always one or two.
|
Potential pair |
Probability |
|
Observed total |
|
|---|---|---|---|---|
|
(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 ; listing it simply gives four equally likely underlying outcomes.
The table gives and , agreeing with .
The Stopped Average Answers a Different Question
The expected observed success fraction is
not the underlying 0.5. In contrast, . 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 if the second potential trial succeeds, and 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 : if , the second trial is zero. Hence , while . 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