Stein's method explained
Stein's method is a general method in probability theory to obtain bounds on the distance between two probability distributions with respect to a probability metric. It was introduced by Charles Stein, who first published it in 1972,[1] to obtain a bound between the distribution of a sum of
-dependent sequence of
random variables and a
standard normal distribution in the
Kolmogorov (uniform) metric and hence to prove not only a
central limit theorem, but also bounds on the rates of
convergence for the given metric.
History
At the end of the 1960s, unsatisfied with the by-then known proofs of a specific central limit theorem, Charles Stein developed a new way of proving the theorem for his statistics lecture.[2] His seminal paper was presented in 1970 at the sixth Berkeley Symposium and published in the corresponding proceedings.[1]
Later, his Ph.D. student Louis Chen Hsiao Yun modified the method so as to obtain approximation results for the Poisson distribution;[3] therefore the Stein method applied to the problem of Poisson approximation is often referred to as the Stein–Chen method.
Probably the most important contributions are the monograph by Stein (1986), where he presents his view of the method and the concept of auxiliary randomisation, in particular using exchangeable pairs, and the articles by Barbour (1988) and Götze (1991), who introduced the so-called generator interpretation, which made it possible to easily adapt the method to many other probability distributions. An important contribution was also an article by Bolthausen (1984) on the so-called combinatorial central limit theorem.
In the 1990s the method was adapted to a variety of distributions, such as Gaussian processes by Barbour (1990), the binomial distribution by Ehm (1991), Poisson processes by Barbour and Brown (1992), the Gamma distribution by Luk (1994), and many others.
The method gained further popularity in the machine learning community in the mid 2010s, following the development of computable Stein discrepancies and the diverse applications and algorithms based on them.
The basic approach
Probability metrics
Stein's method is a way to bound the distance between two probability distributions using a specific probability metric.
Let the metric be given in the form
}\left|\int h \, dP - \int h \, dQ \right| = \sup_\left|E h(W) - E h(Y) \right|
Here,
and
are probability measures on a
measurable space
,
and
are random variables with distribution
and
respectively,
is the usual expectation operator and
is a set of functions from
to the set of real numbers. Set
has to be large enough, so that the above definition indeed yields a
metric.
Important examples are the total variation metric, where we let
consist of all the
indicator functions of measurable sets, the
Kolmogorov (uniform) metric for probability measures on the real numbers, where we consider all the half-line indicator functions, and the
Lipschitz (first order Wasserstein; Kantorovich) metric, where the underlying space is itself a metric space and we take the set
to be all
Lipschitz-continuous functions with Lipschitz-constant 1. However, note that not every metric can be represented in the form (1.1).
In what follows
is a complicated distribution (e.g., the distribution of a sum of dependent random variables), which we want to approximate by a much simpler and tractable distribution
(e.g., the standard normal distribution).
The Stein operator
We assume now that the distribution
is a fixed distribution; in what follows we shall in particular consider the case where
is the standard normal distribution, which serves as a classical example.
First of all, we need an operator
, which acts on functions
from
to the set of real numbers and 'characterizes' distribution
in the sense that the following equivalence holds:
(2.1)
E[(l{A}f)](Y):=E((l{A}f)(Y))=0forallf \iff YhasdistributionQ.
We call such an operator the
Stein operator.
For the standard normal distribution, Stein's lemma yields such an operator:
(2.2)
E\left(f'(Y)-Yf(Y)\right)=0forallf\in
\iff Yhasstandardnormaldistribution.
Thus, we can take
(2.3)
(l{A}f)(x)=f'(x)-xf(x).
There are in general infinitely many such operators and it still remains an open question, which one to choose. However, it seems that for many distributions there is a particular
good one, like (2.3) for the normal distribution.
There are different ways to find Stein operators.[4]
The Stein equation
is close to
with respect to
if the difference of expectations in (1.1) is close to 0. We hope now that the operator
exhibits the same behavior: if
then
, and hopefully if
we have
.
It is usually possible to define a function
such that
(3.1) (l{A}f)(x)=h(x)-E[h(Y)] forallx.
We call (3.1) the
Stein equation. Replacing
by
and taking expectation with respect to
, we get
(3.2)
E(l{A}f)(W)=E[h(W)]-E[h(Y)].
Now all the effort is worthwhile only if the left-hand side of (3.2) is easier to bound than the right hand side. This is, surprisingly, often the case.
If
is the standard normal distribution and we use (2.3), then the corresponding Stein equation is
(3.3)
f'(x)-xf(x)=h(x)-E[h(Y)] forallx.
If probability distribution Q has an absolutely continuous (with respect to the Lebesgue measure) density q, then[4]
(3.4) (l{A}f)(x)=f'(x)+f(x)q'(x)/q(x).
Solving the Stein equation
Analytic methods. Equation (3.3) can be easily solved explicitly:
Generator method. If
is the generator of a Markov process
(see Barbour (1988), Götze (1991)), then the solution to (3.2) is
(4.2)
f(x)=
[Exh(Zt)-Eh(Y)]dt,
where
denotes expectation with respect to the process
being started in
. However, one still has to prove that the solution (4.2) exists for all desired functions
.
Properties of the solution to the Stein equation
Usually, one tries to give bounds on
and its derivatives (or differences) in terms of
and its derivatives (or differences), that is, inequalities of the form
(5.1)
\|Dkf\|\leqCk,l\|Dlh\|,
for some specific
(typically
or
, respectively, depending on the form of the Stein operator), where often
is the supremum norm. Here,
denotes the
differential operator, but in discrete settings it usually refers to a difference operator. The constants
may contain the parameters of the distribution
. If there are any, they are often referred to as
Stein factors.
In the case of (4.1) one can prove for the supremum norm that
(5.2)
\|f\|infty\leqmin\left\{\sqrt{\pi/2}\|h\|infty,2\|h'\|infty\right\},
\|f'\|infty\leqmin\{2\|h\|infty,4\|h'\|infty\},
\|f''\|infty\leq2\|h'\|infty,
where the last bound is of course only applicable if
is differentiable (or at least Lipschitz-continuous, which, for example, is not the case if we regard the total variation metric or the Kolmogorov metric!). As the standard normal distribution has no extra parameters, in this specific case the constants are free of additional parameters.
If we have bounds in the general form (5.1), we usually are able to treat many probability metrics together. One can often start with the next step below, if bounds of the form (5.1) are already available (which is the case for many distributions).
An abstract approximation theorem
We are now in a position to bound the left hand side of (3.1). As this step heavily depends on the form of the Stein operator, we directly regard the case of the standard normal distribution.
At this point we could directly plug in random variable
, which we want to approximate, and try to find upper bounds. However, it is often fruitful to formulate a more general theorem. Consider here the case of local dependence.
Assume that
is a sum of random variables such that the
and
variance
. Assume that, for every
, there is a set
, such that
is independent of all the random variables
with
. We call this set the 'neighborhood' of
. Likewise let
be a set such that all
with
are independent of all
,
. We can think of
as the neighbors in the neighborhood of
, a second-order neighborhood, so to speak. For a set
define now the sum
.
Using Taylor expansion, it is possible to prove that
(6.1)
\left|E(f'(W)-Wf(W))\right|\leq\|f''\|infty\sum
\left(
E|Xi
E|Xi
|
+E|Xi
|
|
\right)
Note that, if we follow this line of argument, we can bound (1.1) only for functions where
is bounded because of the third inequality of (5.2) (and in fact, if
has discontinuities, so will
). To obtain a bound similar to (6.1) which contains only the expressions
and
, the argument is much more involved and the result is not as simple as (6.1); however, it can be done.
Theorem A. If
is as described above, we have for the Lipschitz metric
that
(6.2)
dW(l{L}(W),N(0,1))\leq
\left(
E|Xi
E|Xi
|
+E|Xi
|
|
\right).
Proof. Recall that the Lipschitz metric is of the form (1.1) where the functions
are Lipschitz-continuous with Lipschitz-constant 1, thus
. Combining this with (6.1) and the last bound in (5.2) proves the theorem.
Thus, roughly speaking, we have proved that, to calculate the Lipschitz-distance between a
with local dependence structure and a standard normal distribution, we only need to know the third moments of
and the size of the neighborhoods
and
.
Application of the theorem
We can treat the case of sums of independent and identically distributed random variables with Theorem A.
Assume that
,
and
. We can take
. From Theorem A we obtain that
(7.1)
dW(l{L}(W),N(0,1))\leq
.
For sums of random variables another approach related to Steins Method is known as the zero bias transform.
Connections to other methods
- Lindeberg's device. Lindeberg (1922) introduced a device, where the difference
Eh(X1+ … +Xn)-Eh(Y1+ … +Yn)
is represented as a sum of step-by-step differences.
- Tikhomirov's method. Clearly the approach via (1.1) and (3.1) does not involve characteristic functions. However, Tikhomirov (1980) presented a proof of a central limit theorem based on characteristic functions and a differential operator similar to (2.3). The basic observation is that the characteristic function
of the standard normal distribution satisfies the differential equation
for all
. Thus, if the characteristic function
of
is such that
we expect that
and hence that
is close to the normal distribution. Tikhomirov states in his paper that he was inspired by Stein's seminal paper.
See also
References
- Barbour, A. D.. Stein's method and Poisson process convergence. 1988. Journal of Applied Probability. 25. 175–184. 10.2307/3214155. 3214155. 121759039.
- Barbour, A. D.. Stein's method for diffusion approximations. Probability Theory and Related Fields. 1990. 84. 3. 297–322. 10.1007/BF01197887. 123057547. free.
- Barbour, A. D. . Brown, T. C. . amp . Stein's method and point process approximation. Stochastic Processes and Their Applications. 1992. 43. 1. 9–31. 10.1016/0304-4149(92)90073-Y. free.
- Bolthausen, E.. An estimate of the remainder in a combinatorial central limit theorem. Zeitschrift für Wahrscheinlichkeitstheorie und verwandte Gebiete. 66. 1984. 3. 379–386. 10.1007/BF00533704. 121725342. free.
- Ehm, W.. Binomial approximation to the Poisson binomial distribution. Statistics & Probability Letters. 1991. 11. 1. 7–16. 10.1016/0167-7152(91)90170-V.
- Götze, F.. On the rate of convergence in the multivariate CLT. The Annals of Probability. 19. 1991. 2. 724–739. 10.1214/aop/1176990448. free.
- Lindeberg, J. W.. Eine neue Herleitung des Exponentialgesetzes in der Wahrscheinlichkeitsrechung. Mathematische Zeitschrift. 1922. 15. 1. 211–225. 10.1007/BF01494395. 119730242.
- Book: Luk, H. M.. Stein's method for the gamma distribution and related statistical applications. 1994. Dissertation.
- Book: Novak, S. Y.. Extreme value methods with applications to finance. 2011. Monographs on Statistics and Applied Probability. 122. CRC Press. 978-1-43983-574-6 .
- Book: Stein, C.. Approximate computation of expectations. 1986. Institute of Mathematical Statistics. Lecture Notes-Monograph Series. 7. 0-940600-08-0.
- Tikhomirov, A. N.. Convergence rate in the central limit theorem for weakly dependent random variables. Teoriya Veroyatnostei i ee Primeneniya. 1980. 25. 800–818. English translation in Tikhomirov, A. N. . 1981 . On the Convergence Rate in the Central Limit Theorem for Weakly Dependent Random Variables . . 25 . 4 . 790–809 . 10.1137/1125092 .
Literature
The following text is advanced, and gives a comprehensive overview of the normal case
- Book: Normal approximation by Stein's method. www.springer.com. 2011. Chen, L.H.Y., Goldstein, L., and Shao, Q.M. 978-3-642-15006-7.
Another advanced book, but having some introductory character, is
- Book: An introduction to Stein's method. Singapore University Press. 2005. Barbour . A. D.. Chen . L. H. Y.. 4. Lecture Notes Series, Institute for Mathematical Sciences, National University of Singapore. 981-256-280-X.
A standard reference is the book by Stein,
- Book: Stein, C.. Approximate computation of expectations. 1986. Institute of Mathematical Statistics Lecture Notes, Monograph Series, 7. 0-940600-08-0. Institute of Mathematical Statistics. Hayward, Calif..
which contains a lot of interesting material, but may be a little hard to understand at first reading.
Despite its age, there are few standard introductory books about Stein's method available. The following recent textbook has a chapter (Chapter 2) devoted to introducing Stein's method:
- Book: A second course in probability. 2007. Ross, Sheldon . Peköz, Erol . amp . 978-0-9795704-0-7.
Although the book
- Book: Poisson approximation. The Clarendon Press Oxford University Press. 1992. Barbour, A. D. and Holst, L. and Janson, S.. 2. Oxford Studies in Probability. 0-19-852235-5.
is by large parts about Poisson approximation, it contains nevertheless a lot of information about the generator approach, in particular in the context of Poisson process approximation.
The following textbook has a chapter (Chapter 10) devoted to introducing Stein's method of Poisson approximation:
- Book: Stochastic Processes. Wiley. 1995. Sheldon M. Ross . 978-0471120629 .
Notes and References
- Book: Stein, C. . Charles Stein (statistician) . 1972 . A bound for the error in the normal approximation to the distribution of a sum of dependent random variables . http://projecteuclid.org/euclid.bsmsp/1200514239 . Proceedings of the Sixth Berkeley Symposium on Mathematical Statistics and Probability, Volume 2 . 6 . 2 . . 583–602 . 402873 . 0278.60026.
- http://www.ims.nus.edu.sg/imprints/interviews/CharlesStein.pdf Charles Stein: The Invariant, the Direct and the "Pretentious"
- Chen . L.H.Y. . Louis Chen Hsiao Yun . 1975 . Poisson approximation for dependent trials . Annals of Probability . 3 . 3 . 534–545 . 10.1214/aop/1176996359 . 2959474 . 428387 . 0335.60016. free .
- Book: Novak, S.Y.
. 2011 . Extreme Value Methods with Applications to Finance . Ch. 12 . Monographs on Statistics and Applied Probability . 122 . . 978-1-43983-574-6.