Cantelli inequality Created 2026-10-06 Updated 2026-10-14
Cantelli's inequality uses a mean and variance to control deviations in one specified direction. For a real random variable with expected value , finite variance , and ,Applying the same statement to gives the lower tail probability bound . No independence or particular probability distribution is required. If , the random variable equals almost surely and both positive-threshold tail probabilities are zero.
For variance one and a threshold two above the mean, the upper-tail probability is at most . Applying the two-sided Chebyshev's inequality to contain that upper event would give the weaker bound . For the standard normal distribution, the actual upper tail probability at two is about , much smaller than either bound. Yet the two-point probability distribution in equality in Cantelli's inequality attains , showing why the smaller Gaussian value cannot be promised from these two moments alone.
Cantelli's inequality sharpens a variance-only upper-tail bound and is exact for a two-point probability distribution
. Left: actual upper tail probabilities for the standard normal distribution are compared with Cantelli's inequality and the capped two-sided Chebyshev's inequality used as an upper-tail bound. Right: masses at and at two have mean zero and variance one. The upper mass is included by the non-strict threshold . These are specified mathematical models, not observations. Details.A short explanation is to centre and choose a nonnegative shift . On , the square is at least , so Markov's inequality givesThe best shift is , giving the displayed bound. Choosing the shift before squaring exploits the direction of the deviation; squaring the unshifted random variable treats both directions together. This shifted-square proof is also the strategy requested in the University of Utah's 2005 qualifying problem on Cantelli's inequality. [ref]
https://quals.math.utah.edu/topics/borel-cantelli-lemmas/. University of Utah Mathematics, 2005 question 4: shifted-square Cantelli bound
.The one-sided improvement should be used for a one-sided question. Adding upper and lower bounds by the union bound gives for . When , that is at least the Chebyshev's inequality bound ; when , both two-sided expressions exceed one and must be capped. The separate one-sided bounds generally cannot be attained simultaneously by the same probability distribution.
Chebyshev's inequality 2026-10-14
For a real random variable with finite variance , expected value , and a threshold , Chebyshev's inequality givesOne can also cap this upper bound at one, since a probability cannot exceed one. If , taking gives . For example, at least of the probability lies strictly within two standard deviations of the mean. This statement needs only the finite variance assumption. If the variance is zero, almost surely and every positive deviation threshold has zero tail probability.
Consider a random variable uniformly distributed on . Its expected value is zero and its variance is . At the actual tail probability is , while Chebyshev's inequality gives . At the actual tail probability is zero, while the bound is . A valid bound need not describe the exact shape or bounded support of a particular probability distribution.
For the standard normal distribution, the actual tail probabilities beyond two and three standard deviations are approximately and , whereas the general bounds are and . More knowledge of the probability distribution can therefore improve the estimate. The comparison does not diminish the guarantee: the three-point example in equality in Chebyshev's inequality attains it exactly.
The proof is a one-line use of Markov's inequality on the nonnegative random variable . The event equals , and . This explains why the denominator is squared and why a finite variance supplies the necessary information. [ref]
https://ocw.mit.edu/courses/18-175-theory-of-probability-spring-2014/887e96172e82a615dac16fb26702d88b_MIT18_175S14_Lecture8.pdf. Scott Sheffield, MIT 18.175, lecture 8: Markov and Chebyshev bounds
.One important use is control of a sample mean. For independent and identically distributed random variables with finite variance , the variance of a sample mean is . HenceFor every fixed tolerance, the bound tends to zero as the sample size grows, proving the finite-variance case of the weak law of large numbers. For and , makes the bound . This is a sufficient bound under the stated assumptions, rather than an optimal required sample size.
An early historical source is Pafnuty Chebyshev's 1867 paper “Des valeurs moyennes”, published in French translation by N. de Khanikof. Its opening theorem bounds deviations of sums using their expected values and second moments, linking averages with control of exceptional outcomes. [ref]
https://www.numdam.org/item/JMPA_1867_2_12__177_0.pdf. Chebyshev, Journal de mathématiques pures et appliquées, 2nd series 12, 177–184 (1867)
.Continuous square-integrable martingales on a fixed finite horizon form a complete space under the displayed terminal norm, modulo indistinguishability of stochastic processes. A terminal-norm Cauchy sequence admits a subsequence whose successive differences have norms below . The Doob L2 maximal inequality and Markov's inequality make the probabilities that these differences have suprema above summable. The Borel-Cantelli first lemma then gives an almost surely uniformly convergent telescoping series, so the limit has continuous paths.
Conditional-expectation contractivity gives convergence in at every fixed time, and passage to the limit in the martingale identities proves that the limit is a martingale. Adaptedness can be retained by taking the pointwise finite subsequence limit when it exists, and zero otherwise. The original Cauchy sequence converges in terminal norm to this limit. This completeness allows the Itô isometry to extend stochastic integration from simple predictable integrands to the full square-integrable integrand space while retaining a continuous martingale version.
Equality in Cantelli's inequality 2026-10-14
For and , place probabilitiesTheir weighted deviations cancel, giving expected value ; their weighted squared deviations give variance . Only the upper point belongs to , so its tail probability attains Cantelli's inequality. With , , , the locations are two and , with masses and . The optimized shift makes the lower point zero before squaring, explaining equality in the Markov's inequality step.
The threshold convention matters: this example has . For a strict threshold, placing the upper point at instead gives probabilities approaching the same bound as , with the prescribed mean and variance retained. Extra restrictions on the support of a probability distribution can change which extremal models are allowed.
Equality in Markov's inequality Created 2026-10-14 Updated 2026-10-25
For a finite-expected value nonnegative random variable and , equality in the uncapped Markov's inequality holds exactly when takes only and almost surely. Indeed the nonnegative difference has zero expected value exactly when it vanishes almost surely. Giving probability yields and . This shows the bound cannot generally be reduced using only the nonnegative random variable's expected value.
Exponential Markov bound Created 2026-09-24 Updated 2026-10-14
Applying Markov's inequality to the positive random variable givesHere is the moment-generating function, and the useful bound requires it to be finite at the chosen . Optimizing over gives the Chernoff bound method: an exponential function weights large values more strongly before applying the same average-budget argument.
For example, let have the Poisson distribution with parameter one. Its expected value and variance are both one, and its moment-generating function is . At threshold four, choosing givesThis minimizes the exponent because its derivative is , with positive second derivative. The direct Markov's inequality bound is , and the two-sided Chebyshev's inequality bound, applied to a deviation of at least three from the mean one, is . The exact Poisson distribution tail probability is . These compare three valid bounds obtained from progressively different information; none is an exact tail probability formula for general random variables.
Expurgation of a codebook 2026-10-31
Expurgation discards messages with unusually high conditional decoding error. If a codebook with equally likely messages has average error at most , at least messages have individual error at most , by Markov's inequality. Retaining those messages and restricting the decoder's candidates gives a codebook with maximal error at most , provided removal of candidates cannot spoil a previously successful decoding. This is the case for bounded-distance decoding with errors on ambiguity, and for a decoder that retains its former decisions whenever the decoded message remains.
For a sequence of block lengths , halving a book changes its logarithmic rate by , which tends to zero. Thus a vanishing average-error bound from a random coding construction can be converted into a vanishing maximal decoding error probability at the same limiting rate. The probabilistic construction first supplies a deterministic book with sufficiently small average error; expurgation is a subsequent deterministic step.
First moment method Created 2026-09-24 Updated 2026-10-14
The first moment method uses the expected value of a count to control whether any counted occurrence exists. For a random variable taking nonnegative integer values, Markov's inequality givesConsequently, implies , proving that an outcome with no counted occurrence exists. For a sequence of such counts, shows that with probability tending to one. The first moment method uses information about the average count, while the complementary second moment method also uses its variance.
Fractional moment criterion for convergence in probability Created 2026-10-25 Updated 2026-10-31
For , Markov's inequality gives the displayed bound, so implies convergence in probability to zero even when the first absolute moment does not tend to zero. For products of independent and identically distributed factors, it suffices that . With the uniform distribution on , the product of independent uniform random variables formula makes this . Since as , such an exists whenever .
Suppose are identically distributed independent random variables with , , and not constant almost surely. For each , strict concavity of givesThe moment is finite because on . Let . Independence and Markov's inequality giveThe series of the latter probabilities is finite. The First Borel-Cantelli lemma, applied for the countable choices , proves almost surely. This proof requires neither existence nor integrability of .
Although this nonnegative martingale has at every time, its terminal expected value is zero. It is therefore not uniformly integrable. The contrast is useful: bounded expected values ensure almost sure convergence here, but do not allow preservation of the expected value through the limit.
For Brownian motion started at zero, condition at time . If the stopping time exceeds while the running absolute maximum stays below , the path must remain in a fixed interval for another time units. Its expected exit time from this interval is at most . Markov's inequality yields the displayed bound. Integrating it against for a function of moderate growth, then absorbing the small tail term, proves .
Hoeffding inequality Created 2026-09-24 Updated 2026-10-14
The Hoeffding inequality turns finite interval bounds and independence into exponentially small tail probabilities for a sum. It requires neither a normal distribution nor identical probability distributions. Let be independent essentially bounded real random variables, with deterministic finite bounds almost surely. Define the centered sum and its squared-width budget byFor and ,The union bound therefore gives . If , every is constant almost surely, so and both positive-threshold tail probabilities vanish. The equal-width version is stated in the authored Stanford notes.[ref]
The quantity is a sum of squared interval widths, not the variance of . Centering changes the endpoints to and , leaving each width unchanged. For example, independent random variables in and have , whatever their expected values or probability distributions. A deviation at least three above their total expected value has probability at most . If all widths equal , the sample mean satisfies
Independence is essential to this general guarantee. Take one Bernoulli random variable with success probability and set every . Each lies in , but for every the sample mean is either zero or one. Thus , whereas incorrectly inserting these dependent observations into the formula would give , less than one for . Some special dependent models have their own valid concentration inequalities; arbitrary statistical dependence cannot be ignored.
For the short proof, apply Markov's inequality to with , factor the expectation using independence, and apply the Hoeffding lemma to each factor:Minimizing this quadratic polynomial at gives the upper tail probability; applying it to gives the lower one. This is the Chernoff bound method. The original 1963 article is Probability Inequalities for Sums of Bounded Random Variables by Wassily Hoeffding; its publisher record identifies the article, but its full text was unavailable during this source check. The argument above is a direct derivation rather than a claim to have inspected that article's proof.
Let be a nonnegative integer-valued random variable with , where and are integers. On , the integer is at least . Markov's inequality gives . Independent restarts therefore need at most attempts in expected value to achieve . The denominator bound on the expected value matters for this runtime guarantee.
Arrange a uniform random permutation of distinct ordered elements around a circle, and let be the greatest number of consecutive entries that appear in increasing order. Put . Then as .
Let count increasing consecutive blocks of length . Each of the starting positions succeeds with probability , so . For , disjoint blocks have independent relative orders; blocks overlapping with a start displacement are both increasing precisely when their length- union is increasing. ThusConsequently Markov's inequality gives , while Chebyshev's inequality gives for sufficiently large . The latter uses . Both bounds vanish. These are consecutive cyclic runs; allowing arbitrary skipped entries is a different permutation statistic.
Markov's inequality 2026-10-14
For a nonnegative random variable and threshold , Markov's inequality givesThe useful case has finite expected value; an infinite right side gives no finite information. The bound also holds if is nonnegative almost surely. Combining it with the elementary bound one gives . Nonnegativity is essential: negative values could otherwise cancel the contribution of large positive values to the expected value.
The idea is an average budget. Every outcome where contributes at least times its probability to , and the other outcomes contribute nonnegative amounts. Formally, the indicator function gives ; taking the expected value proves the bound. [ref]
https://ocw.mit.edu/courses/18-175-theory-of-probability-spring-2014/887e96172e82a615dac16fb26702d88b_MIT18_175S14_Lecture8.pdf. Sheffield, MIT 18.175, lecture 8: the expectation argument
.For example, let take , , , with respective probabilities , , , . Its expected value is . At , the tail probability is , while the bound is . At , the tail probability is , while the bound is . A different probability distribution with the same expected value, putting masses and at and , attains the bound exactly at .
Markov's inequality is useful when a moment is easy to compute but a full probability distribution is difficult to determine. A nonnegative count with expected value less than one must have some positive probability of being zero, giving the first moment method. Applying the same bound to a squared centered random variable gives Chebyshev's inequality. Applying it to an exponential function of a random variable gives an exponential Markov bound, which can exploit more than a single moment.
Past exam of the communication Theory course of the University of Oxford 2007 4 b Solution 2026-10-31
A radius- Hamming decoder outputs the unique codeword within distance of the received word, if there is one. Ambiguous cases and absent candidates can be declared errors, or assigned arbitrarily for an error bound. The average error is the mean of the conditional error probabilities over the equally likely transmitted messages.
Let be the size of a Hamming ball. For any transmitted random codeword, the channel noise weight is . Decoding can fail only if or another codeword lies within distance of the output. Conditional on the output, each independently sampled competing codeword is still uniform on the whole word space, so has probability of lying in that ball. A union bound yieldsThis is an average over the random code construction as well as over messages and noise. It implies existence of at least one deterministic codebook with average error no greater than this bound, rather than asserting the same inequality for every randomly sampled book.
Choose a target rate and a small such that and . Let and . The standard Hamming-volume estimate is : for , each binomial probability term with is at least , and summing proves this bound. Thus the union-bound term decays exponentially, while by the law of large numbers or a Chernoff bound.
There exists a -message book with average error . At least half its messages have individual error at most , by Markov's inequality on the uniformly chosen message. Keep of these and discard the rest. Restricting the decoder's candidate set cannot spoil a previously unique successful decoding. The retained book therefore has maximum error at most . For large its retained codewords must be distinct: identical words could not both have conditional error below one half. This expurgation of a codebook proves reliable communication at every rate below , while converting an average-error estimate into the requested maximum-error conclusion.
Chebyshev's inequality assumes a real random variable with finite expectation and finite variance . For every real ,No independence assumption is needed. Applying Markov's inequality to the nonnegative random variable proves the formula, including the zero-variance case.
Set . Independently sample an edge coloring exactly as in part (d), count its monochromatic copies of by examining all four-vertex subsets, and accept precisely when . Otherwise start over with a fresh edge coloring.
To prove an expected polynomial time bound, the existence argument alone is insufficient: we need a lower bound on the acceptance probability at this exact threshold. Since is a nonnegative integer with expectation , rejection implies . Markov's inequality therefore gives the integer-valued expectation threshold restart boundThe number of attempts has a geometric distribution, with expectation at most . Sampling the edge coloring costs random bits, and checking all four-vertex subsets costs operations, since only six edges must be tested per subset. HenceThis is a randomized algorithm that always returns an edge coloring meeting the original threshold and terminates with probability one. The stated operation count uses -bit counters; counting their bit complexity explicitly introduces at most a further logarithm factor and still gives polynomial time. For , return any edge coloring immediately.
For a variable of finite variance and , Chebyshev's inequality isOn that event, . Thus , proving the assertion. Equivalently apply Markov's inequality to the squared deviation.
Let count the four-vertex sets spanning a clique. Its expectation is . If , then and Markov's inequality gives .
Now suppose . Then . Two distinct clique indicators are independent unless their vertex sets share at least two vertices. An overlap of two vertices gives ordered pairs requiring eleven distinct edges; an overlap of three gives pairs requiring nine edges. ConsequentlyThe preceding second-moment bound therefore gives . Thusis a threshold for the appearance of a four-clique. Sharing just one vertex creates no dependence because the two edge sets are disjoint.


