For independent and identically distributed random variables with a continuous probability distribution, let be the index of the first increase. The event requires the first observations to be decreasing; symmetry among their possible strict orders gives probability for . Subtracting successive tails gives the displayed mass function for . The tails tend to zero, so is finite almost surely. The tail-sum formula for expectation gives , independently of the continuous sampling law.
For , the number of attempts has the geometric distribution with success probability :
The tail-sum formula for expectation gives
At , deterministically. At , and its expectation is , rather than a finite waiting time.
For each , let be the relative rank of among , with the smallest value assigned rank one. Then . The independent relative ranks of a uniform random permutation can be proved directly: for any choices , insert the index at position in the list of previous indices ordered by their values. After all insertions, assign the values along that list. This is a unique permutation with those relative ranks, and conversely every permutation yields one such insertion sequence.
There are possible insertion sequences, all equally likely because the uniform random permutation is uniform. Thus
The ranks are independent and each is uniform on its possible values. It follows that the independent record indicators have
The first indicator is the constant one, which is also independent of the others. For , additivity of expectation and variance additivity for independent random variables give
Here is the harmonic number.
Let be the year index of the second record. For , independence gives
The empty product for is one. There is no second record in the first years with probability
This exposes a finite-horizon qualification in the final request: a permutation of length alone does not specify when a record outside those years will occur. Under the usual continuation by an infinite sequence of independent, identically distributed observations with a continuous distribution, the same relative-rank argument holds for every finite prefix. Then for every , and . These probabilities sum to one, so the second record occurs almost surely, but
The expected number of additional years after year one, , is also infinite. This is the first-sample case of the waiting time for a new record after a fixed sample.
If instead one asks for the mean year conditional on the second record occurring within the stated years, then, for ,
The mean additional wait under that conditioning is this value minus one. These are distinct questions: assigning whenever no second record occurs in the finite horizon also gives an infinite unconditional mean, whereas a censored observation has finite expectation by the tail-sum formula for expectation.
For a nonnegative integer-valued random variable, its expected value is , allowing the value . Since , rearranging nonnegative summands gives the tail-sum formula for expectation:
No integrability assumption is needed for the rearrangement. The same formula holds for an extended nonnegative integer-valued variable by the monotone convergence theorem, using .
For the first ascent in independent continuous observations, continuity makes ties probability zero. By order symmetry of independent random variables, the first observations have each of their strict orderings with equal probability. For , means exactly that the first observations are decreasing, so
Subtracting consecutive tails gives
with probability zero for . The events decrease to ; continuity of probability under decreasing intersections gives . Finally,
The first observation cannot itself end the run; this is why the tail includes the separate term .
For the waiting time for a new record after a fixed sample, given , no overflow in the first subsequent years has probability . Averaging as in part (c) yields
The tail-sum formula for expectation therefore gives
The answer is . This does not contradict almost-sure finiteness: the tail probability tends to zero, but too slowly for its sum to converge.
For , let , including . It is a nonnegative integer-valued random variable, possibly infinite before the following estimate. The tail-sum formula for expectation and part (i) give
Thus , and the supremum is finite almost surely. The sum identity follows by writing and applying monotone convergence theorem. If the printed supremum is read literally over , its positive part has exactly the same positive-level tails and its negative part is bounded by one. The same upper bound on its expected value remains valid.
Pointwise, an integer-valued nonnegative random variable has the representation
when , exactly the terms equal one. Applying the Tonelli theorem, or the monotone convergence theorem to the finite sums of indicator random variables, gives the tail-sum formula for expectation
Both sides may be infinite; no integrability assumption is necessary.
Write and . Since is a stopping time, . The Tonelli theorem, conditional expectation, and (c)'s tail-sum formula for expectation yield
Thus is an integrable random variable. Since , telescoping gives and . The dominated convergence theorem gives , so (b) gives uniform integrability of the stopped martingale.
The optional stopping theorem at the bounded stopping time gives . Passing to the limit using the convergence in L1 proved in (b),
One can also pass directly by the dominated convergence theorem, since .
If is future time to dementia from age 50, its survival function is
The tail-sum formula for expectation gives the expected future time alive without dementia:
With administrative censoring at , one patient is observed to experience with probability
so
The observed time is , whose mean follows from the tail-sum formula for expectation:
Hence
Write for the partial sum. Fix an integer . The tail-sum formula for expectation, applied to the nonnegative random variable , gives
because . The events are independent, so the second Borel--Cantelli lemma shows that infinitely often with probability one. Taking the countable intersection over yields
almost surely.
Now , and the triangle inequality gives
If the limit superior of were finite, the right-hand side would have finite limit superior, contradicting the preceding conclusion. Therefore
almost surely.
The nonnegative integer-valued tail-sum formula for expectation gives
This is finite because . Here is the Riemann zeta function on its convergent real domain. The floor function is nonnegative on the support, so the tail-sum identity applies directly.
Tail probability Created 2026-10-03 Updated 2026-10-14
For a real random variable , an upper-tail probability has the form and a lower-tail probability has the form . Each is the probability of an event lying beyond a chosen threshold in one direction. A tail probability need not be small: the threshold determines how much of the probability distribution it includes. A concentration inequality bounds such probabilities, often for deviations from an expected value.
Endpoint conventions matter. Write for the cumulative distribution function and . The complement rule of probability gives four distinct formulas:
The strict upper-tail convention is the survival function . Its value differs from the inclusive upper tail probability by exactly the probability mass at the threshold:
A singleton with positive probability mass is an atom of a measure. Thus excludes an atom of a measure at , whereas includes it. These endpoint identities follow directly from the cumulative distribution function properties in Kyle Siegrist, Distribution and Quantile Functions: endpoint probabilities and right tails.
As the threshold increases, both upper tail probabilities are nonincreasing functions. The strict survival function is a right-continuous function; the inclusive upper tail probability takes the upper endpoint value at a downward jump, equal to the left limit of the survival function. Both tend to zero as for a real random variable, but the speed of that decay differs across probability distributions. The cumulative distribution function properties and their proof from continuity of probability measures are given in MIT 6.436J, Lecture 4: random variables and cumulative distribution function properties.
For a fair six-sided die , the discrete uniform distribution assigns probability mass to each of . At threshold four,
Between four and five, both upper tail probabilities equal . At the largest possible outcome the distinction is especially visible: , but . The diagram shows exact probabilities for this mathematical model; its dots specify which endpoints belong to each step function.
Figure 1.
Exact fair-die probabilities: including or excluding a threshold changes the tail by one atom
. Details.
If a probability distribution has a probability density function , then every singleton has zero probability mass and
For an exponential distribution of rate two, for and zero otherwise, so for and for . Hence . This tail probability is an integral of the probability density function, not its height . A mixed probability distribution retains endpoint jumps even with a smooth component: give zero probability mass and choose this exponential distribution with probability . Then , , and for .
A two-sided tail probability can measure the absolute value of displacement from a specified center . For , the two extreme events are disjoint events, so
For strict displacement , replace the last expression by . The condition prevents overlap; at adding inclusive tails double-counts any probability mass at . For a uniform distribution on , take and : the two tail probabilities are each and their sum is . Equal tails follow from this symmetric probability distribution, not from the phrase two-sided alone; for a uniform distribution on with , the two tail probabilities are zero and .
The tail-sum formula for expectation turns a whole curve of tail probabilities into an expected value. For any nonnegative random variable , without assuming a probability density function or a finite expected value,
For a proof outline, write pointwise and exchange the expected value and Lebesgue integral using Tonelli theorem; is an indicator function. The inclusive version has the same Lebesgue integral: positive probability masses occur at only a countable set of thresholds, which has Lebesgue measure zero. For a nonnegative integer-valued random variable , the tail-sum formula instead gives . The integer hypothesis is essential for these sums. The integral identity, its indicator function proof, and the integer version appear in Kyle Siegrist, Additional Properties of Expected Value: integration and summation of right tails.
For the fair die, this tail-sum formula yields , equal to the direct weighted arithmetic mean . For the rate-two exponential distribution, the area under the survival function is , its expected value. The first panel below shades an integral of the probability density function for a single threshold; the second shades an integral of the survival function across all nonnegative thresholds. These are analytical illustrations, with the displayed curves truncated at three; their exact total areas use an infinite integration range.
Figure 2.
Exponential model: one tail probability is density area, while expectation is total survival area
. Details.
Nonnegativity is essential to interpreting the upper tail probability area as : for a general real random variable that area equals the expected value of its positive part. An integrable random variable satisfies , subtracting the expected value of its negative part; infinite terms cannot be canceled. Even when is finite almost surely, its expected value can be infinite. For the shape-one Pareto distribution on , on and for , so the area is . The finite versus infinite expected value distinction is illustrated in Kyle Siegrist, Definitions and Basic Properties: exponential and Pareto expected values.
Why are tail probabilities useful? They answer threshold questions directly, and a concentration inequality can bound them without knowing the full probability distribution. For nonnegative with finite expected value, Markov inequality gives for : a large threshold relative to the expected value forces rarity. The quantile function reverses the question by choosing a threshold for a prescribed cumulative level. If with , then ; an atom of a measure may prevent equality. For the die, , with strict upper tail probability zero and inclusive upper tail probability .
A tail probability describes rarity under a specified probability distribution; it is not automatically a conditional probability after extra information. For with ,
because the threshold events are nested. Thus the die has but . Conditioning changes the sample space and renormalizes its probability measure; the same extreme outcomes can become common in that restricted population.
For independent identically distributed observations with continuous cumulative distribution function , fix the maximum of the first observations and let be the first subsequent observation exceeding it. The probability integral transform gives density on . Conditional on , has a geometric distribution of parameter . Therefore
The masses sum to one, so the waiting time is finite almost surely, but the tail-sum formula for expectation gives . These conclusions require only continuity of , not a density or a strictly increasing distribution function.
Wald's equation Created 2026-10-03 Updated 2026-10-14
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 and
These 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.
Zeta bounds from rounded Pareto variables Created 2026-10-25 Updated 2026-10-31
Let have survival function for , with . Its expected value is . The tail-sum formula for expectation gives
The absolutely continuous probability distribution gives zero mass to the integers, so almost surely and . Taking expectations of gives , which rearranges to the displayed bounds on the Riemann zeta function. Finiteness is justified by and .