Discrete random variable Created 2026-10-06 Updated 2026-10-14
A random variable is discrete when some finite or countable set has . Its probability mass function is ; these nonnegative masses sum to one. An event determined by the value has probability . Values outside may still occur on a zero-probability event without changing this definition.
Countable support need not consist of integers: a random variable constantly equal to is discrete. Integer-indexed tail-sum formulas therefore require a separate integer-valued hypothesis. For the dice sum in random variable, the expected value is and the variance is ; the same answer follows by adding the variances of its independent summands.
For independent identically distributed random variables, the tail-sum formula applied to shows that for every when the first absolute moment is infinite. The Borel-Cantelli second lemma, followed by a countable intersection over positive integer , gives the first limsup assertion.
If had finite limsup along such a sample path, it would eventually be bounded by some finite constant . Then would imply eventually, a contradiction. This is a necessary-integrability counterpart to the strong law of large numbers; without a finite first absolute moment, the normalized sums cannot converge to any finite value.
For a nonnegative random variable and a fixed cap , the tail-sum formula gives
Below the cap, the events and coincide; at and above the cap, the former event is empty. For the second identity, the positive part exceeds precisely when . Thus the two integrals divide the area under the survival function, just as divides each outcome. The capped expected value is always finite, while the excess expected value may be infinite.
For the uniform distribution on the interval and cap , the capped expected value is and the excess expected value is . Directly averaging the capped values also gives . Capping therefore measures a different average from the uncapped expected value two, even when both are finite.
For a nonnegative integer-valued variable, and the tail-sum formula gives . For arbitrary positive real values, that integer-indexed sum equals instead. Two independent constants equal to demonstrate that the product of such tail sums need not equal the tail sum of their product: the two sides are four and three.
Pointwise, the positive integers with are exactly . Thus . The monotone convergence theorem gives . Since ,
These inequalities also hold for infinite expectations. This is the tail-sum formula comparison for a nonnegative real variable.
Put . The hypothesis implies . Since and survival to implies survival to , the tower property of conditional expectation gives
Apply this at and use to obtain
This is a geometric tail bound from a uniform escape probability. The tail-sum formula for a nonnegative integer-valued variable now gives
Assume , or use nonnegative with extended expectations. Let and . For , the discrete conditional expectation is . Therefore Fubini's theorem, or Tonelli theorem in the nonnegative case, gives the tower property of conditional expectation:
Values of a conditional expectation on zero-probability conditioning events do not affect the sum. An unrestricted signed whose expectation is undefined is outside this assertion.
Write . The waiting time for two increments larger than dominates for and has mean , so is finite. Conditioning on the first increment, one step is always consumed; if that increment is below , the remaining independent sequence has the original law. Thus first-step analysis and the tower property of conditional expectation give
This first makes continuous and then gives , with . Hence the uniform-sum crossing time below one has
An independent explanation uses the tail-sum formula: for , since this region is an -dimensional simplex inside the unit cube. Summing from gives . In particular the strict-crossing convention gives almost surely and .
Write the countable supports as and the marginal masses as . Independence gives joint mass . Assuming finite expected values, absolute integrability is justified by Tonelli theorem:
Consequently Fubini's theorem permits factorization of the signed sum, proving the expectation of a product of independent random variables:
The second claim holds as a general assertion with the additional hypothesis that the positive variables are integer-valued. For a nonnegative integer-valued , the pointwise identity and Tonelli theorem give the tail-sum formula
If each is integer-valued, their product is too. Apply this identity to each factor and to the product, then use independence:
Under the literal broader meaning of a discrete random variable, the second claim is false. Two independent constants are positive and discrete, but the left side is and the right side is . More generally the integer-indexed tail sum of a positive real-valued variable is , not . This is the integer-valued hypothesis in the tail-sum formula.
Let be the natural filtration. An integer-valued random variable is a stopping time with respect to when
Thus whether one has stopped by time can be decided from the first observations, without seeing future variables. Equivalently, .
Write the stopped sum as
The event depends only on , so its indicator and are independent random variables. Since and , Tonelli theorem gives
We may consequently exchange expectation and summation. Using the tail-sum formula for proves Wald's equation:
For the renewal process, put and . The random variable is a stopping time. Since , Wald's equation gives
and hence
For , set and . Wald's equation still applies to the stopping time and the independent variables . Because ,
Therefore
By the monotone convergence theorem, as . Combining the bounds proves the elementary renewal theorem
For a fixed word over equally likely symbols, the waiting time for a word in independent uniform symbols has mean , where runs through the lengths of the borders of a word, including the full word. The word lava' has no proper nonempty border, so $$ \boxed{\mathbb E\tau_{\mathtt{lava}}=100^4=100\,000\,000}. $$ The word aa' has borders of lengths and , so
For a direct check, let be the expected remaining time with no trailing a' and $E_1$ with one trailing a'. Then
which gives .
A renewal-reward process consists of i.i.d. regenerative cycles , where is the th cycle length and is the reward accumulated during that cycle. If and , the renewal-reward theorem states that the cumulative reward satisfies
almost surely, with the usual negligible-remainder condition for an unfinished cycle.
For the machine, let be its working lifetime after a repair. The next repair occurs at the first inspection following failure, so one repair-to-repair cycle has length
while its working-time reward is . Since an exponential distribution of rate has mean ,
By the tail-sum formula for the positive integer-valued variable ,
Therefore
and the long-run proportion of time for which the machine is working is
Expanding the square and using the independence of the percolation edges gives
The ratio equals , where is the number of common edges in the two truncated paths. It is at most for , under the convention in the hypothesis; in particular because both paths contain . For every integer ,
The tail-sum formula and the assumed exponential intersection tail therefore yield
Put and . If , the claim follows from . Otherwise, for , part (c) gives
The tail-sum formula then yields
For a nonnegative integer-valued random variable , the tail-sum formula states . It follows by writing and using nonnegativity to interchange sum and expectation.
With , this gives
The Riemann zeta function is finite here because .
For each ,
since is adapted. This verifies directly that is a stopping time.
Set . On , the random walk is at some integer strictly between and . If its next steps are all , it must hit within that block. These future steps are independent of and have probability of being all . Hence
The law of total expectation and mathematical induction give the geometric tail bound from a uniform escape probability:
Therefore . In fact this also proves by grouping the tail-sum formula into blocks of length . No assertion of independence between successive survival events is needed.
Integrating the envelope shows . One trial of rejection sampling draws and an independent from the uniform distribution on , and accepts if . Repeat with fresh independent random variables after each rejection. Ratios need only be evaluated where ; the envelope makes the target zero wherever .
For any measurable set , integration of the conditional probability of acceptance gives
Taking the whole domain gives acceptance probability , and dividing gives . Fresh trials therefore supply independent and identically distributed random variables with target probability density function . The corresponding Monte Carlo estimator is
The proposal count up to and including one acceptance has the geometric distribution
For example, the tail-sum formula gives . Thus the expected cost is proposal draws per accepted target draw.
Let count successful journeys before the first breakdown. The probability of surviving the first journeys is the tail probability . For , independence gives
where again . For a nonnegative integer-valued random variable, the tail-sum formula follows by writing and interchanging nonnegative sums. Therefore
As a separate first-day check using the law of total expectation, if , then . Solving gives the same finite value. This counts only successful journeys, excluding the failed journey.
For , the first digits must all differ from and the next digit must be . Independence gives
Thus has the geometric distribution counting trials up to and including the first success, with success probability . For completeness, its mean follows from the tail-sum formula:
The sum of the geometric series also proves finiteness of this expectation.
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.
Tail-sum formula Created 2026-09-24 Updated 2026-10-18
The tail-sum formula expresses an expected value as the area under a survival function. For every nonnegative random variable ,
This Lebesgue integral and the expected value may both be ; a probability density function is unnecessary. For a random variable taking values in the nonnegative integers, the corresponding sum is
The events and coincide because takes integer values. Thus the strict sum starts at zero, while the inclusive sum starts at one.[ref]
For an original example, let the probability mass function of be
Its expected value computed directly is . The strict tail probabilities at thresholds are : their sum is again . There is no probability mass at two, yet the event still has probability . The survival function has heights on the successive intervals ; each interval has length one, so its integral is the same sum.
Figure 1.
The same expected value from probability masses and survival columns
. The exact constructed probability mass function assigns to . The contribution appears in one survival column, while the contribution appears in three. Filled endpoints give the strict survival function at its jumps; open endpoints show the preceding height. The shaded area is . Details.
The indexing matters numerically. Starting the inclusive sum at zero adds , giving for this example. Starting the strict sum at one omits , giving . For a general nonnegative random variable, replacing with inside the integral is harmless: the difference is , nonzero at only a countable set of thresholds. For each positive integer , at most thresholds can have probability mass at least ; their countable union contains all thresholds with positive probability mass and has Lebesgue measure zero. This reasoning concerns an integral, not equality of the two survival function conventions at every point.
For a continuous original example, take the uniform distribution on the interval . Its survival function is for and zero for . The area is a triangle of base four and height one:
Directly integrating against the probability density function gives the same expected value, . The integral of the probability density function alone is one; it is the survival function whose area is the expected value.
Figure 2.
A uniform density has total probability one and survival area two
. Exact curves for the uniform distribution on . The probability density function has integral one, while the survival function has integral two. Splitting the survival area at gives before the cap and beyond it, the expected values of and the positive part , respectively. Details.
The proof counts layers of each outcome. For a realized value , the indicator function equals one over an interval of length , so
Tonelli theorem permits the interchange because the indicator function is nonnegative; no finite expected value is assumed. Similarly, an outcome contributes one indicator random variable for each of the events that occur:
Again Tonelli theorem applies to the nonnegative sum, or equivalently the monotone convergence theorem applies to its partial sums. This exchanges counting layers within each outcome with averaging across outcomes. The existing integer-valued hypothesis in the tail-sum formula explains what changes when the values are not integers; the tail integral formula for moments weights the layers to obtain higher moments.
For an integrable random variable that can have either sign, apply the nonnegative formula separately to its positive part and negative part :
Integrability makes both integrals finite. More generally the difference defines an extended expected value when at least one is finite; if both are infinite, subtraction does not define an expected value.[ref]
Tail probabilities are often easier to measure or bound than a whole probability density function. For a device's survival time, the survival function records the probability of still operating at each threshold; its integral gives the mean operating time. A finite observation window naturally gives the expected value of a capped nonnegative random variable. For a mathematical bound, for all implies . The tail-sum formula turns control of a whole family of events into control of an average.
Uniform-sum crossing time below one Created 2026-10-06 Updated 2026-10-14
For independent uniform distribution increments on and , let be the first index at which their partial sum exceeds . First-step analysis gives , hence . Equivalently, is a simplex-volume probability and the tail-sum formula sums to . The strict inequality gives almost surely.