Chernoff information Created 2026-09-24 Updated 2026-10-14
Chernoff information measures how quickly repeated independent evidence can distinguish two fixed probability distributions. Suppose a statistical hypothesis test observes independent and identically distributed random variables, with common law under one simple hypothesis and under the other. Give the two hypotheses fixed positive prior probabilities, and let be the smallest achievable average error probability. For distinct positive probability mass functions on a common finite alphabet,
Here is the natural logarithm, so the error exponent is measured in nats per observation. This optimal rate is unchanged by choosing different fixed positive prior probabilities; the best decision rule and finite-sample error can still change.[ref]
The interpretation is : a larger Chernoff information means fewer observations are needed at the leading exponential scale. It does not assert the exact finite-sample identity . The finite-sample Chernoff error bound and the explicit Chernoff information for complementary Bernoulli distributions make this distinction concrete. This is useful when designing repeated measurements or comparing sensors whose output probability distributions differ under two candidate conditions.
For probability mass functions with zero entries, define the affinity for and use , taking endpoint limits when needed. This avoids an ambiguous convention. Identical laws give ; disjoint probability supports give , because one observation separates them perfectly. The displayed finite-rate theorem concerns fixed laws with common positive support, not laws that change with or arbitrarily dependent repeated observations.
Kolmogorov-Smirnov test 2026-10-14
The one-sample Kolmogorov-Smirnov test checks goodness of fit by comparing an empirical distribution function with a specified cumulative distribution function . Its Kolmogorov-Smirnov statistic is the largest vertical gap anywhere between the two curves. Every threshold asks the same concrete question: what proportion of the observations are at or below it, and what probability does the proposed probability distribution assign there? A large discrepancy supplies evidence against the null hypothesis.
For example, four stipulated observations compared with the uniform distribution on give . Just before , only two observations have been counted, so the empirical distribution function approaches , while approaches . The Kolmogorov-Smirnov statistic section calculates every jump-side gap. These are exact illustrative numbers, not experimental measurements or a claim of statistical significance.
The ordinary one-sample calibration assumes independent and identically distributed real observations and a simple hypothesis , with a continuous function fixed before inspecting these observations. All statistical parameters of must be specified.[ref] Under that null hypothesis, the probability integral transform gives with the uniform distribution on , retaining independence. Consequently the sampling distribution of depends on the sample size , but not on the particular continuous . This is the useful sense in which the calibration is distribution-free.
For the exponential distribution of rate one, for . Take for the four stipulated above. The probability integral transform changes the horizontal coordinates but preserves both the order statistics and their cumulative heights, so the same Kolmogorov-Smirnov statistic appears on both scales. More generally, for continuous , the jump-side formulas depend only on . Strict increase everywhere is unnecessary: intervals on which is constant have probability zero under the null hypothesis. This explains the invariance without assuming a strictly positive probability density function.
Figure 1.
The probability integral transform preserves the Kolmogorov-Smirnov gap on exponential and uniform scales
. The same four stipulated points are shown as on the left and on the right. Open circles indicate left limits of the empirical distribution function, filled circles its values. The gap is approached from below the third observation on both scales. Details.
The observed Kolmogorov-Smirnov statistic is a discrepancy, whereas its p-value is a tail probability under the null hypothesis:
Here is computed from a fresh sample of the same sample size. Choose a significance level before the test and reject when the calibrated p-value is at most . The value alone supplies neither a p-value nor a rejection decision. Failure to reject does not establish that the null hypothesis is true. A finite-sample calibration and the asymptotic Kolmogorov-Smirnov theorem are distinct; a cutoff for must be rescaled before use with .[ref]
Fitting statistical parameters on the tested observations replaces by the random . The resulting transformed observations need not be independent and identically distributed uniforms, so the ordinary reference law fails. The Lilliefors test addresses a particular fitted normal distribution. More general parametric bootstrap calibration must simulate from the fitted statistical model and repeat the fitting in every replicate; holding the fitted statistical parameters fixed during those comparisons calibrates a different procedure. Such a parametric bootstrap requires its own validity justification rather than inheriting exactness from the simple-null test.
For a discrete probability distribution, is generally not uniform. Equal observations also arise from rounding, so tied data require a calibration that accounts for the discrete probability distribution or the rounding rule. The discrepancy remains meaningful, but continuous-null p-values are not automatically valid. Statistical dependence likewise changes the reference law. The two-sample Kolmogorov-Smirnov test compares two empirical distribution functions and has a different calibration.[ref]
For two simple hypotheses with probability densities , a critical region has sum of Type I error and Type II error probabilities . Pointwise minimization chooses , with either decision allowed on the equality set. Thus the optimal likelihood ratio threshold is , and the minimum is . This criterion weights the two error probabilities equally; unequal costs or prior probabilities change the threshold.
A simple hypothesis specifies a single probability law, with no unknown parameter remaining. For a possibly randomized hypothesis test, let be its conditional rejection probability. Its test size is and its statistical power against the specified alternative is .
The Neyman-Pearson lemma states that for two densities with respect to a common measure, a likelihood-ratio test rejecting when , accepting when it is below , and randomizing on equality to obtain size , maximizes power among all tests of size at most .
Here the likelihood ratio is
Writing , its logarithm apart from the constant is . This decreases until and then increases. In particular it is nonpositive for and positive for . The supplied normal-tail value and imply that the quantile defined by satisfies . Hence the threshold is above every central value on ; outside that interval the ratio is strictly increasing. The Neyman-Pearson lemma therefore selects precisely the two tails:
The equality boundary has probability zero under both continuous laws, so no randomization is needed. Under the alternative density, the statistical power is
The central dip in the likelihood ratio is why checking the threshold against the entire central region, rather than assuming monotonicity in everywhere, is necessary.
A simple hypothesis specifies one probability distribution. Let the null hypothesis and alternative have probability density functions with respect to a common measure. A possibly randomized statistical test is a measurable function , its conditional probability of rejecting the null hypothesis. Its size of a statistical test is , and its statistical power at the alternative is . A most powerful test at level maximizes power among tests with size at most .
The Neyman-Pearson lemma says to choose and a test of size with where and where , choosing values on the equality set to reach the specified size. Equivalently, threshold the likelihood ratio, treating positive alternative density with zero null density as an infinite ratio. Randomization on a threshold atom ensures exact size when needed. If , all remaining null-only mass can be used to reach size without changing power.
For any test of size at most , the signs of the two factors give
pointwise. Integrating proves
This is the required optimality proof. If and another test is equally powerful, both inequalities must be equalities. It must have size and agree with wherever , apart from null sets for the relevant densities. Thus freedom is confined to the equality set and sets null under both hypotheses; at , additional size need not improve power. This also explains the nonuniqueness below.
For the unit-scale Laplace distribution, put . Its likelihood ratio is
It is nondecreasing, so an upper-tail critical region has the Neyman-Pearson lemma form, even if the cutoff lies inside a constant-ratio tail. Solving gives the most powerful test for a Laplace location shift,
Continuity of the distribution makes this nonrandomized test exactly size . It need not be the unique most powerful test: within a flat extreme likelihood ratio region, other selections having the same null probability are equally good.
Its statistical power is
Here denotes power, not the probability of a type-II error. For , . Thus the power is for , and otherwise. The first branch is at most . On the second branch, power at least is equivalent to . Therefore the required pairs are exactly , with no restriction on the common location.
A simple hypothesis specifies the entire probability distribution. A critical region is the set of observations for which the null hypothesis is rejected. The size of a statistical test is , which reduces to for a simple hypothesis. The power function is as a function of the true parameter or distribution. At a specified alternative, the Type II error probability is , the chance of failing to reject a false null hypothesis. The Type I error probability is the corresponding rejection probability under the null hypothesis.
The Neyman-Pearson lemma says that, for two simple hypotheses, a test rejecting where , accepting where , and if necessary randomizing on equality to achieve prescribed size , has maximal statistical power among tests of size at most . Conversely a most powerful test can be taken in this likelihood ratio form, up to equality sets and null sets.
Here the likelihood ratio for is
Its value is infinite at , which has probability zero under both continuous distributions. Large likelihood ratios correspond to small . Thus the best critical region is , where
There is no boundary randomization to worry about. The complete answer is
For the minimum sum of errors in a simple hypothesis test, write the error sum as . At each observation its smaller contribution is obtained by rejecting exactly where . This proves optimality over all tests, including randomized ones, rather than just optimizing within an assumed family. Here it gives , and therefore
The minimum error sum is . This criterion weights the two error probabilities equally; it does not impose a conventional significance level.
The Neyman-Pearson lemma concerns a simple hypothesis with density against a simple alternative with density . Allow a randomized test . Choose a threshold and, if necessary, randomize on the equality set so that
Then is a most powerful test among all tests of size at most . To prove it, let . Pointwise, : above threshold both factors are nonnegative; below threshold both are nonpositive; on the threshold their product vanishes. Therefore
This proves the lemma, including regions with , where a positive alternative density must be rejected. It also shows that ties in the likelihood ratio are the only discretionary region when the inequality is strict off the threshold.
For the stated family, has the Gamma distribution with shape and unit rate. At it has the exponential distribution, and the likelihood ratio for against is
because . The most powerful test therefore rejects for large . Since , its exact size- critical value and rejection rule are
The distribution is continuous, so boundary randomization is unnecessary. Under , integration by parts gives the power function of a statistical test
For every fixed , the likelihood ratio against the same null is , strictly increasing in . The size constraint still selects exactly the same critical value , independent of the alternative. The Neyman-Pearson lemma therefore makes this single test most powerful against each separately. Hence it is uniformly most powerful for the composite alternative .
A simple hypothesis specifies a single probability distribution. For a test with rejection region , its size of a statistical test is the rejection probability under the simple null hypothesis, while its statistical power against the simple alternative is the rejection probability under that alternative. The Neyman-Pearson lemma states that among tests of size at most , a test rejecting for the largest values of the likelihood ratio has greatest power, with boundary randomization if needed.
Here
which decreases with . The best test therefore rejects for . Under , , so size requires . Its power is
Thus reject exactly when .
The Neyman-Pearson lemma concerns a simple hypothesis against another simple hypothesis . For a continuous statistical sample, put for the joint probability density functions, . A randomized statistical test is a measurable , the conditional probability of rejection after observing . Its test size is and its statistical power is .
Choose and boundary randomization so that
Then is most powerful among all tests of size at most . Thus one rejects for sufficiently large alternative-to-null likelihood ratio. If the equality set has zero probability under , the test needs no randomization. Continuous observations alone do not guarantee that their likelihood ratio has a continuous probability distribution.
For the proof, let be any competing test with . At every ,
Indeed, on the first factor is ; on it is ; and on equality the product is zero. Integration gives
which proves the claimed optimality. Moreover, when , equality of statistical power forces equality of test size and forces almost everywhere where : otherwise the nonnegative integrand would have positive integral. This proves the usual necessity assertion as well, up to equality sets and sets of zero probability under both hypotheses.
True, with the test's rejection rule fixed. If its rejection region in the space of the test statistic is , its statistical power against the specified simple hypothesis is
Thus the probability distribution of under the alternative hypothesis determines the statistical power of this test. The null distribution is used to choose a rule with the desired test size, but statistical power is evaluated under the alternative hypothesis. Different rejection rules can have different statistical power even for the same probability distribution of .
False. A test size constrains the probability of rejection conditional on the null hypothesis being true:
for an exact size- test of a simple hypothesis. It does not assign a posterior probability to that statistical hypothesis after observing nonrejection. In the frequentist interpretation, the statistical parameter is fixed and the data are random. Nonrejection can occur even when the alternative hypothesis is true; for example, it is particularly likely for an alternative against which the test has low statistical power. A posterior probability would require a prior distribution and a Bayesian model.
A randomized statistical test specifies a measurable rejection probability for each possible data value. It can be implemented by rejecting when an independent uniform random variable on satisfies . A deterministic test has only the values zero and one. Under a simple hypothesis , its rejection probability is , which is its test size for and its statistical power for .
The Neyman-Pearson lemma permits randomization on an equality set of the form to reach a prescribed test size. Continuous observations do not rule out an equality set of positive probability: if both hypotheses give the same probability density function, their likelihood ratio is identically one. This explains why a precise statement of the lemma includes boundary randomization even for continuous data.