Equip the symmetric group with its uniform probability measure and unnormalized Hamming distance. If has Lipschitz constant , it obeys the displayed two-sided bound, and each one-sided tail has the same exponential without the factor two. Reveal a uniform permutation one image at a time. Two possible next images have completion sets paired by swapping those two values, changing exactly two coordinates. Thus the corresponding conditional means differ by at most . Each increment of the Doob exposure martingale has conditional range length at most . Applying the conditional Hoeffding lemma gives ; optimizing the exponential Markov bound proves the bound. A mere absolute-increment bound of gives a weaker constant, so using the range length matters.
Doob exposure martingale 2026-10-07
Expose independent coordinates successively and take the conditional mean of a function after each exposure. These conditional means form a martingale from to . A coordinate oscillation bound gives a conditional interval of length for the corresponding increment, by coupling the unexposed coordinates. Applying the Hoeffding lemma to these conditional ranges proves the McDiarmid inequality.
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 by
For 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.
Hoeffding lemma Created 2026-09-24 Updated 2026-10-14
The Hoeffding lemma controls the entire centered moment-generating function using only an interval width. For an essentially bounded real random variable with finite deterministic bounds almost surely, every real satisfies
Equivalently, . This single-random variable statement needs no independence assumption; independence enters when applying it to the factors for a sum in the Hoeffding inequality. Both signs of are allowed, and equality holds at or when .[ref]
In the convention for a centered sub-Gaussian random variable , the Hoeffding lemma supplies . This upper parameter need not equal the actual variance. For a Bernoulli random variable of success probability ,
The actual variance is , whereas the supplied parameter is for every . This explains part of the conservatism visible in Hoeffding sample size for Bernoulli frequencies.
Figure 1.
Exponential tilting changes the weights but preserves the bounded interval
. The original three-point model has with probabilities and mean zero. Left: tilted masses proportional to for stay within . Right: its cumulant-generating function stays below the Hoeffding lemma bound . Its tilted variance is , smaller than the general width-only ceiling four. Details.
A short proof exposes why the constant is . Put and define exponential tilting by
The tilted probability measure has the same interval of possible values, and differentiating the cumulant-generating function gives . Boundedness justifies these derivatives for every finite . Under any such tilted law, Popoviciu's inequality on variances gives : the variance is no larger than the expected value of the squared distance from the interval midpoint, itself at most . Since , the integral form of Taylor's theorem yields
This expression handles either sign of without changing the argument.
The constant cannot be reduced uniformly over all essentially bounded real random variables. Equal endpoint probabilities at and give , a scaled Rademacher random variable, and
Thus the sharpness is already forced near zero by the variance; the bound need not be equality at nonzero parameters for a particular probability distribution.
Let be a Markov jump process on integer populations, with rates
when , where . Make both axes absorbing, so the fight ends when one population reaches zero. Start at , with ; when is integral this is the printed initial condition exactly. The harmless rounding convention makes the model defined for every integer .
Use the embedded jump chain rather than physical time. Its probabilities of the two losses are respectively and , independently of . It reaches an axis after at most steps; hold it constant thereafter. Put
Before absorption its two increments are and , so
After absorption set . Consequently
is a discrete-time martingale. All populations are at most , so each martingale difference is bounded in absolute value by . The total drift up to step is at most . This is the squared-population near-invariant for stochastic attrition.
The two-sided Azuma-Hoeffding inequality states that a martingale with differences bounded by satisfies . Its exponential estimate follows by applying the conditional Hoeffding lemma to each centered difference, iterating, and optimizing the exponential Markov bound. With and it gives
Let , and let be the final proportion. If the first population survives, then the second is zero and . Hence implies
If the first population is extinguished, and . This can satisfy the indicated deviation event only when , and then . Thus the same implication holds in both cases.
The initial rounding error obeys . Combining it with the drift bound shows that the deviation event forces
for all sufficiently large . Set in the preceding concentration inequality. We conclude
for sufficiently large , and therefore
The symmetric stochastic attrition process thus has exponential concentration of terminal stochastic attrition survivors. The deterministic equations conserve and predict the same surviving fraction, but the martingale argument supplies the stronger exponential probability estimate required here.
Expose the independent coordinates in order and let , . This is the Doob exposure martingale. For fixed earlier coordinates, write . The remaining coordinates have the same distribution for all , and the coordinate-change hypothesis gives . Thus the conditional range of has length at most , and its conditional mean is zero.
Here is the Hoeffding lemma needed for the sharp constant. If a mean-zero random variable lies in an interval of length , set . Its second derivative is the variance under the exponentially tilted law. Under any such law, variance is at most , by comparison with squared distance from the interval midpoint. Since , integration gives for all real . Applying this conditionally and iterating the tower property yields
The exponential Markov bound now gives
For choose . Apply the same argument to and add the two tails, proving the McDiarmid inequality
For , is constant almost surely, and every positive-deviation probability is zero.
For the neighbourhood application, the ambient points must be elements of , equivalently binary strings; the printed is a type error. An -element ambient set could not generally satisfy the stated exponential-size lower bound. Use the uniform product probability space on the Boolean cube and set . Flipping one coordinate changes this Hamming distance by at most one, so . Put . Since , the proved two-sided inequality gives, for ,
Consequently ; the same bound is immediate if . Therefore
This proves the Boolean cube expansion from bounded differences:
The meaningful range is ; real radii are interpreted by the inequality on the integer-valued Hamming distance. The converted TeX's final is another corruption: the original PDF has .
The exponent printed in the original PDF is too strong under the stated increment bound. Take , let equal or with equal probabilities, and set for . This is a martingale with and for . For and ,
Thus the printed inequality is false. The intended two-sided Azuma-Hoeffding inequality is
Here the are deterministic increment bounds. We prove this corrected assertion from conditional exponential moments.
Let . The martingale property gives . For , convexity of the exponential function gives the secant bound on ,
Taking conditional expectation removes the terms containing , so
The last inequality follows term by term from in the power series for and . If the increment is zero and the same bound holds directly. This is the bounded-increment case of the Hoeffding lemma.
Repeated conditioning, without any independence assumption, now gives
Write . If , the Markov inequality gives for ,
Minimizing at gives . Apply the same argument to the martingale for the lower tail, and use the union bound to obtain the boxed result. If , all increments vanish almost surely, so the deviation probability is zero for every . This handles the degenerate case without dividing by zero and proves the correct bound in full.
Use the uniform probability measure on the symmetric group and the unnormalized Hamming distance
Let have Lipschitz constant for this distance. We will prove the one-sided concentration inequalities
Consequently for . A zero Lipschitz constant makes constant, so that case is immediate.
Let be a uniform permutation, reveal successively, and define the Doob exposure martingale
Fix the first images. For an available value , let be the conditional mean when . Given two available values , left-composition with the transposition exchanging is a bijection from completions with next image to completions with next image . It fixes the previously exposed images and changes exactly two coordinates of each complete permutation. Since conditional completions are uniform, averaging the Lipschitz condition over this pairing gives .
Thus, conditionally on the first images, has mean zero and takes values in an interval of length at most . We need the range-length version of the Hoeffding lemma: if a real random variable has mean zero and lies in an interval of length , then
Here is a proof. For , differentiation gives under the exponentially tilted probability distribution. Any distribution on an interval of length has variance at most , because its squared distance from the interval midpoint is at most . Since , integrating this second-derivative bound gives the lemma for both signs of . The same argument holds for every conditional distribution.
Apply it conditionally to each martingale difference and use the tower property of conditional expectation repeatedly:
The exponential Markov bound now gives, for ,
Choose to obtain the upper tail in the box, and apply the argument to for the lower tail. This proves concentration of Lipschitz functions on the symmetric group. Using only the bound in the absolute-increment Azuma-Hoeffding inequality would lose a factor four in the exponent; the conditional range length is what yields the constant needed in part (ii).
Expose the independent coordinates one at a time and define the Doob exposure martingale
For a fixed exposed prefix, couple the future coordinates identically under two choices of . The coordinate-change hypothesis bounds the difference of the resulting conditional expectations by . Thus the increment has conditional mean zero and lies in a conditional interval of length at most . This range bound, rather than merely , gives the sharp constant in the McDiarmid inequality.
Here is a proof of the needed Hoeffding lemma. For a mean-zero random variable in an interval of length , let . Its second derivative is the variance under the exponentially tilted distribution. A random variable in has variance at most : the inequality gives . Hence , and imply , for either sign of .
Apply this conditionally to each increment and iterate the conditional expectation:
For , Markov's inequality bounds the upper tail by . Taking and then applying the same argument to gives
At the bound is immediate. If all vanish, is constant on the product support and the positive tails are zero, so that degenerate case is handled directly.
For a binomial random graph, let coordinate be the entire vector of edges from vertex to vertices of smaller label. The coordinates are independent finite probability spaces. Changing coordinate changes only edges incident to that one vertex. Deleting the vertex gives the same graph under both outcomes, and each outcome's chromatic number is either that graph's chromatic number or one more. Thus the coordinate range is at most one. Taking all and proves vertex exposure for chromatic number:
Using individual edges as coordinates would give a weaker scale; grouping the incident edges is what yields the required bound.
For the expectation asymptotic, take fixed , put , and write . We outline both bounds and the step that turns probability estimates into an expectation estimate. For each fixed , the expected number of independent sets of size is
Its logarithm is . Thus Markov's inequality gives with probability tending to one, and yields the corresponding lower bound on its expectation.
For the upper bound, set and , with . The key uniform fact is that every vertex subset of size at least contains an independent -set with probability tending to one. For a fixed subset of size , let count its independent -sets and let . The normalized dependency sum in Janson inequality is bounded by
The term is . The remaining overlap terms give the same order or less: use for large , and split the sum at . For the lower half the terms beyond decrease at the initial endpoint and are exponentially small at the other endpoint; for the upper half, makes every endpoint exponent negative of order . Also is exponentially small on that scale. The exponential form of Janson inequality therefore gives, uniformly for ,
for a positive constant depending only on . A union bound over at most subsets succeeds, because is of order . This is independent sets in every large subset of a dense random graph.
On that event, repeatedly remove an independent -set and assign it one new colour until fewer than vertices remain; colour the remainder individually. This gives . The failure probability is exponentially small compared with , and always , so the failure event contributes negligibly to the expectation. Combining the upper and lower bounds and then letting proves
This is the chromatic number of a binomial random graph asymptotic. The slash in the printed expression must be read with as the denominator; a multiplicative reading would eventually exceed . At the endpoint probabilities and , the chromatic numbers are respectively one and for , so this logarithmic formula is intended for .
The Hoeffding lemma for a Bernoulli distribution variable gives . Multiplication of the moment-generating functions of the independent random variables gives . Thus the centered count is a sub-Gaussian random variable with variance proxy . The Chernoff bound, optimized at , gives
The same estimate holds for the lower tail by applying the Chernoff bound to . No independence between different bin counts is needed.
For a kernel for density estimation with integral one and a smoothing bandwidth , the univariate kernel density estimator is
Its expected value is
This is the convolution identity. It holds wherever the integral is defined, in particular everywhere for the bounded kernel used below. For a nonnegative kernel for density estimation, Tonelli theorem also gives the identity as an extended nonnegative integral. A signed kernel for density estimation instead requires absolute integrability for this interchange.
For the centred unit-width uniform kernel, substitute :
Put . The Taylor theorem with Lagrange remainder gives
The odd function term integrates to zero, while . Hence the bias of a kernel density estimator obeys
This is a second-order pointwise bias bound for kernel density estimation. Existence and boundedness of the second derivative suffice for the stated remainder; continuity of that derivative is not an extra assumption.
For concentration, write
The are independent and identically distributed random variables with a Bernoulli distribution, and . The required concentration bound follows from the Hoeffding lemma. We prove its Bernoulli case directly. With
we have and , where is the exponentially tilted success probability. Therefore for every real . If or , the centred variable is identically zero and the same bound holds directly.
Independence and the exponential form of the Markov inequality now give, for ,
Choose . Applying the same argument to the lower tail and adding the probabilities proves the Hoeffding inequality
To obtain the requested variance constant, use the additional bound that a probability is at most one. Set and . The tail integral formula for moments, justified by Tonelli theorem, yields
Thus
The clipping at one is essential for this integration argument to give that constant. It is an instance of a second moment bound from a clipped Gaussian tail. The exact Bernoulli distribution calculation also gives , an even stronger bound.
Let and . To prove the Hoeffding lemma, take a centered random variable and its cumulant-generating function . Under exponential tilting, is the variance of . The Popoviciu inequality on variances gives
since under any such tilt the support remains , and . Because , integrating twice gives for ; applying the same argument to handles the opposite tail.
The independence of the gives . The Markov inequality, in the Chernoff bound argument, yields
where the minimum is at when . Apply the same argument to and add the bounds to obtain the Hoeffding inequality:
If , every centered is identically zero and the tail probability is zero; the displayed exponential is interpreted by its zero-variance limit.
For the Bennett inequality, write , and first assume and . For , boundedness and centering give
For , expanding the moment-generating function and using the permitted interchange of sum and expected value,
Negative odd moments cause no difficulty because the estimate is an upper bound term by term. The independence of the and the Chernoff bound then give
The derivative vanishes at , and substitution gives with the Bennett rate function . The same absolute bounds apply to , so
If , all centered are zero almost surely; if , the same is immediate. Handle those cases directly rather than divide by zero. Both derived concentration inequalities also hold with , by the same Markov inequality argument or by letting a smaller positive threshold increase to .
For the binomial distribution, write with independent and identically distributed random variables having the Bernoulli distribution with parameter . Then has range , width one, and variance . For large , , so and . Set .
The Hoeffding inequality gives
After truncation at one, this is asymptotically the trivial probability bound. The Bennett inequality instead gives
Since and by a Taylor expansion,
Thus the Bennett bounds for sparse binomial fluctuations yield
The Bennett inequality supplies the smaller raw exponential bound for every fixed and all sufficiently large . If , clipping probability upper bounds at one makes both eventually trivial; for , the Bennett inequality retains a nontrivial limiting bound. This distinction avoids claiming a probability improvement after clipping when both raw bounds exceed one.
For each column , the normalized score is
The errors are independent Rademacher random variables, and . The Hoeffding lemma therefore makes a sub-Gaussian random variable with variance proxy , so
The union bound with gives
For this becomes
In particular, if , the lower bound tends to one as .
Hoeffding lemma states that if almost surely, then for every real ,
Convexity of bounds it on by the secant joining its endpoint values. Taking expectations reduces the centered moment-generating function to that of a two-point variable on having the same mean. After rescaling to , its logarithm is
where is its mean. Twice differentiating in shows that the second derivative is a Bernoulli variance and hence at most . The value and first derivative vanish at zero, so Taylor's theorem gives at most . Rescaling proves the claim.
For independent Bernoulli distribution upper-triangular entries of a symmetric zero-diagonal adjacency matrix of a graph, put . For a unit vector , has sub-Gaussian variance proxy at most , by the Hoeffding lemma. Hence . The volumetric bound for Euclidean metric nets gives a -metric net of the unit sphere with at most points. The quadratic form net bound gives on that net. The union bound gives ; integrating this tail proves the displayed expectation bound.