An error exponent is the limiting exponential decay rate of an error probability as sample size grows. Different constraints on the Type I error and Type II error give different optimal rates. The Chernoff information describes the optimal average-error rate for simple Bayesian hypotheses; Stein's lemma gives the optimal type-II rate when type-I error is held below a fixed nontrivial bound.
Stein's lemma states that for testing against , the smallest Type II error among tests with Type I error at most any fixed satisfies
Stein's lemma states that for distinct probability mass functions on a finite alphabet, the best exponential decay rate of the Type II error among tests whose Type I error is eventually at most any fixed is
For the direct part, define the information-density typical region
The weak law of large numbers under gives , while
For the converse, let
Again . Any test with satisfies
On , , hence
Thus . Letting proves optimality.
Let be probability mass functions on a finite alphabet, with absolutely continuous with respect to . A decision region accepts the null law . Write
for its type-I and type-II errors. Stein's lemma states that for every fixed ,
where logarithms and relative entropy use base two.
For achievability, let
Under , the normalized log-likelihood ratio converges in probability to by the weak law of large numbers, so . On , , whence .
For the converse, let
Again . If , then
The final factor has positive lower limit at least . Taking exponential rates and then proves the converse and the lemma.