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.
Choose a Borel measurable function version of the posterior success probability . Conditional on , predicting zero has error probability and predicting one has error probability . A Bayes classifier for zero-one loss is therefore
Either decision is optimal when . The displayed Bayes risk also equals and is unaffected by changing on a -null set.
For any measurable set , independence and the uniform distribution of give
Likewise the probability with label zero is . These sets determine the joint probability distribution, so
The same construction makes all training pairs independent and identically distributed random variables.
Fix a feature-measurable nearest-neighbour tie-breaking rule, for example increasing original index for observations at equal Euclidean norm distance from the query. This is important: the ordering may depend on the features, but not on the or labels. Let be the label attached to the th ordered feature. The classifier from the K-nearest neighbors algorithm is
The displayed rule resolves a tied vote in favour of one; any fixed vote convention would also define the method. When , this is the one-nearest-neighbour classifier .
Write for the selected original index. Conditional on all features , it is fixed, and is still uniform on . The two decisions being compared are
The latter is an oracle comparison rule: its relabeling is recomputed at each query , rather than being a fixed relabeling of the training data for all queries. For a variable with the uniform distribution on , the two threshold indicators at differ exactly when lies between them, an interval of length . This Bernoulli coupling by a shared uniform random variable proves
Take the test pair independent of the training data and its auxiliary uniforms. Let , and interpret as conditional misclassification risk given . The tower property of conditional expectation gives . Conditional on the test feature and all training features, and are independent variables with a Bernoulli distribution of parameter . Consequently, for every ,
This is an exact finite-sample equality, not merely a limit.
The two error indicators can differ only if the two classifiers disagree, so
The permitted nearest-neighbour approximation theorem states that the last expected value tends to zero for the feature-based selection rule. This establishes the one-nearest-neighbour asymptotic risk
For , put . Then , and . Integrating gives the Bayes risk bound for one-nearest-neighbour classification
Thus a one-nearest-neighbour classifier need not achieve the Bayes risk: for constant , its limiting misclassification risk is , while .
Feature-based neighbour tie-breaking is required. The convention cannot be dropped for arbitrary . For a counterexample, take almost surely and constant , and choose among the coincident neighbours the one with the smallest . Then the predicted label is one with probability , so its misclassification risk tends to , exceeding the claimed upper bound . The corrected theorem uses ties determined independently of the uniforms and labels, as above.
Let and be Radon-Nikodym derivatives. Use the following normalizations of the Kullback-Leibler divergence, total variation distance and unnormalized Hellinger distance:
We use and assign infinite Kullback-Leibler divergence if , where denotes absolute continuity of measures. Common domination alone also suffices for the inequalities with the extended-value convention. The negative part of the logarithmic integral is integrable: on , . Thus the extended-value integral defining the Kullback-Leibler divergence is well-defined. These expressions do not depend on which common dominating measure is chosen. The Kullback-Leibler divergence is generally asymmetric and therefore fails a defining property of a metric.
For completeness, the integral formula for total variation distance follows by taking : since , the positive and negative parts of have the same integral, and this set attains the supremum.
Put , by the Cauchy-Schwarz inequality. A second application gives
The logarithmic inequality in the hint implies for . Apply it to on :
Multiplying by and integrating proves
If on a set of positive -measure, the right side is finite but the Kullback-Leibler divergence is infinite, so the inequality is immediate. Thus
This total variation–Hellinger–relative entropy inequality requires the stated Hellinger distance normalization for its first constant. With the alternative convention , the correct comparison is and . In particular, and have .
Here is a testing form of the Le Cam two-point lemma. Suppose two parameter values in a metric space have separation , and let be the corresponding observation laws. Every estimator satisfies
To prove it, classify by the closer of the two parameters, breaking a tie in favour of one. Let . On , the triangle inequality implies , while on it implies . Hence the sum of the two probabilities in the display is at least
At least one is at least half the sum, proving the claim. It also gives a lower bound for the maximum expected metric loss.
For absolute-error loss, or any loss given by a metric, there is a stronger expectation form. Take densities relative to and use the triangle inequality under their overlap:
Therefore the Le Cam lower bound under absolute-error loss is
Both arguments are valid for randomized estimators as well, by adjoining the independent randomization to the observation; doing so does not change total variation distance.
For the normal distribution model, assume the usual nondegenerate convention and use the full product observation laws. Choose
For one observation, its Gaussian log likelihood ratio is
Under the first law, and . Thus the Kullback-Leibler divergence between normal distributions is
For the independent and identically distributed random variables, the joint log likelihood ratio is the sum of the individual ones, so the Kullback-Leibler divergence of the two full statistical samples is . The comparison just proved implies . Applying the expectation form of the Le Cam two-point lemma gives
This is a Gaussian location minimax lower bound under absolute-error loss. The constant may depend on the fixed known , but neither on the estimator nor on . If a signed nonzero scale were used, the same result holds with in place of . If zero noise were allowed, would estimate exactly, so a positive lower bound would be false; positive variance is necessary.
Let be independent and identically distributed random variables with the fair Bernoulli distribution, and put
Relative to , this fair-coin doubling martingale satisfies : while alive it doubles with probability and becomes zero otherwise. Its expected value is .
The probability of an infinite run of ones is , so is eventually zero almost surely. However,
Thus the martingale lacks convergence in L1 to its limit from almost sure convergence. Nor can it have convergence in L1 to any other limit: convergence in L1 implies convergence in probability, whose limit is unique up to almost sure equality.
Split the adjacent products into two subsequences:
Within each subsequence the pairs use disjoint coordinates, so each subsequence consists of independent and identically distributed random variables. The two subsequences need not be independent of each other. By independence within a pair,
Apply the strong law of large numbers from (c) separately to obtain and simultaneously almost surely. Since
and both prefactors tend to , the strong law for adjacent products gives
Fix an integer and consider the independent increments
For fixed these are independent and identically distributed random variables with the normal distribution , so . The second Borel-Cantelli lemma gives for infinitely many , almost surely. Intersecting these probability-one events over the countably many preserves probability one.
On any path in this intersection, uniform continuity on would give some such that whenever . Choosing with contradicts the existence of an increment . Therefore Brownian paths are not uniformly continuous on the half-line:
The event is measurable: for continuous paths, uniform continuity can be tested by countably many pairs of nonnegative rational numbers and tolerances . Brownian motion has uniform continuity on every compact time interval, but almost surely fails it on the whole half-line.
For , the nearest neighbour distance is the th order statistic of . Each has continuous distribution function on . The probability integral transform makes independent and identically distributed random variables with the uniform distribution on . Monotonicity of gives , a uniform order statistic. Strict monotonicity is not needed at this stage.
For , counting observations below gives
Differentiating and cancelling consecutive terms gives the Beta distribution:
The Gamma function identity identifies this with the stated normalization. Ratios of Beta function integrals yield the moments
This is the probability content of a nearest neighbour ball identity, specialized to intervals on the real line.
Now write . The Lipschitz bound gives
Thus
Strict positivity of the probability density function makes continuous and strictly increasing from zero to one, so its inverse function is defined for every .
For the requested conditional calculation, suppose . At the preceding bound gives
Therefore , and substituting in the approximation proves the inverse probability content bound for a Lipschitz density:
The same argument works, without , on the meaningful local range with .
Since the nearest neighbour density estimator obeys , its conditional bound follows from the Beta distribution moments:
Hence, under the printed location condition,
The conditional inverse function bound also bounds , so the expected value in this calculation is finite under those formal hypotheses.
There is, however, a genuine flaw in the original PDF: the printed condition has no admissible points when is strictly positive on all of . A probability density function on all of cannot have Lipschitz constant zero, so . Its Lipschitz bound forces
Integrating this triangular lower envelope gives the Lipschitz density height bound
The inequality is strict because the probability density function has positive mass outside the finite interval. Thus everywhere. The last two conditional conclusions above are valid implications but vacuous as printed. Dropping strict positivity gives only , with equality forcing the entire probability density function to be the normalized triangular envelope. The local inverse bound does not justify replacing the printed condition by its reverse in the final expected value bound, since ranges over all of .
For independent and identically distributed random variables with distribution function , let be the sample maximum. In extreme value theory, belongs to the maximum domain of attraction of a nondegenerate distribution function when there exist and such that
at every continuity point of . Thus the normalized sample maxima have convergence in distribution to .
A positive measurable function has regular variation at infinity with index , written , if
The case defines a slowly varying function; equivalently a regularly varying function is with a slowly varying function.
Write for the survival function and for the right endpoint of a distribution. For , use the following standard extreme value theory normalization conventions:
They are respectively the Fréchet distribution, the negative Weibull distribution, and the Gumbel distribution for maxima. The negative Weibull distribution is supported to the left of its finite endpoint; it is not the usual positive Weibull distribution.
The necessary and sufficient maximum domain of attraction criteria are:
  • For the Fréchet distribution,
    Equivalently for every .
  • For the negative Weibull distribution,
    Equivalently as , for every .
  • For the Gumbel distribution,
    Here is a Gumbel auxiliary function, and can be finite or infinite. For each fixed , the shifted argument lies below eventually. This exponential tail-ratio condition, rather than regular variation with a fixed finite index, characterizes this case.
For the corresponding sufficient hazard function conditions, assume is absolutely continuous near , its survival function tends to zero there, and its probability density function is positive there. Write . The Von Mises conditions for extreme values give
The last condition additionally assumes that the reciprocal hazard function is continuously differentiable near the endpoint. It concerns the derivative of the reciprocal hazard function, not the derivative of the hazard function itself. Equivalently, when is differentiable, it is .
To see the connection, taking an integral of the hazard function gives
The first two limits make the logarithmic tail ratios over multiplicative or endpoint-distance intervals tend to or , giving the required regular variation. For the Gumbel distribution, set . The derivative condition makes uniformly on bounded -intervals, so
The endpoint assumptions ensure these shifts are admissible: at an infinite endpoint , and at a finite endpoint . These are sufficient smooth-tail conditions; the tail-ratio characterizations above are necessary and sufficient without differentiability assumptions. For a source using the same reciprocal-hazard convention, see Smith and Weissman's university lecture notes, equations (2.18)–(2.24).
For the Gamma distribution with integer shape and rate one, let . The base case is , and integration by parts gives
Induction proves
This survival function has the asymptotic form ; for the relation is exact. Put . For every fixed real , and . The proposed centering satisfies
so
Only the highest-degree term contributes to the limit, with the same reasoning covering . The Taylor expansion now gives
because . Therefore the Gumbel limit for gamma maxima is
Equivalently, has convergence in distribution to the standard Gumbel distribution, with scale .
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.
Use base-two logarithms. The weakly typical sequence definition is
Equivalently, . By the weak law of large numbers applied to the independent and identically distributed random variables , the probability of this typical set tends to one.
This captures the usual probability scale of a long sample, but it need not make every symbol frequency representative. For a fair binary source, every word has probability and , so even the all-zero word is weakly typical. The strongly typical sequence definition additionally controls empirical symbol frequencies and excludes this word for small tolerance. Thus weak typicality agrees with the high-probability-set intuition, while allowing individually unrepresentative members.
Let be independent Rademacher signs, also independent of the i.i.d. sample . With the normalization, the Rademacher complexity is
The Rademacher symmetrization inequality is
The Bounded differences inequality states that if for independent random variables , and replacing only can change by at most , then for every ,
The same estimate holds for the lower tail .
The event is . Since has affine branches of slope magnitude , this preimage is, up to endpoints, a disjoint union of intervals of length and has measure .
More generally, for every binary word , its itinerary cylinder
is, up to finitely many endpoints, one monotonicity interval of and has measure . Therefore
so the are independent and identically distributed random variables, each with the Bernoulli distribution of parameter .
The finite itinerary cylinders have diameters at most . Their endpoints form a dense set, so their unions generate the Borel sigma-algebra after completion by null sets. Thus
in the standard probability-space convention that σ-algebras are identified modulo null sets.
There is a small literal endpoint defect in the uncompleted formulation of the question: , , and all have the all-zero itinerary, so cannot separate these Borel singletons. Consequently the displayed equality is false as an equality of raw Borel σ-algebras with the stated open interval, but it is true after completion and modulo null sets, which is the version used in the ergodicity argument.
The strong law of large numbers states that if are independent and identically distributed random variables with , then
almost surely. Under the stronger fourth-moment hypothesis, it has a short proof. Put , , and . Independence and centering make every term in the expansion of vanish unless each index occurs at least twice, so
For every , the Markov inequality gives
The probabilities are summable, so the first Borel-Cantelli lemma says that occurs only finitely often almost surely. Apply this simultaneously to to obtain almost surely, which is the claimed law.
Because is a martingale,
Writing
and using gives
Thus
For signs , repeated use of the tower property of conditional expectation gives
Hence the increments are IID symmetric signs, proving the symmetric signs forced by the martingale property result. Thus is a simple symmetric random walk.
The source is reliably encodable at rate if, for each block length , there are an encoder with at most outputs and a decoder such that the block error probability
tends to zero as .
Its information rate is the limiting information entropy per source symbol,
when this limit exists.
Let be independent and identically distributed random variables with the standard Cauchy distribution, whose probability density function is
Its first absolute moment diverges since
On the other hand, its characteristic function is . The characteristic function of a sum of independent variables therefore gives
Thus the stability of the Cauchy distribution implies that has the standard Cauchy distribution for every . In particular,
where is standard Cauchy and denotes convergence in distribution.
Assume that wherever on the part of the space relevant to . The importance sampling algorithm draws independent and identically distributed random variables from , forms the weights
and returns
A change of measure gives
Hence the estimator is unbiased whenever the expectation exists, and, if , the strong law of large numbers gives almost surely.
Let be independent and identically distributed random variables, let , and write . Cramér theorem states that the empirical means obey a large deviation principle with good rate function . In particular, for ,
with the usual extended-real interpretation; the analogous lower-tail formula holds for .
Fix and then . By the assumptions on the derivative , there is a unique with . Apply exponential tilting to each summand:
Under the product tilted law, the variables remain independent and identically distributed random variables and have mean . Hence the strong law of large numbers implies that, for every ,
Changing measure on this event gives
Therefore
First let and then . The continuity of a convex function gives the lower bound . The endpoint follows by letting , while for the strong law of large numbers makes the probability tend to one. This proves the required lower bound.