Cramér–Rao bound

From HandWiki
Short description: Lower bound on variance of an estimator
Illustration of the Cramer-Rao bound: there is no unbiased estimator which is able to estimate the (2-dimensional) parameter with less variance than the Cramer-Rao bound, illustrated as standard deviation ellipse.

In estimation theory and statistics, the Cramér–Rao bound (CRB) relates to estimation of a deterministic (fixed, though unknown) parameter. The result is named in honor of Harald Cramér and C. R. Rao,[1][2][3] but has also been derived independently by Maurice Fréchet,[4] Georges Darmois,[5] and by Alexander Aitken and Harold Silverstone.[6][7] It states that the precision of any unbiased estimator is at most the Fisher information; or (equivalently) the reciprocal of the Fisher information is a lower bound on its variance.

An unbiased estimator that achieves this bound is said to be (fully) efficient. Such a solution achieves the lowest possible mean squared error among all unbiased methods, and is therefore the minimum variance unbiased (MVU) estimator. However, in some cases, no unbiased technique exists which achieves the bound. This may occur either if for any unbiased estimator, there exists another with a strictly smaller variance, or if an MVU estimator exists, but its variance is strictly greater than the inverse of the Fisher information.

The Cramér–Rao bound can also be used to bound the variance of biased estimators of given bias. In some cases, a biased approach can result in both a variance and a mean squared error that are below the unbiased Cramér–Rao lower bound; see estimator bias.

Statement

The Cramér–Rao bound is stated in this section for several increasingly general cases, beginning with the case in which the parameter is a scalar and its estimator is unbiased. All versions of the bound require certain regularity conditions, which hold for most well-behaved distributions. These conditions are listed later in this section.

Scalar unbiased case

Suppose θ is an unknown deterministic parameter that is to be estimated from n independent observations (measurements) of x, each from a distribution according to some probability density function f(x;θ). The variance of any unbiased estimator θ^ of θ is then bounded[8] by the reciprocal of the Fisher information I(θ):

var(θ^)1I(θ)

where the Fisher information I(θ) is defined by

I(θ)=nEX;θ[((X;θ)θ)2]

and (x;θ)=log(f(x;θ)) is the natural logarithm of the likelihood function for a single sample x and Ex;θ denotes the expected value with respect to the density f(x;θ) of X. If not indicated, in what follows, the expectation is taken with respect to X.

If (x;θ) is twice differentiable and certain regularity conditions hold, then the Fisher information can also be defined as follows:[9]

I(θ)=nEX;θ[2(X;θ)θ2]

The efficiency of an unbiased estimator θ^ measures how close this estimator's variance comes to this lower bound; estimator efficiency is defined as

e(θ^)=I(θ)1var(θ^)

or the minimum possible variance for an unbiased estimator divided by its actual variance. The Cramér–Rao lower bound thus gives

e(θ^)1.

General scalar case

A more general form of the bound can be obtained by considering a biased estimator T(X), whose expectation is not θ but a function of this parameter, say, ψ(θ). Hence E{T(X)}θ=ψ(θ)θ is not generally equal to 0. In this case, the bound is given by

var(T)[ψ(θ)]2I(θ)

where ψ(θ) is the derivative of ψ(θ) (by θ), and I(θ) is the Fisher information defined above.

Bound on the variance of biased estimators

Apart from being a bound on estimators of functions of the parameter, this approach can be used to derive a bound on the variance of biased estimators with a given bias, as follows.[10] Consider an estimator θ^ with bias b(θ)=E{θ^}θ, and let ψ(θ)=b(θ)+θ. By the result above, any unbiased estimator whose expectation is ψ(θ) has variance greater than or equal to (ψ(θ))2/I(θ). Thus, any estimator θ^ whose bias is given by a function b(θ) satisfies[11]

var(θ^)[1+b(θ)]2I(θ).

The unbiased version of the bound is a special case of this result, with b(θ)=0.

It's trivial to have a small variance − an "estimator" that is constant has a variance of zero. But from the above equation we find that the mean squared error of a biased estimator is bounded by

E((θ^θ)2)[1+b(θ)]2I(θ)+b(θ)2,

using the standard decomposition of the MSE. Note, however, that if 1+b(θ)<1 this bound might be less than the unbiased Cramér–Rao bound 1/I(θ). For instance, in the example of estimating variance below, 1+b(θ)=nn+2<1.

Multivariate case

Extending the Cramér–Rao bound to multiple parameters, define a parameter column vector

θ=[θ1,θ2,,θd]Td

with probability density function f(x;θ) which satisfies the two regularity conditions below.

The Fisher information matrix is a d×d matrix with element Im,k defined as

Im,k=E[θmlogf(x;θ)θklogf(x;θ)]=E[2θmθklogf(x;θ)].

Let T(X) be an estimator of any vector function of parameters, T(X)=(T1(X),,Td(X))T, and denote its expectation vector E[T(X)] by ψ(θ). The Cramér–Rao bound then states that the covariance matrix of T(X) satisfies

I(θ)ϕ(θ)Tcovθ(T(X))1ϕ(θ),
covθ(T(X))ϕ(θ)I(θ)1ϕ(θ)T

where

  • The matrix inequality AB is understood to mean that the matrix AB is positive semidefinite, and
  • ϕ(θ):=ψ(θ)/θ is the Jacobian matrix whose ij element is given by ψi(θ)/θj.


If T(X) is an unbiased estimator of θ (i.e., ψ(θ)=θ), then the Cramér–Rao bound reduces to

covθ(T(X))I(θ)1.

If it is inconvenient to compute the inverse of the Fisher information matrix, then one can simply take the reciprocal of the corresponding diagonal element to find a (possibly loose) lower bound.[12]

varθ(Tm(X))=[covθ(T(X))]mm[I(θ)1]mm([I(θ)]mm)1.

Regularity conditions

The bound relies on two weak regularity conditions on the probability density function, f(x;θ), and the estimator T(X):

  • The Fisher information is always defined; equivalently, for all x such that f(x;θ)>0, θlogf(x;θ) exists, and is finite.
  • The operations of integration with respect to x and differentiation with respect to θ can be interchanged in the expectation of T; that is, θ[T(x)f(x;θ)dx]=T(x)[θf(x;θ)]dx whenever the right-hand side is finite.
    This condition can often be confirmed by using the fact that integration and differentiation can be swapped when either of the following cases hold:
    1. The function f(x;θ) has bounded support in x, and the bounds do not depend on θ;
    2. The function f(x;θ) has infinite support, is continuously differentiable, and the integral converges uniformly for all θ.

Proof

Proof for the general case based on the Chapman–Robbins bound

Proof based on.[13]

A standalone proof for the general scalar case

For the general scalar case:

Assume that T=t(X) is an estimator with expectation ψ(θ) (based on the observations X), i.e. that E(T)=ψ(θ). The goal is to prove that, for all θ,

var(t(X))[ψ(θ)]2I(θ).

Let X be a random variable with probability density function f(x;θ). Here T=t(X) is a statistic, which is used as an estimator for ψ(θ). Define V as the score:

V=θlnf(X;θ)=1f(X;θ)θf(X;θ)

where the chain rule is used in the final equality above. Then the expectation of V, written E(V), is zero. This is because:

E(V)=f(x;θ)[1f(x;θ)θf(x;θ)]dx=θf(x;θ)dx=0

where the integral and partial derivative have been interchanged (justified by the second regularity condition).


If we consider the covariance cov(V,T) of V and T, we have cov(V,T)=E(VT), because E(V)=0. Expanding this expression we have

cov(V,T)=E(T[1f(X;θ)θf(X;θ)])=t(x)[1f(x;θ)θf(x;θ)]f(x;θ)dx=θ[t(x)f(x;θ)dx]=θE(T)=ψ(θ)

again because the integration and differentiation operations commute (second condition).

The Cauchy–Schwarz inequality shows that

var(T)var(V)|cov(V,T)|=|ψ(θ)|

therefore

var(T)[ψ(θ)]2var(V)=[ψ(θ)]2I(θ)

which proves the proposition.

Examples

Multivariate normal distribution

For the case of a d-variate normal distribution

x𝒩d(μ(θ),C(θ))

the Fisher information matrix has elements[14]

Im,k=μTθmC1μθk+12tr(C1CθmC1Cθk)

where "tr" is the trace.

For example, let w[j] be a sample of n independent observations with unknown mean θ and known variance σ2 .

w[j]𝒩d,n(θ1,σ2I).

Then the Fisher information is a scalar given by

I(θ)=(μ(θ)θ)TC1(μ(θ)θ)=i=1n1σ2=nσ2,

and so the Cramér–Rao bound is

var(θ^)σ2n.

Normal variance with known mean

Suppose X is a normally distributed random variable with known mean μ and unknown variance σ2. Consider the following statistic:

T=i=1n(Xiμ)2n.

Then T is unbiased for σ2, as E(T)=σ2. What is the variance of T?

var(T)=var(i=1n(Xiμ)2n)=i=1nvar(Xiμ)2n2=nvar(Xμ)2n2=1n[E{(Xμ)4}(E{(Xμ)2})2]

(the second equality follows directly from the definition of variance). The first term is the fourth moment about the mean and has value 3(σ2)2; the second is the square of the variance, or (σ2)2. Thus

var(T)=2(σ2)2n.

Now, what is the Fisher information in the sample? Recall that the score V is defined as

V=σ2log[L(σ2,X)]

where L is the likelihood function. Thus in this case,

log[L(σ2,X)]=log[12πσ2e(Xμ)2/2σ2]=log(2πσ2)(Xμ)22σ2
V=σ2log[L(σ2,X)]=σ2[log(2πσ2)(Xμ)22σ2]=12σ2+(Xμ)22(σ2)2

where the second equality is from elementary calculus. Thus, the information in a single observation is just minus the expectation of the derivative of V, or

I=E(Vσ2)=E((Xμ)2(σ2)3+12(σ2)2)=σ2(σ2)312(σ2)2=12(σ2)2.

Thus the information in a sample of n independent observations is just n times this, or n2(σ2)2.

The Cramér–Rao bound states that

var(T)1I.

In this case, the inequality is saturated (equality is achieved), showing that the estimator is efficient.

However, we can achieve a lower mean squared error using a biased estimator. The estimator

T=i=1n(Xiμ)2n+2.

obviously has a smaller variance, which is in fact

var(T)=2n(σ2)2(n+2)2.

Its bias is

(1nn+2)σ2=2σ2n+2

so its mean squared error is

MSE(T)=(2n(n+2)2+4(n+2)2)(σ2)2=2(σ2)2n+2

which is clearly less than what unbiased estimators can achieve according to the Cramér–Rao bound.

When the mean is not known, the minimum mean squared error estimate of the variance of a sample from Gaussian distribution is achieved by dividing by n+1, rather than n1 or n+2.

See also

References and notes

  1. Cramér, Harald (1946). Mathematical Methods of Statistics. Princeton, NJ: Princeton Univ. Press. ISBN 0-691-08004-6. OCLC 185436716. https://archive.org/details/in.ernet.dli.2015.223699. 
  2. Rao, Calyampudi Radakrishna (1945). "Information and the accuracy attainable in the estimation of statistical parameters". Bulletin of the Calcutta Mathematical Society (Calcutta Mathematical Society) 37: 81–89. 
  3. Rao, Calyampudi Radakrishna (1994). S. Das Gupta. ed. Selected Papers of C. R. Rao. New York: Wiley. ISBN 978-0-470-22091-7. OCLC 174244259. 
  4. Fréchet, Maurice (1943). "Sur l'extension de certaines évaluations statistiques au cas de petits échantillons". Rev. Inst. Int. Statist. 11 (3/4): 182–205. doi:10.2307/1401114. 
  5. Darmois, Georges (1945). "Sur les limites de la dispersion de certaines estimations". Rev. Int. Inst. Statist. 13 (1/4): 9–15. doi:10.2307/1400974. 
  6. Aitken, A. C.; Silverstone, H. (1942). "XV.—On the Estimation of Statistical Parameters" (in en). Proceedings of the Royal Society of Edinburgh Section A: Mathematics 61 (2): 186–194. doi:10.1017/S008045410000618X. ISSN 2053-5902. https://www.cambridge.org/core/journals/proceedings-of-the-royal-society-of-edinburgh-section-a-mathematics/article/abs/xvon-the-estimation-of-statistical-parameters/74C2B968275EED1A954DB316FBC3635E. 
  7. Shenton, L. R. (1970). "The so-called Cramer–Rao inequality". The American Statistician 24 (2): 36. 
  8. Nielsen, Frank (2013). "Cramér-Rao Lower Bound and Information Geometry". Connected at Infinity II. Texts and Readings in Mathematics. 67. Hindustan Book Agency, Gurgaon. p. 18-37. doi:10.1007/978-93-86279-56-9_2. ISBN 978-93-80250-51-9. 
  9. Suba Rao. "Lectures on statistical inference". http://www.stat.tamu.edu/~suhasini/teaching613/inference.pdf. 
  10. "Cramér Rao Lower Bound - Navipedia". https://gssc.esa.int/navipedia/index.php/Cram%C3%A9r_Rao_Lower_Bound. 
  11. "Cramér-Rao Bound". https://theoryandpractice.org/stats-ds-book/statistics/cramer-rao-bound.html. 
  12. For the Bayesian case, see eqn. (11) of Bobrovsky; Mayer-Wolf; Zakai (1987). "Some classes of global Cramer–Rao bounds". Ann. Stat. 15 (4): 1421–38. doi:10.1214/aos/1176350602. 
  13. Polyanskiy, Yury (2017). "Lecture notes on information theory, chapter 29, ECE563 (UIUC)". https://people.lids.mit.edu/yp/homepage/data/LN_stats.pdf. 
  14. Kay, S. M. (1993). Fundamentals of Statistical Signal Processing: Estimation Theory. Prentice Hall. p. 47. ISBN 0-13-042268-1. 

Further reading

  • FandPLimitTool a GUI-based software to calculate the Fisher information and Cramér-Rao lower bound with application to single-molecule microscopy.