Jump to content

Statistics/Point Estimation

From Wikibooks, open books for an open world

Introduction

[edit | edit source]

Usually, a random variable X resulting from a random experiment is assumed to follow a certain distribution with an unknown (but fixed) parameter (vector) [1] θ∈ℝk [2] (k is a positive integer, and its value depends on the distribution), taking value in a set Θ, called the parameter space.

Remark.

  • In the context of frequentist statistics (the context here), parameters are regarded as fixed.
  • On the other hand, in the context of Bayesian statistics, parameters are regarded as random variables.

For example, suppose the random variable X is assumed to follow a normal distribution 𝒩(μ,σ2). Then, in this case, the parameter vector θ=(μ,σ)∈Θ is unknown, and the parameter space Θ={(μ,σ):μ∈ℝ,σ>0}. It is often useful to estimate those unknown parameters in some ways to "understand" the random variable X better. We would like to make sure the estimation should be "good" [3] enough, so that the understanding is more accurate.

Intuitively, the (realization of) random sample X1,…,Xn should be useful. Indeed, the estimators introduced in this chapter are all based on the random sample in some sense, and this is what point estimates mean. To be more precise, let us define point estimation and point estimates.

Definition. (Point estimation) Point estimation is a process of using the value of a statistic to give a single value estimate (which can be interpreted as a point) of an unknown parameter.

Remark.

  • Recall that statistics are functions of a random sample.
  • We call the unknown parameter as population parameter (since the underlying distribution corresponding to the parameter is called a population).
  • The statistics is called a point estimator, and its realization is called a point estimate.
  • The notation of point estimator commonly has a ̂.
  • Point estimation will be contrasted with interval estimation, which uses the value of a statistic to estimate an interval of plausible values of the unknown parameter.

Example. Suppose X1,…,Xn are n random samples from the normal distribution 𝒩(μ,σ2).

  • We may use the statistic X‾=X1+⋯+Xnn to estimate μ intuitively, and X‾ is called the point estimator, and its realization x‾ is called the point estimate.
  • Alternatively, we may simply use the statistic X1 (despite it does not involve X2,…,Xn, it can still be regarded as function of X1,…,Xn) to estimate μ. That is, we use the value of the first random sample from the normal distribution as the point estimate of the mean of the distribution! Intuitively, it may seem that such estimator is quite "bad".
  • Such estimator, which just takes one random sample directly, is called a single observation estimator.
  • We will later discuss how to evaluate how "good" a point estimator is.

In the following, we will introduce two well-known point estimators, which are actually quite "good", namely maximum likelihood estimator and method of moment estimator.

Maximum likelihood estimator (MLE)

[edit | edit source]

As suggested by the name of this estimator, it is the estimator that maximize some kind of "likelihood". Now, we would like to know what "likelihood" should we maximize to estimate the unknown parameter(s) (in a "good" way). Also, as mentioned in the introduction section, the estimator is based on the random sample in some sense. Hence, this "likelihood" should be also based on the random sample in some sense.

To motivate the definition of maximum likelihood estimator, consider the following example.

Example. In a random experiment, a (fair or unfair) coin is tossed once. Let the random variable X=1 if head comes up, and 0 otherwise. Then, the pmf of X is f(x;p)=px(1−p)1−x,x∈{0,1}, in which the unknown parameter p represents the probability for head comes up, and p∈Θ={p:p∈(0,1)}.

Now, suppose you get a random sample X1,X2,…,Xn by tossing that coin n independent times (such random sample is called an independent random sample, since the random variables involved are independent), and the corresponding realizations x1,x2,…,xn. Then, the probability for X1=x1,X2=x2,…, and Xn=xn, i.e., the random sample have these realizations exactly, is ℙ(X1=x1∩X2=x2∩⋯∩Xn=xn)=ℙ(X1=x1)ℙ(X2=x2)⋯ℙ(Xn=xn)by independence=f(x1;p)f(x2;p)⋯f(xn;p)=px1(1−p)1−x1px2(1−p)1−x2⋯pxn(1−p)1−xn=px1+x2+⋯+xn(1−p)n−x1−x2−⋯−xn.

Remark.

  • Remark on notation: You may observe that there is an additional ";p" in the pmf of X. Such notation means the pmf is with the parameter value p. It is included to emphasize the parameter value we are referring to.
  • In general, we write f(⋅;θ) for pmf/pdf with the parameter value θ (θ may be a vector).
  • There are some alternative notations with the same meaning: f(⋅|θ),fθ(⋅),….
  • Similarly, we have similar notations, e.g. ℙθ(A),ℙ(A|θ),ℙ(A;θ),…, to mean the probability for event A to happen, with the parameter value θ. (It is more common to use the first notation: ℙθ(A).)
  • We also have similar notations for mean, variance, covariance, etc., like 𝔼θ[⋅],Varθ(⋅),Covθ(⋅),…

Intuitively, with these particular realizations (fixed), we would like to find a value of p that maximizes this probability, i.e.,, makes the realizations obtained to be the one that is "most probable" or "with maximum likelihood". Now, let us formally define the terms related to MLE.

Definition. (Likelihood function) Let X1,…,Xn be a random sample with a joint pmf or pdf f, and the parameter (vector) θ∈Θ (Θ is the parameter space). Suppose x1,…,xn are the corresponding realizations of the random sample X1,…,Xn. Then, the likelihood function, denoted by ℒ(θ;x1,…,xn), is the function θ↦f(x1,…,xn;θ) (θ is a variable, and x1,…,xn are fixed).

Remark.

  • For simplicity, we may use the notation ℒ(θ;𝐱) instead of ℒ(θ;x1,…,xn). Sometimes, we may also just write "ℒ(θ;𝐱)" for convenience.
  • When we replace x1,…,xn by X1,…,Xn, then the resulting "likelihood function" becomes a random variable, and we denote it by ℒ(θ;X1,…,Xn) or ℒ(θ;𝐗).
  • The likelihood function is in contrast with the joint pmf or pdf itself, where θ is fixed and x1,…,xn are variables.
  • When the random sample comes from a discrete distribution, then the value of likelihood function is the probability ℙ(X1=x1∩⋯∩Xn=xn) at the parameter vector θ. That is, the probability for getting this specific realization exactly.
  • When the random sample comes from a continuous distribution, then the value of likelihood function is not a probability. Instead, it is only the value of the joint pdf at (x1,…,xn) (which can be greater than one). However, the value can still be used to "reflect" the probability for getting "very close to" this specific realization, where the probability can be obtained by integrating the joint pdf over a "very small" region around (x1,…,xn).
  • The natural logarithm of the likelihood function, ln⁡ℒ(θ;𝐱) (or ln⁡ℒ(θ;𝐗) sometimes), is called the log-likelihood function.
  • Notice that the "expression" of the likelihood function is actually the same as that of the joint pdf, and just the inputs are different. So, one may still integrate/sum the likelihood function with respect to x1,…,xn (which changes the likelihood function to the joint pdf/pmf in such context in some sense) as if it is the joint pdf/pmf to get probabilities.

Definition. (Maximum likelihood estimate) Given a likelihood function ℒ(θ;𝐱), a maximum likelihood estimate of the parameter θ is a value θ̂(𝐱) at which ℒ(θ;𝐱) is maximized.

Remark.

  • The maximum likelihood estimator (MLE) of θ is θ̂(𝐗) (obtained by replacing "x" in θ̂(𝐱) by "X").
  • In some other places, the abbreviation MLE can also mean maximum likelihood estimate depending on the context. However, we will just use the abbreviation MLE when we are talking about maximum likelihood estimator here.
  • Since ddyln⁡y=1y>0 (the domain of natural logarithm function is the set of all positive real numbers), the natural logarithm function is strictly increasing, i.e., the output is larger when the input is larger. Thus, when we find a value at which ln⁡ℒ(θ;𝐱) is maximized, ℒ(θ;𝐱) is also maximized at the same value.

Now, let us find the MLE of the unknown parameter p in the previous coin flipping example.

Example. (Motivating example revisited) Recall that we use a coin flipping example to motivate maximum likelihood estimation. X follows the Bernoulli distribution with success probability p. The pmf of X is f(x;p)=px(1−p)1−x. X1,…,Xn is a random sample from the distribution.

  • The likelihood function ℒ(p) is the joint pmf of X1,…,Xn,

ℙ(X1=x1∩⋯∩Xn=xn)=∏i=1nf(xi;p)by independence=∏i=1npxi(1−p)1−xi

  • The log-likelihood function ln⁡ℒ(p) is thus

ln⁡ℒ(p)=∑i=1nln⁡(pxi(1−p)1−xi)=∑i=1n(ln⁡(pxi)+ln⁡((1−p)1−xi))=∑i=1n(xiln⁡(p)+(1−xi)ln⁡(1−p))=∑i=1n(xiln⁡(p))+∑i=1n((1−xi)ln⁡(1−p))=ln⁡(p)∑i=1n(xi)+ln⁡(1−p)∑i=1n(1−xi)=ln⁡(p)∑i=1n(xi)+ln⁡(1−p)(n−∑i=1n(xi))

  • To find the maximum of the log-likelihood function, we may use derivative test learnt in Calculus. Differentiating ln⁡ℒ(p) with respect to p gives

dln⁡ℒ(p)dp=1p∑i=1nxi⏟constant wrt p−11−p(n−∑i=1nxi)⏟constant wrt p=(1−p)∑i=1nxi−np+p∑i=1nxip(1−p)=(1−p)nx‾−np+pnx‾p(1−p)(∑i=1nxi=nx‾=n⋅∑i=1nxin)=n(x‾−p)p(1−p)

  • To find critical point(s) of ln⁡ℒ(p), we set dln⁡ℒ(p)dp=0⟹n(x‾−p)p(1−p)=0⟹p=x‾ (we have p(1−p)≠0)
  • To verify that ln⁡ℒ(p) actually attains maximum (instead of minimum) at p=x‾, we need to perform derivative test. In this case, we use first derivative test.
  • We can see that dln⁡ℒ(p)dp>0 when p<x‾, which makes x‾−p>0, and thus dln⁡ℒ(p)dp>0. On the other hand, when p>x‾, this makes x‾−p<0, and thus dln⁡ℒ(p)dp<0. As a result, we can conclude that ln⁡ℒ(p) attains its maximum at p=x‾. It follows that the MLE of p is X‾ (not x‾, which is instead maximum likelihood estimate!)
Clipboard

Exercise. Use second derivative test to verify that ln⁡ℒ(p) attains maximum at p=x‾.

Solution
  • Since d2ln⁡ℒ(p)dp2=−np(1−p)−n(x‾−p)(2p)p2(1−p)2, in which the numerator is negative and the denominator is positive. Thus, d2ln⁡ℒ(p)dp2<0. By second derivative test, this means ln⁡ℒ(p) attains maximum at p=x‾.


Sometimes, there is constraint imposed on the parameter when we are finding its MLE. The MLE of the parameter in this case is called a restricted MLE. We will illustrate this in the following example.

Example. Continue from the previous coin flipping example. Suppose we have a constraint on p where 0≤p≤12. Find the MLE of p in this case.

Solution: For the steps about deriving likelihood function and log-likelihood function, they are the same in this case. Without the restriction, the MLE of p is X‾. Now, with the restriction, the MLE of p is X‾ only when X‾≤12 (we always have X‾≥0 since X≥0).

If X‾>12 (and thus x‾>1/2), even though ln⁡ℒ(p) is maximized at p=x‾, we cannot set the MLE to be X‾ due to the restriction on p: 0≤p≤12. Under this case, this means dln⁡ℒ(p)dp>0 when p≤12<X‾ (we have dln⁡ℒ(p)dp>0 when p<x‾ from previous example), i.e., ln⁡ℒ(p) is strictly increasing when p≤12. Thus, ln⁡ℒ(p) is maximized when p=12 with the restriction. As a result, the MLE of p is 12 (the MLE can be a constant, which can still be regarded as a function of X1,…,Xn).

Therefore, the MLE of p can be written as a case defined function: θ̂={X‾,X‾≤1212,X‾>12, or it can be written as θ̂=min⁡{X‾,12}

Clipboard

Exercise. Find the MLE of p when 12≤p≤1.

Solution
  • When X‾<12, we cannot set the MLE to be X‾ due to the restriction. In this case, we know that dln⁡ℒ(p)dp<0 when p≥12>X‾, i.e., ln⁡ℒ(p) is strictly decreasing when 12≤p≤1. Thus, ln⁡ℒ(p) is maximized at p=12, and so the MLE of p is 12.
  • When X‾≥12, we can set the MLE to be X‾ at which ln⁡ℒ(p) is maximized, and so X‾ is the MLE of p in this case.
  • Therefore, the MLE of p is θ̂=max⁡{X‾,12}.


To find the MLE, we sometimes use methods other than derivative test, and we do not need to find the log-likelihood function. Let us illustrate this in the following example.

Example. Let X1,…,Xn be a random sample from the uniform distribution 𝒰[0,β]. Find the MLE of β.

Solution: The pdf of the uniform distribution is f(x;β)=1β𝟏{0≤x≤β}. Thus, the likelihood function is ℒ(β)=∏i=1n1β𝟏{0≤xi≤β}=1βn∏i=1n𝟏{0≤xi≤β}.

In order for ℒ(β) to attain maximum, first, we need to ensure that 0≤xi≤β for each i∈{1,…,n}, so that the product of the indicator functions in the likelihood function is nonzero (the value is actually one in this case). Apart from that, since β↦1βn is a strictly decreasing function of β (because ddβ(1βn)=−nβn+1<0 (we have n,β>0)), we should pick a β that is as small as possible so that 1βn, and hence ℒ(β), is as large as possible.

As a result, we should choose a β that is as small as possible, subject to the constraint that 0≤xi≤β for each i∈{1,…,n}, which means that β≥xi (it is always the case that xi≥0, regardless of the choice of β) for each i∈{1,…,n}. It follows that ℒ(β) attains maximum when β is the maximum of x1,…,xn. Hence, the MLE of β is β̂=max⁡{X1,…,Xn}.

Clipboard

Exercise. Show that the MLE of β does not exist if the uniform distribution becomes 𝒰[0,β).

Solution

Proof. In this case, the constraint from the indicator functions become 0≤xi<β for each i∈{1,…,n}. With similar argument, for the MLE of β, we should choose a β that is as small as possible subject to this constraint, which means β>xi for each i∈{1,…,n}. However, in this case, we cannot set β to be the maximum of x1,…,xn, or else the constraint will not be satisfied and the likelihood function becomes zero due to the indicator function. Instead, we should set β to be slightly greater than the maximum of x1,…,xn, so that the constraint can still be satisifed, and β is quite small. However, for each such β>max⁡{x1,…,xn}, we can always chooses a smaller β that still satisfies the constraint. For example, for each β, the smaller beta, β′ can be selected as max⁡{x1,…,xn}+β−max⁡{x1,…,xn}2>max⁡{x1,…,xn} [4]. Hence, we cannot find a minimum value of β subject to this constraint. Thus, there is no maximum point for ln⁡ℒ(p), and hence the MLE does not exist.

◻



In the following example, we will find the MLE of a parameter vector.

Example. Let X1,…,Xn be a random sample from the normal distribution with mean θ1 and variance θ2, 𝒩(θ1,θ2). Find the MLE of (θ1,θ2).

Solution: Let θ=(θ1,θ2). The likelihood function is ℒ(θ;𝐱)=∏i=1n12πθ2exp⁡(−(xi−θ1)22θ2)=(2πθ2)−n/2exp⁡(−∑i=1n(xi−θ1)22θ2), and hence the log-likelihood function is ln⁡ℒ(θ;𝐱)=−n2ln⁡(2πθ2)−∑i=1n(xi−θ1)22θ2. Since this function is multivariate, we may use the second partial derivative test from multivariable calculus to find maximum point(s). However, in this case, we actually do not need to use such test. Instead, we fix the variables one by one to make the function univariate, so that we can use the derivative test for univariate function to find maximum point (with another variable fixed).

Since ∂ln⁡ℒ(θ;𝐱)∂θ1=1θ2∑i=1n(xi−θ1) and ∂ln⁡ℒ(θ;𝐱)∂θ2=−2nπ4πθ2+12θ22∑i=1n(xi−θ1)2=−n2θ2+12θ22∑i=1n(xi−θ1)2.

Also, ∂ln⁡ℒ(θ;𝐱)∂θ1=0⟹∑i=1n(xi−θ1)=0⟹−nθ1+∑i=1nxi=0⟹θ1=∑i=1nxin=x‾, which is independent from θ2 (this is important for us to use this kind of method) and ∂ln⁡ℒ(θ;𝐱)∂θ2=0⟹n2θ2=12θ22(∑i=1n(xi−θ1)2)⟹n=1θ2(∑i=1n(xi−θ1)2)⟹θ2=∑i=1n(xi−θ1)2n.

Since ∂2ln⁡ℒ(θ;𝐱)∂θ12=∂∂θ1(1θ2∑i=1n(xi−θ1))=1θ2∑i=1n(−1)=−nθ2<0, by the second derivative test (for univariate function), ln⁡ℒ(θ;𝐱) is maximized at θ1=x‾, given any fixed θ2.

On the other hand, since ∂2ln⁡ℒ(θ;𝐱)∂θ22=n2θ22−1θ23∑i=1n(xi−θ1)2, and thus ∂2ln⁡ℒ(θ;𝐱)∂θ22|θ2=∑i=1n(xi−θ1)2n=12n(∑i=1n(xi−θ1)2)2−n3(∑i=1n(xi−θ1)2)2=1−2n42n(∑i=1n(xi−θ1)2)2<0 (since 2n4>1).

Thus, by the second derivative test, ln⁡ℒ(θ;𝐱) is maximized at θ2=∑i=1n(xi−θ1)2n, given any fixed θ1.

So, now we fix θ1=x‾, and thus we have ln⁡ℒ(θ;𝐱) is maximized at θ2=∑i=1n(xi−x‾)2n=s2, where s2 is the realization of the sample variance S2. Now, fix θ2 to be s2, and we know that ln⁡ℒ(θ;𝐱) attains maximum at θ1=x‾ for each fixed θ2, including this fixed θ2=s2. As a result, ln⁡ℒ(θ;𝐱) is maximized at (θ1,θ2)=(x‾,s2). Hence, the MLE of (θ1,θ2) is (X‾,S2).

Clipboard

Exercise.

(a) Calculate the determinant of the Hessian matrix of ln⁡ℒ(θ;𝐱) at (θ1,θ2)=(x‾,s2), which can be expressed as ∂2ln⁡ℒ∂θ12(x‾,s2)∂2ln⁡ℒ∂θ22(x‾,s2)−(∂2ln⁡ℒ∂θ2∂θ1(x‾,s2))2.

(b) Hence, verify that (θ1,θ2)=(x‾,s2) is the maximum point of ln⁡ℒ(θ;𝐱) using the second partial derivative test.


Solution

(a) First,

  • ∂2ln⁡ℒ∂θ12(x‾,s2)=above−nθ2|θ2=s2=−ns2
  • ∂2ln⁡ℒ∂θ22(x‾,s2)=aboven2θ22−1θ23∑i=1n(xi−θ1)2|(θ1,θ2)=(x‾,s2)=n2(s2)2−1(s2)3⋅ns2=n2(s2)2−n(s2)2=−n2(s2)2
  • ∂2ln⁡ℒ∂θ2∂θ1(x‾,s2)=above∂∂θ2(1θ2∑i=1n(xi−θ1))|(θ1,θ2)=(x‾,s2)=−∑i=1n(xi−θ1)θ22|(θ1,θ2)=(x‾,s2)=−∑i=1n(xi−x‾)(s2)2=−∑i=1n(xi)−nx‾(s2)2=−nx‾−nx‾(s2)2=0

As a result, the determinant of the Hessian matrix is −ns2⋅−n2(s2)2=n22(s2)3.

(b) From (a), the determinant of the Hessian matrix is positive. Also, ∂2ln⁡ℒ∂θ12(x‾,s2)=−ns2<0. Thus, by the second partial derivative test, ln⁡ℒ(θ;𝐱) attains maximum at (θ1,θ2)=(x‾,s2).


Clipboard

Exercise. Let X1,…,Xn be a random sample from the exponential distribution with rate parameter λ, with pdf f(x;λ)=λe−λx,x≥0, where λ>0. Show that the MLE of λ is 1X‾.

Solution

Proof. The likelihood function is ℒ(λ)=∏i=1n(λe−λxi)=λnexp⁡(−λ∑i=1nxi). Thus, the log-likelihood function is ln⁡ℒ(λ)=nln⁡λ−λ∑i=1nxi. Differentiating the log-likelihood function with respect to λ gives ddλln⁡ℒ(λ)=nλ−∑i=1nxi. Setting the derivative to be zero, we get nλ−∑i=1nxi=0⟹nλ−nx‾=0⟹1λ=x‾⟹λ=1x‾. It remains to verify that ln⁡ℒ(λ) attains maximum at λ=1x‾. Since d2dλ2ln⁡ℒ(λ)=−nλ2<0, this is verified. Hence, the MLE of λ is 1X‾.

◻


Example. (Application of maximum likelihood estimation) Suppose you are given a box which contains four balls, with unknown number of red and black balls. Now, you draw three balls out of the box, and find out that you get two red balls and one black ball. Using maximum likelihood estimation, estimate the number of red and black balls inside the box.

Solution: Given the color of the balls drawn, we know that the box contains at least two red balls and at least one black ball. This means the box contains either two red balls or three red balls. Let r be the number of red balls inside the box. Then, the number of black balls inside the box is 4−r. The possible values of parameter r are 2 and 3.

Now, we compare the probability of getting such result from drawing three balls when r=2 and r=3.

  • For r=2, the probability is (22)(21)(43)=12 (consider the pmf of hypergeometric distribution).
  • For r=3, the probability is (32)(11)(43)=34.

Hence, the maximum likelihood estimate of r is 3. Thus, the estimated number of the red balls is 3, and that of the black balls is 1.

Clipboard

Exercise. Suppose the box now contains 100 balls, with unknown number of red and black balls. Now, you draw 99 balls out of the box, and find out that you get 98 red balls and one black ball. Using maximum likelihood estimation, estimate the number of red and black balls inside the box.

Solution

Similarly, the box contains at least 98 red balls and one black ball. We use the same notation as in the above example. Then, the number of the black balls is 100−r, and the possible values of parameter r are 98 and 99.

  • For r=98, the probability is (9898)(21)(10099)=0.02
  • For r=99, the probability is (9998)(11)(10099)=0.99

Thus, the maximum likelihood estimate of r is 99. Thus, the estimated number of the red balls is 99 and that of the black balls is 1.

Remark.

  • The difference of the probabilities between two possible values of r becomes much larger in this case.
  • Intuitively, when you have such draw result, you will think that it is quite unlikely that the box has two black balls inside, i.e., the ball that is not drawn is actually black, and somehow you draw all red balls out, but not the black ball.




Method of moments estimator (MME)

[edit | edit source]

For maximum likelihood estimation, we need to utilize the likelihood function, which is found from the joint pmf of pdf of the random sample from a distribution. However, we may not know exactly the pmf of pdf of the distribution in practice. Instead, we may just know some information about the distribution, e.g. mean, variance, and some moments (rth moment of a random variable X is 𝔼[Xr], we denote it by μr for simplicity). Such moments often contain information about the unknown parameter. For example, for a normal distribution 𝒩(μ,σ2), we know that μ=μ1 and σ2=μ2−(μ1)2. Because of this, when we want to estimate the parameters, we can do this through estimating the moments.

Now, we would like to know how to estimate the moments. We let mr=∑i=1nXirn be the rth sample moment [5], where Xi's are independent and identically distributed. By weak law of large number (assuming the conditions are satisified), we have

  • X‾=m1→p𝔼[X]=μ1
  • m2→p𝔼[X2]=μ2 (this can be seen from replacing the "X" by "X2" in the weak law of large number, then the conditions are still satisfied, and so we can still apply the weak law of large number)

In general, we have mr→pμr, since the conditions are still satisfied after replacing the "X" by "Xr" in the weak law of large number.

Because of these results, we can estimate the r-th moment μr using the r-th sample moment mr, and the estimation is "better" when n is large. For example, in the above normal distribution example, we can estimate μ by m1 and σ2 by m2−(m1)2, and these estimators are actually called the method of moments estimator.

To be more precise, we have the following the definition of the method of moments:

Definition. (Method of moments) Let X1,…,Xn be a random sample from a distribution with pdf or pmf f(x;θ1,…,θk). Write k moment(s), e.g. μ1,…,μk, as function(s) of θ1,…,θk: g1(θ1,…,θk),…,gk(θ1,…,θk) respectively. Then, the method of moments estimator (MME) of θ1,…,θk, θ̂1,…,θ̂k respectively, is given by the solution (in the form of θ̂1,…,θ̂k in terms of m1,…,mk, corresponding to the k moments μ1,…,μk) to the following system of equations: {m1=g1(θ̂1,…,θ̂k)⋮mk=gk(θ̂1,…,θ̂k)

Remark.

  • When there are k unknown parameters, we need to solve a system of k equations, involving k sample moments.
  • Usually, we select the first k moments for the k moments, as in the definition. But this is not necessary, and we may choose other moments, including fractional moments (e.g. 𝔼[X1/2], and we use m1/2 in this case).
  • Because of this, the method of moment estimator is not unique.

Example. Let X1,…,Xn be a random sample from the normal distribution 𝒩(μ,σ2). Find the MME of μ and σ2.

Solution: First, there are two unknown parameters. Thus, we need to solve aa system of 2 equations, involving 2 sample moments and 2 moments. Since μ1=μ and μ2=σ2+(μ)2, consider the following system of equations: {m1=μ̂(1)m2=σ2^+(μ̂)2(2) Substituting (1) into (2), we get m2=σ2^+(m1)2⇔σ2^=m2−(m1)2. Hence, the MME of μ is μ̂=m1 and the MME of σ2 is σ2^=m2−(m1)2.

Remark.

  • We can see that the process of finding the MME of μ and σ2 is much easier than finding the MLE of μ and σ2. This is because the expression of the first and second moment in terms of parameters is simple in this case. However, when the expression is more complicated, finding the MME of the parameters can be quite complicated.

Example. Let X1,…,Xn be a random sample from the exponential distribution with rate parameter λ. Find the MME of λ and compare it to the MLE of λ.

Solution: Since μ1=1λ, consider the following equation: m1=1λ̂. We then have λ̂=1m1. Hence, the MME of λ is λ̂=1m1=1X‾, which is somehow the same as the MLE of λ.

Clipboard

Exercise. Let X1,…,Xn be a random sample from the uniform distribution 𝒰[a,b]. Show that the MMEs of a and b are â=m1−3(m2−m12) and b̂=m1+3(m2−m12) respectively.

Solution

Proof. Since μ1=a+b2 and μ2=(b−a)212+(a+b2)2=b2−2ab+a2+3a2+6ab+3b212=4a2+4b2+4ab12=a2+b2+ab3, consider the following system of equations: {m1=(â+b̂)/2(1)m2=(â2+âb̂+b̂2)/3(b) From (1), we have b̂=2m1−â. Substituting it into (2), we have m2=(â2+â(2m1−â)+(2m1−â)2)/3−(â2+2m1â−â2+4m12−4m1â+â2)/3⇔â2−2m1â+4m12=3m2⇔â2−2m1â+4m12−3m2=0 Solving this equation by quadratic formula, we get â=2m1±4m12−4(4m12−3m2)2=2m1±12m2−12m122=2m1±23(m2−m12)2=m1±3(m2−m12).

When â=m1+3(m2−m12), b̂=m1−3(m2−m12)<â. However, from the definition of the uniform distribution, we need to have â<b̂, and thus this case is rejected.

When â=m1−3(m2−m12), b̂=m1+3(m2−m12)>â, which satisfies the definition of the uniform distribution.

Thus, we have the desired result.

◻


Properties of estimator

[edit | edit source]

In this section, we will introduce some criteria for evaluating how "good" a point estimator is, namely unbiasedness, efficienecy and consistency.

Unbiasedness

[edit | edit source]

For θ̂ to be a "good" estimator of a parameter θ, a desirable property of θ̂ is that its expected value equals the value of the parameter θ, or at least close to the value. Because of this, we introduce a value, namely bias, to measure how close is the mean of θ̂ to θ.

Definition. (Bias) The bias of an estimator θ̂ is Bias⁡(θ̂)=𝔼[θ̂]−θ.

We will also define some terms related to bias.

Definition. ((Un)biased estimator) An estimator θ̂ is an unbiased estimator of a parameter θ if Bias⁡(θ̂)=0. Otherwise, the estimator is called a biased estimator.

Definition. (Asymptotically unbiased estimator) An estimator θ̂ is an asymptotically unbiased estimator of a parameter θ if limn→∞Bias⁡(θ̂)=0 where n is the sample size.

Remark.

  • An unbiased estimator must be an asymptotically unbiased estimator, but the converse is not true, i.e., an asymptotically unbiased estimator may not be an unbiased estimator. Thus, a biased estimator may be an asymptotically unbiased estimator.
  • When we discuss the goodness of estimators in terms of unbiasedness, an unbiased estimator is better than an asymptotically unbiased estimator, which is better than an unbiased estimator.
  • However, there are also other criteria for evaluating the goodness of estimators apart from unbiasedness, so when we also account for other criteria, a biased estimator may be somehow "better" than an unbiased estimator overall.

Example. Let X1,…,Xn be a random sample from the Bernoulli distribution with success probability p. Show that the MLE of p, X‾, is an unbiased estimator of p.

Proof. Since 𝔼[X‾]=1n⋅𝔼[∑i=1nXi]=1n∑i=1n𝔼[Xi]=1n⋅∑i=1np=npn=p, the result follows.

◻

Clipboard

Exercise. Suppose the Bernoulli distribution is replaced by binomial distribution with n trials and success probability p. Show that X‾ is a biased estimator of p. Modify this estimator such that it is an unbiased estimator of p.

Solution

Proof. Since 𝔼[X‾]=1n∑i=1n𝔼[Xi]=1n∑i=1nnp=np≠p, X‾ is a biased estimator of p.

◻

We can modify this estimator to X‾n, and then its mean is npn=p. Alternatively, we may choose the estimator to be Xin (i∈{1,…,n}), whose mean is also p (Other estimators whose mean is p are also fine).


Example. Let X1,…,Xn be a random sample from the normal distribution 𝒩(μ,σ2). Show that the MLE of μ, X‾, is an unbiased estimator of μ, and the MLE of σ2, S2, is an asymptotically unbiased estimator of σ2.

Proof. First, since 𝔼[X‾]=1n∑i=1n𝔼[Xi]=1n∑i=1nμ=μ, X‾ is an unbiased estimator of μ.

On the other hand, 𝔼[S2]=1n∑i=1n𝔼[(Xi−X‾)2]=1n∑i=1nVar⁡(Xi−X‾)since 𝔼[Xi−X‾]=𝔼[Xi]−𝔼[X‾]=μ−μ=0=1n∑i=1nVar⁡(Xi−X1+⋯+Xi−1+Xi+⋯+Xnn)=1n∑i=1nVar⁡(nXin−X1+⋯+Xi−1+Xi+⋯+Xnn)=1n∑i=1nVar⁡(X1+⋯+Xi−1+(n−1)Xi+⋯+Xnn)=1n∑i=1nVar⁡((n−1)Xin+X1+⋯+Xi−1+Xi+1Xnn)=1n∑i=1n[Var⁡((n−1)Xin)+Var⁡(X1+⋯+Xi−1+Xi+1+⋯+Xnn)]by independence=1n∑i=1n[Var⁡((n−1)Xin)+Var⁡(X1+⋯+Xi−1+Xi+1+⋯+Xnn)]=1n∑i=1n[(n−1)2n2σ2+1n2Var⁡(X1+⋯+Xi−1+Xi+1+⋯+Xn)]=1n∑i=1n[(n−1)2n2σ2+n−1n2σ2]by iid=1n∑i=1n[σ2n2(n2−2n+1+n−1)]=1n∑i=1n[(n2−n)σ2n2]=1n∑i=1n[(n−1)σ2n]=1n⋅n⋅(n−1)σ2n=n−1nσ2 Thus, limn→∞𝔼[S2]=limn→∞(n−1nσ2)=σ2limn→∞(1−1n)=σ2(1−limn→∞1n)=σ2, as desired.

◻

Clipboard

Exercise. Modify the estimator of σ2 such that it becomes an unbiased estimator.

Solution

The estimator can be modified as nn−1S2=∑i=1n(Xi−X‾)2n−1.


Efficiency

[edit | edit source]

We have discussed how to evaluate the unbiasedness of estimators. Now, if we are given two unbiased estimators, θ̂ and θ~, how should we compare their goodness? Their goodness is the same if we are only comparing them in terms of unbiasedness. Therefore, we need another criterion in this case. One possible way is to compare their variances, and the one with smaller variance is better, since on average, the estimator is less deviated from its mean, which is the value of the unknown parameter by the definition of unbiased estimator, and thus the one with smaller variance is more accurate in some deviation sense. Indeed, an unbiased estimator can still have a large variance, and thus deviate a lot from its mean. Such estimator is unbiased since the positive deviations and negative deviations somehow cancel out each other. This is the idea of efficiency.

Definition. (Efficiency) Suppose θ̂ and θ~ are two unbiased estimators of an unknown parameter θ. The efficiency of θ̂ relative to θ~ is Eff⁡(θ̂,θ~)=Var⁡(θ~)Var⁡(θ̂). If Eff⁡(θ̂,θ~)>1, then we say that θ̂ is relatively more efficient than θ~.

Remark.

  • Since Eff⁡(θ̂,θ~)>1⇔Var⁡(θ̂)<Var⁡(θ~), the estimator with smaller variance is relatively more efficient than the estimator with larger variance.
  • Normally, the variance should be nonzero, and thus the efficiency should be defined in normal cases.
  • Sometimes, it is also called relative efficiency due to the fact that the efficiency describes Var⁡(θ~) equals "how many" Var⁡(θ̂).
  • One may ask that why we use the ratio of variances is used in the definition to compare variances, instead of using the difference in variances. A possible reason is that the ratio of variances does not have any unit (the unit of the variances (if exists) cancels out each other), but the difference in variances can have an unit. Also, using the ratio of variances allows us to also compare different efficiencies numerically, calculated from different variances.

Actually, for the variance of unbiased estimator, since the mean of the unbiased estimator is the unknown paramter θ, it measures the mean of the squared deviation from θ, and we have a specific term for this deviation, namely mean squared error (MSE).

Definition. (Mean squared error) Suppose θ̂ is an estimator of a parameter θ. The mean squared error (MSE) of θ̂ is MSE⁡(θ̂)=𝔼[(θ̂−θ)2].

Remark.

  • From this definition, MSE⁡(θ̂) is the mean value of the square of error θ̂−θ, and hence the name mean squared error.

Notice that in the definition of MSE, we do not specify that θ̂ to be an unbiased estimator. Thus, θ̂ in the definition may be biased. We have mentioned that when θ̂ is unbiased, then its variance is actually its MSE. In the following, we will give a more general relationship between MSE⁡(θ̂) and Var⁡(θ̂), not just for unbiased estimators.

Proposition. (Relationship between mean squared error and variance) If Var⁡(θ̂) exists, then MSE⁡(θ̂)=Var⁡(θ̂)+[Bias⁡(θ̂)]2.

Proof. By definition, we have MSE⁡(θ̂)=𝔼[(θ̂−θ)2] and Var⁡(θ̂)=𝔼[(θ̂−𝔼[θ̂])2]. From these, we are motivated to write MSE⁡(θ̂)=𝔼[(θ̂−θ)2]=𝔼[((θ̂−𝔼[θ̂])+(𝔼[θ̂]−θ))2]=𝔼[(θ̂−𝔼[θ̂])2+2(θ̂−𝔼[θ̂])(𝔼[θ̂]−θ)⏟constant+(𝔼[θ̂]−θ)2]=Var⁡(θ̂)+2(𝔼[θ̂]−θ)𝔼[θ̂−𝔼[θ̂]]⏟=𝔼[θ̂]−𝔼[θ̂]=0+[Bias⁡(θ̂)]2=Var⁡(θ̂)+[Bias⁡(θ̂)]2, as desired.

◻

Example. Let X1,…,Xn (n>1) be a random sample from 𝒩(μ,σ2).

(a) Show that the single observation estimator X1 is an unbiased estimator for μ.

(b) Calculate the MSE of X1 and X‾ respectively.

(c) Which of X1 and X‾ is a better estimator of μ in terms of unbiasedness and efficiency?

Solution:

(a) Since 𝔼[X1]=μ, the result follows.

(b) MSE⁡(X1)=Var⁡(X1)+02=σ2, and MSE⁡(X‾)=Var⁡(X‾)=1n2∑i=1nVar⁡(Xi)=nσ2n2=σ2n.

(c) Since MSE⁡(X‾)<MSE⁡(X1)⇔Var⁡(X‾)<Var⁡(X1), X‾ is relatively more efficient than X1. Since both X1 and X‾ are unbiased estimators of μ, we conclude that X‾ is a better estimator of μ in terms of unbiasedness and efficiency.

Clipboard

Exercise. In addition to the random sample with sample size n in the example, suppose we take another random sample with sample size m. Let X‾(n) and X‾(m) denote the sample mean for the sample with sample size n and m respectively.

(a) Calculate Eff⁡(X‾(n),X‾(m)).

(b) State the condition on the sample sizes m and n under which X‾(m) is relatively more efficient than X‾(n).


Solution

(a) Since Var⁡(X‾(n))=σ2n (from example), and Var⁡(X‾(m))=σ2m (by similar arguments as in the example), Eff⁡(X‾(n),X‾(m))=σ2/mσ2/n=nm.

(b) Since nm>1⇔n>m, the condition is n>m.

Remark.

  • This shows that the sample mean with a larger sample size is relatively more efficient than the one with smaller sample size.



Proposition. limn→∞MSE⁡(θ̂)=0 if and only if limn→∞Var⁡(θ̂)=0 and limn→∞Bias⁡(θ̂)=0.

Proof.

  • "if" part is simple. Assume limn→∞Var⁡(θ̂)=0 and limn→∞Bias⁡(θ̂)=0. Then, limn→∞(Var⁡(θ̂)+(Bias⁡(θ̂))2)=0⇒limn→∞MSE⁡(θ̂)=0.
  • "only if" part: we can use proof by contrapositive, i.e., proving that if limn→∞Var⁡(θ̂)≠0 or limn→∞Bias⁡(θ̂)=0, then limn→∞MSE⁡(θ̂)≠0.
  • Case 1: when limn→∞Var⁡(θ̂)≠0, it means limn→∞Var⁡(θ̂)>0 since the variance is nonnegative. Also, limn→∞(Bias⁡(θ̂))2≥0. It follows that limn→∞MSE⁡(θ̂)>0, i.e., the MSE does not equal zero.
  • Case 2: when limn→∞Bias⁡(θ̂)≠0, it means limn→∞(Bias⁡(θ̂))2>0. Also, limn→∞Var⁡(θ̂)≥0. It follows that limn→∞MSE⁡(θ̂)>0, i.e., the MSE does not equal zero.

◻

Remark.

  • As a result, if we know that limn→∞MSE⁡(θ̂)=0, then we know that limn→∞Bias⁡(θ̂)=0, i.e., θ̂ is an asymptotically unbiased estimator (in addition to limn→∞Var⁡(θ̂)=0) (θ̂ may be an unbiased estimator).

Uniformly minimum-variance unbiased estimator

[edit | edit source]

Now, we know that the smaller the variance of an unbiased estimator, the more efficient (and "better") it is. Thus, it is natural that we want to know what is the most efficient (i.e., the "best") unbiased estimator, i.e., the unbiased estimator with the smallest variance. We have a specific name for such unbiased estimator, namely uniformly minimum-variance unbiased estimator (UMVUE) [6]. To be more precise, we have the following definition for UMVUE:

Definition. (Uniformly minimum-variance unbiased estimator) The uniformly minimum-variance unbiased estimator (UMVUE) is an unbiased estimator with the smallest variance among all unbiased estimators.

Indeed, UMVUE is unique, i.e., there is exactly one unbiased estimator with the smallest variance among all unbiased estimators, and we will prove it in the following.

Proposition. (Uniqueness of UMVUE) If W is an UMVUE of a function of a parameter τ(θ), then W is unique.

Proof. Assume that W is an UMVUE of τ(θ), and W′ is another UMVUE of τ(θ). Define the estimator W∗=12(W+W′). Since 𝔼[W∗]=12(𝔼[W]+𝔼[W′])=12(τ(θ+θ)=τ(θ), W∗ is an unbiased estimator of τ(θ).

Now, we consider the variance of W∗. Var⁡(W∗)=14Var⁡(W+W′)=14[Var⁡(W)+Var⁡(W′)+2Cov⁡(W,W′)]≤14Var⁡(W)+14Var⁡(W′)+12Var⁡(W)Var⁡(W′)(covariance inequality)=14Var⁡(W)+14Var⁡(W)+12(Var⁡(W))2(Var⁡(W)=Var⁡(W′) since W and W′ are both UMVUE)=12Var⁡(W)+12Var⁡(W)(Var⁡(W)>0)=Var⁡(W). Thus, we now have either Var⁡(W∗)<Var⁡(W) or Var⁡(W∗)=Var⁡(W). If the former is true, then W is not an UMVUE of τ(θ) by definition, since we can find another unbiased estimator, namely W∗, with smaller variance than it. Hence, we must have the latter, i.e., Var⁡(W∗)=Var⁡(W). This implies when we apply the covariance inequality, the equality holds, i.e., Cov⁡(W,W′)=Var⁡(W)Var⁡(W′)⟺ρ(W′,W)=1, which means W′ is increasing linearly with W, i.e., we can write W′=aW+b for some constants a>0 and b.

Now, we consider the covariance Cov⁡(W,W′). Cov⁡(W,W′)= above Cov⁡(W,aW+b)= properties aCov⁡(W,W)= property aVar⁡(W). On the other hand, since the equality holds in the covariance inequality, and Var⁡(W)=Var⁡(W′) (since they are both UMVUE), Cov⁡(W,W′)=Var⁡(W)Var⁡(W′)=(Var⁡(W))2=Var⁡(W). Thus, we have a=1.

It remains to show that b=0 to prove that W=W′, and therefore conclude that W is unique.

From above, we currently have W′=W+b⟹𝔼[W′]=𝔼[W]+b⟹τ(θ)=τ(θ)+b⟹b=0, as desired.

◻

Remark.

  • Thus, when we are able to find an UMVUE, then it is the unique one, and the variance every other possible unbiased estimator is strictly greater than the variance of the UMVUE.
Cramer-Rao lower bound
[edit | edit source]

Without using some results, it is quite difficult to determine the UMVUE, since there are many (perhaps even infinitely many) possible unbiased estimator, so it is quite hard to ensure that one particular unbiased estimator is relative more efficient than every other possible unbiased estimators.

Therefore, we will introduce some approaches that help us to find the UMVUE. For the first approach, we find a lower bound [7] on the variances of all possible unbiased estimators. After getting such lower bound, if we can find an unbiased estimator with variance to be exactly equal to the lower bound, then the lower bound is the minimum value of the variances, and hence such unbiased estimator is an UMVUE by definition.

Remark.

  • There are many possible lower bounds, but when the lower bound is greater, it is closer to the actual minimum value of the variances, and hence "better".
  • An unbiased estimator can still be an UMVUE even if its variance does not achieve the lower bound.

A common way to find such lower bound is to use the Cramer-Rao lower bound (CRLB), and we get the CRLB through Cramer-Rao inequality. Before stating the inequality, let us define some related terms.

Definition. (Fisher information) The Fisher information about a parameter θ with sample size n is ℐn(θ)=𝔼[(∂ln⁡ℒ(𝜽;𝐗)∂θ)2] where ln⁡ℒ(𝜽;𝐗)=ln⁡ℒ(𝜽;X1,…,Xn) is the log-likelihood function (as a random variable).

Remark.

  • ∂ln⁡ℒ(𝜽;𝐗)∂θ is called the score function, and is denoted by S(θ;𝐗).
  • The "𝜽" may or may not be a parameter vector. If it is just a single parameter (usually the case here), then it is the same as "θ". We use "𝜽" instead of "θ" to emphasize that the "θ" in ℐn(θ) and S(θ;𝐗) is referring to the "θ" in "∂∂θ"
  • It is possible to define "Fisher information about a parameter vector", but in this case the Fisher information takes the form of a matrix instead of a single number, and it is called Fisher information matrix. However, since it is more complicated, we will not discuss it here.
  • Since the expected value of the score function

𝔼[S(θ;𝐗)]𝔼[∂ln⁡ℒ(𝜽;𝐗)∂θ]=∫−∞∞⋯∫−∞∞∂ln⁡ℒ(𝜽;𝐱)∂θ⋅ℒ(𝜽;𝐱)dxn⋯dx1=∫−∞∞⋯∫−∞∞∂ℒ(𝜽;𝐱)∂θℒ(𝜽;𝐱)⋅ℒ(𝜽;𝐱)dxn⋯dx1=∫−∞∞⋯∫−∞∞∂ℒ(𝜽;𝐱)∂θdxn⋯dx1,

and under some regularity conditions which allow interchange of derivative and integral, this equals ∂∂θ∫−∞∞⋯∫−∞∞ℒ(𝜽;𝐱)dxn⋯dx1=∂∂θ(1)=0, the Fisher information about θ is also the variance of the score function, i.e., Var⁡(S(θ;𝐗))=Var⁡(∂ln⁡ℒ(𝜽;𝐗)∂θ).

For the regularity conditions which allow interchange of derivative and integral, they include

  1. the partial derivatives involved should exist, i.e., the (natural log) of the functions involved is differentiable
  2. the integrals involved should be differentiable
  3. the support does not depend on the parameter(s) involved

We have some results that assist us to compute the Fisher information.

Proposition. Let X1,…,Xn be a random sample from a distribution with pdf or pmf f. Also, let ℐ(θ)=𝔼[(∂ln⁡f(X;𝜽)∂θ)2], the Fisher information about θ with sample size one. Then, under some regularity conditions which allow interchange of derivative and integral, ℐn(θ)=nℐ(θ).

Proof. ℐn(θ)=𝔼[(∂ln⁡ℒ(𝜽;𝐱)∂θ)2]=Var⁡(∂ln⁡ℒ(𝜽;𝐱)∂θ)by above remark=Var⁡(∂∂θ(ln⁡∏i=1nf(Xi;𝜽)))(ℒ(θ;𝐱)=∏i=1nf(xi;θ))=Var⁡(∂∂θ(∑i=1nln⁡f(Xi;𝜽)))=Var⁡(∑i=1n∂∂θln⁡f(Xi;𝜽))by linearity of differentiation=∑i=1nVar⁡(∂∂θln⁡f(Xi;𝜽))by independence=nVar⁡(∂∂θln⁡f(Xi;𝜽))by identically distributed property=n𝔼[(∂ln⁡f(X;𝜽)∂θ)2]by above remark=nℐ(θ).

◻

Proposition. Under some regularity conditions which allow interchange of derivative and integral, ℐ(θ)=−𝔼[∂2ln⁡f(X;𝜽)∂θ2].

Proof. 𝔼[∂2ln⁡f(X;𝜽)∂θ2]=𝔼[∂∂θ(∂ln⁡f(X;𝜽)∂θ)]=𝔼[∂∂θ(1f(X;𝜽)⋅∂f(X;𝜽)∂θ)]=𝔼[1f(X;𝜽)⋅∂2f(X;𝜽)∂θ2−∂f(X;𝜽)∂θ⋅1(f(X;𝜽))2⋅∂f(X;𝜽)∂θ]=𝔼[1f(X;𝜽)⋅∂2f(X;𝜽)∂θ2−(∂f(X;𝜽)∂θ)2⋅1(f(X;𝜽))2]=𝔼[1f(X;𝜽)⋅∂2f(X;𝜽)∂θ2]−𝔼[(∂ln⁡f(X;𝜽)∂θ)2]=𝔼[1f(X;𝜽)⋅∂2f(X;𝜽)∂θ2]−ℐ(θ) Now, it suffices to prove that 𝔼[1f(X;𝜽)⋅∂2f(X;𝜽)∂θ2]=0, which is true since 𝔼[1f(X;𝜽)⋅∂2f(X;𝜽)∂θ2]=∫−∞∞1f(x;𝜽)⋅∂2f(x;𝜽)∂θ2⋅f(x;𝜽)dx=∫−∞∞∂2f(x;𝜽)∂θ2dx=∂2∂θ2∫−∞∞f(x;𝜽)dx=∂2∂θ2(1)=0.

◻

Remark.

  • This proposition can be quite useful, since after partially differentiating ln⁡f(X;𝜽), it is likely that many X's will vanish, and thus the computation of the expectation will be easier.

Theorem. (Cramer-Rao inequality) Let X1,…,Xn be a random sample from a distribution, and let W be an unbiased estimator of τ(θ) (a function of θ). Then, under some regularity conditions which allow interchange of derivative and integral, Var⁡(W)≥(τ′(θ))2ℐn(θ).

Proof. Since W is an unbiased estimator of τ(θ), we have by definition 𝔼[W]=τ(θ). By definition of expectation, we have 𝔼[W]=∫−∞∞⋯∫−∞∞wℒ(θ;𝐱)dxn⋯dx1 where ℒ(θ;𝐱) is the likelihood function. Thus, ∫−∞∞⋯∫−∞∞wℒ(θ;𝐱)dxn⋯dx1=τ(θ)⇒∂∂θ∫−∞∞⋯∫−∞∞wℒ(θ;𝐱)dxn⋯dx1=∂∂θτ(θ)⇒∫−∞∞⋯∫−∞∞∂∂θ(wℒ(θ;𝐱))dxn⋯dx1=τ′(θ)⇒∫−∞∞⋯∫−∞∞w∂∂θ(ℒ(θ;𝐱))⋅1ℒ(θ;𝐱)⋅ℒ(θ;𝐱)dxn⋯dx1=τ′(θ)⇒∫−∞∞⋯∫−∞∞w∂ln⁡ℒ(θ;𝐱)∂θℒ(θ;𝐱)dxn⋯dx1=τ′(θ)⇒𝔼[W⋅∂ln⁡ℒ(θ;𝐱)∂θ]=τ′(θ)⇒𝔼[WS(θ;𝐗)]=τ′(θ)(S(θ;𝐗)=∂ln⁡ℒ(θ;𝐱)∂θ)⇒𝔼[WS(θ;𝐗)]−𝔼[W]𝔼[S(θ;𝐗)]⏟=0=τ′(θ)(𝔼[S(θ;𝐗)]=0 by remark about Fisher information)⇒Cov⁡(W,S(θ;𝐗))=τ′(θ) Consider the covariance inequality: (Cov⁡(X,Y))2≤Var⁡(X)Var⁡(Y). We have (Cov⁡(W,S(θ;𝐗)))2≤Var⁡(W)Var⁡(S(θ;𝐗))⟹(τ′(θ))2≤Var⁡(W)Var⁡(S(θ;𝐗))⟹Var⁡(W)≥(τ′(θ))2Var⁡(S(θ;𝐗))=(τ′(θ))2ℐn(θ). (ℐn(θ)=Var⁡(S(θ;𝐗)) by remark about Fisher information)

◻

Remark.

  • (τ′(θ))2ℐn(θ) is called the Cramer-Rao lower bound (CRLB).
  • When τ(θ)=θ, meaning that W is an unbiased estimator of θ, since (τ′(θ))2=12=1, the CRLB becomes 1ℐn(θ).

Example. Let X1,…,Xn be a random sample from the normal distribution 𝒩(μ,σ2). Show that the MLE of μ, X‾, is an UMVUE of μ.

Proof. First, we can see that the regularity conditions are satisfied in this case. So, we may consider the CRLB of μ as follows. Since ln⁡f(X;μ,σ2)=ln⁡12πσ2exp⁡(−(X−μ)22σ2)=−12(ln⁡2πσ2)−(X−μ)22σ2=−12(ln⁡2πσ2)−X2−2μX+μ22σ2, we have ℐ(μ)=−𝔼[∂2∂μ2(−12(ln⁡2πσ2)−X2−2μX+μ22σ2)]=−𝔼[∂∂μ(−−2X+2μ2σ2)]=−𝔼[−(22σ2)]=−𝔼[−1σ2⏟constant wrt X]=1σ2. Thus, the CRLB of μ is 1nℐ(μ)=1n(1/σ2)=σ2n.

On the other hand, the variance of X‾ is Var⁡(X‾)=σ2n (which is shown in a previous example), which equals the CRLB of μ. It follows that X‾ is an UMVUE of μ.

◻

Clipboard

Exercise. A student claims that X1n is another UMVUE of μ, since Var⁡(X1n)=σ2(n)2=σ2n, which equals the CRLB of μ as well. Is the claim correct? Why?

Solution

Recall that UMVUE is an unbiased estimator.

The claim is wrong, since X1n is not an unbiased estimator in general. This is because 𝔼[X1n]=μn≠μ unless n=1. But if n=1, then this estimator is simply X1, which is exactly the same as X‾=X11=X1. So, the estimator is not another UMVUE in this case.


Sometimes, we cannot use the CRLB method for finding UMVUE, because

  • the regularity conditions may not be satisfied, and thus we cannot use the Cramer-Rao inequality, and
  • the variance of the unbiased estimator may not be equal to the CRLB, but we cannot conclude that it is not an UMVUE, because it may be the case that the CRLB is not attainable at all, and the smallest variance among all unbiased estimators is actually the variance of that estimator, which is larger than the CRLB.

We will illustrate some examples for these two cases in the following.

Example. Let X1,…,Xn be a random sample from the uniform distribution 𝒰[0,β]. If we want to find the UMVUE of β, we cannot use the Cramer-Rao inequality to find it, since the support [0,β] depends on the parameter β.

Example. Let X1,…,Xn be a random sample from the normal distribution 𝒩(μ,σ2). It is given that in this case, nS2σ2∼χn−12, where χk2 is the chi-squared distribution with k degrees of freedom, and its variance is 2k. Calculate Var⁡(nn−1⋅S2), and the CRLB of σ2.

Solution: By the given information, we have Var⁡(nS2σ2)=2(n−1)⟹n2σ4Var⁡(S2)=2(n−1)⟹Var⁡(S2)=2(n−1)σ4n2. Hence, Var⁡(nn−1⋅S2)=n2(n−1)2⋅2(n−1)σ4n2=2σ4n−1.

On the other hand, since ℐ(θ)=−𝔼[∂2∂(σ)2(−12(ln⁡2πσ2)−(X−μ)22σ2)]=−𝔼[∂∂σ(−4πσ2(2πσ2+(X−μ)2σ3)]=−𝔼[∂∂σ(−1σ+(X−μ)2σ3)]=−𝔼[1σ2−3(X−μ)2σ4]=−1σ2+3σ4𝔼[(X−μ)2]=−1σ2+3σ4⋅σ2=2σ2, and (ddσσ2)2=(2σ)2=4σ2, the CRLB of σ2 is 4σ22n/σ2=2σ4n.

Remark.

  • nn−1⋅S2 is an unbiased estimator of σ2, since 𝔼[nn−1⋅S2]=nn−1(n−1nσ2)=σ2.
  • We can observe that Var⁡(nn−1⋅S2) is greater than CRLB. But does this mean nn−1⋅S2 is not the UMVUE of σ2? We do not know, since we are not sure that whether there is another unbiased estimators with variance less than Var⁡(nn−1⋅S2), and it is possible that the CRLB is not attainable.

Since the CRLB is sometimes attainable and sometimes not, it is natural to question that when can the CRLB be attained. In other words, we would like to know the attainment conditions for the CRLB, which are stated in the following corollary.

Corollary. (Attainable condition for the CRLB) Let X1,…,Xn be a random sample from a distribution, and let W be an unbiased estimator of τ(θ). Suppose the regularity conditions in the Cramer-Rao inequality are satisfied. Then, the CRLB can be attained, i.e., there exists some W such that Var⁡(W)=(τ′(θ))2ℐn(θ), if and only if k(W−τ(θ))=S(θ;𝐗) where S(θ;𝐗)=∂ln⁡ℒ(θ;𝐗)∂θ is the score function, and k is a constant.

Proof. Considering the proof for Cramer-Rao inequality, we have Var⁡(W)=(τ′(θ))2ℐn(θ)⟺(Cov⁡(W,S(θ;𝐗)))2=Var⁡(W)Var⁡(S(θ;𝐗)) We can write Cov⁡(W,S(θ;𝐗)) as Cov⁡(W−τ(θ)⏟constant,S(θ;𝐗)) (by result about covariance). Also, Var⁡(W)=Var⁡(W−τ(θ)⏟constant) (by result about variance). Thus, we have (Cov⁡(W−τ(θ),S(θ;𝐗)))2=Var⁡(W−τ(θ))Var⁡(S(θ;𝐗))⇔(Cov⁡(W−τ(θ),S(θ;𝐗)))2Var⁡(W−τ(θ))Var⁡(S(θ;𝐗))=1⇔(Cov⁡(S(θ;𝐗),W−τ(θ)))2Var⁡(W−τ(θ))Var⁡(S(θ;𝐗))=1⇔(ρ(S(θ;𝐗),W−τ(θ)))2=1⇔ρ(S(θ;𝐗),W−τ(θ))=±1 where ρ(⋅,⋅) is the correlation coefficient between two random variables. This means S(θ;𝐗) increases or decreases linearly with W−τ(θ), i.e., S(θ;𝐗)=k(W−τ(θ))+c for some constants c,k. Now, it suffices to show that the constant c is actually zero.

We know that 𝔼[W]=τ(θ) (since W is an unbiased estimator of τ(θ)), and 𝔼[S(θ;𝐗)]=0 (from remark about Fisher information). Thus, applying expectations on both side gives 𝔼[S(θ;𝐗)]=k𝔼[W−τ(θ)]+c⟺𝔼[S(θ;𝐗)]=k(𝔼[W]−τ(θ)⏟=0)+c⟺0=0+c⟺c=0. Then, the result follows.

◻

Remark.

  • Considering the proof, we know that if we have such attainable condition satisfied, the variance of the unbiased estimator W equals the CRLB of τ(θ), i.e., that estimator is the UMVUE of τ(θ).

Example. We have shown that the log-likelihood function of a random sample X1,…,Xn from the normal distribution 𝒩(μ,σ2) is ln⁡ℒ(μ,σ2)=−n2ln⁡(2πσ2)−∑i=1n(xi−μ)22σ2. Prove that the CRLB of μ is attainable using the attainable conditions for the CRLB.

Proof. The score function is S(μ)=∂ln⁡ℒ(μ,σ2)∂μ=∂∂μ(−n2ln⁡(2πσ2)−∑i=1n(Xi−μ)22σ2)=−∑i=1n−2Xi+2μ2σ2=∑i=1nXi−μσ2=1σ2(∑i=1nXi−∑i=1nμ)=nσ2(X‾−μ). Since we have τ(μ)=μ and μ̂=X‾ (which is an unbiased estimator of μ), the attainable conditions for the CRLB are satisfied (the constant "k" is nσ2 in this case), and hence the CRLB of μ is attainable.

◻


Remark.

  • Indeed, we know that the CRLB of μ is attainable before this proof since we have already found an unbiased estimator of μ, namely X‾, whose variance is exactly equal to the CRLB previously.

Example. Continue from the previous example. Prove that the CRLB of σ2 is not attainable using the attainable conditions for the CRLB.

Proof. The score function in this case is S(σ)=∂ln⁡ℒ(μ,σ2)∂σ=∂∂σ(−n2ln⁡(2πσ2)−∑i=1n(Xi−μ)22σ2)=−n24πσ2πσ2+22σ3∑i=1n(Xi−μ)2=−nσ+1σ3∑i=1n(Xi−μ)2=nσ3⏟constant(∑i=1n(Xi−μ)2n−σ2). Taking the constant k=nσ3, a potential candidate for the unbiased estimator σ̂ that achieves the CRLB is ∑i=1n(Xi−μ)2n. However, we notice that ∑i=1n(Xi−μ)2n is not calculable since μ is unknown. It follows that there does not exist some W such that S(σ)=k(W−τ(σ)), where k is some constant and τ(σ)=σ2.

◻


Remark.

  • Even if we know that the CRLB of σ2 is not attainable, we still do not know whether nn−1⋅S2 is the UMVUE, since it is possible that some unbiased estimator with smaller variance (but not achieving the CRLB).

We have discussed MLE previously, and MLE is actually a "best choice" asymptotically (i.e., as the sample size n→∞) according to the following theorem.

Theorem. Suppose θ̂ is the MLE of an unknown parameter θ from a distribution. Then, under some regularity conditions, as n→∞, θ̂−θ1/ℐn(θ)→d𝒩(0,1).

Proof. Partial proof: we consider the Taylor series of order 2 for ddθln⁡ℒ(θ), and we will get ddθln⁡ℒ(θ̂)=ddθln⁡ℒ(θ)+(θ̂−θ)d2dθ2ln⁡ℒ(θ)+12(θ̂−θ)2d3dθ3ln⁡ℒ(θ)|θ=θ∗ where θ∗ is between θ and θ̂. Since θ̂ is the MLE of θ, from the derivative test, we know that ddθln⁡ℒ(θ̂)=0 (we apply regularity condition to ensure the existence of this derivative). Hence, we have ddθln⁡ℒ(θ)+(θ̂−θ)d2dθ2ln⁡ℒ(θ)+12(θ̂−θ)2d3dθ3ln⁡ℒ(θ)|θ=θ∗=0⇒−n(θ̂−θ)d2dθ2ln⁡ℒ(θ)−n2(θ̂−θ)2d3dθ3ln⁡ℒ(θ)|θ=θ∗=nddθln⁡ℒ(θ)⇒n(θ̂−θ)=ddθln⁡ℒ(θ)/n−n−1d2dθ2ln⁡ℒ(θ)−(2n)−1(θ̂−θ)d3dθ3ln⁡ℒ(θ)|θ=θ∗. Since Var⁡(∑i=1n∂ln⁡f(Xi;θ)∂θ)=∑i=1nVar⁡(∂ln⁡f(Xi;θ)∂θ)=∑i=1n𝔼[(∂ln⁡f(Xi;θ)∂θ)2]=nℐ(θ)(1), by central limit theorem, ddθln⁡ℒ(θ)n=1n∑i=1n∂ln⁡f(Xi;θ)∂θ→d𝒩(0,(1/n)nI(θ))≡𝒩(0,ℐ(θ)). Furthermore, we apply the weak law of large number to show that −n−1d2dθ2ln⁡ℒ(θ)=−1n∑i=1n∂2ln⁡f(Xi;θ)∂θ2→p−𝔼[∂2ln⁡f(Xi;θ)∂θ2]=ℐ(θ)(2). It can be shown in a quite complicated way (and using regularity conditions) that −(2n)−1(θ̂−θ)d3dθ3ln⁡ℒ(θ)|θ=θ∗→p0.(3). Considering (2) and (3), using property of convergence in probability, we have −n−1d2dθ2ln⁡ℒ(θ)−(2n)−1(θ̂−θ)d3dθ3ln⁡ℒ(θ)|θ=θ∗→pℐ(θ)+0=ℐ(θ)(4). Considering (1) and (4), and using Slutsky's theorem, we have n(θ̂−θ)=ddθln⁡ℒ(θ)/n−n−1d2dθ2ln⁡ℒ(θ)−(2n)−1(θ̂−θ)d3dθ3ln⁡ℒ(θ)|θ=θ∗→dYℐ(θ) where Y∼𝒩(0,ℐ(θ)), and hence Yℐ(θ)∼𝒩(0,ℐ(θ)[ℐ(θ)]2)≡𝒩(0,1/ℐ(θ)). It follows that n(θ̂−θ)→d𝒩(0,1/ℐ(θ)). This means θ̂−θ→d𝒩(0,1/(nℐ(θ)))≡𝒩(0,1/ℐn(θ)), and thus θ̂−θ1/ℐn(θ)→d𝒩(0,1/(nℐ(θ))1/ℐn(θ)⏟=nℐ(θ))≡𝒩(0,1) as desired.

◻

Remark.

  • Equivalently, we can write θ̂→d𝒩(θ,1/ℐn(θ)). Thus, the variance of MLE of θ achieves the CRLB of θ asymptotically. This means the MLE of θ is the UMVUE of θ asymptotically.
  • The regularity conditions are basically similar to the regularity conditions mentioned in Cramer-Rao inequality.

Since we are not able to use the CRLB to find UMVUE in some situations, we will introduce another method to find UMVUE in the following, which uses the concepts of sufficiency and completeness.

Sufficiency
[edit | edit source]

Intuitively, a sufficient statistic T(X1,…,Xn), which is a function of a given random sample X1,…,Xn, contains all information needed for estimating the unknown parameter (vector) θ. Thus, the statistic T(X1,…,Xn) itself is "sufficient" for estimating the unknown parameter (vector) θ.

Formally, we can define and describe sufficient statistic as follows:

Definition. (Sufficient statistic) A statistic T=T(X1,…,Xn) is a sufficient statistic for the unknown parameter (vector) θ if the conditional distribution of the random sample X1,…,Xn given T does not depend on θ.

Remark.

  • The definition may be expressed as

f(x1,…,xn|T;θ)=f(x1,…,xn|T)

where f is the joint pdf or pmf of X1,…,Xn.
  • The equation means the joint conditional pmf or pdf of X1,…,Xn given (the value of) T is the same as the joint conditional pmf or pdf of X1,…,Xn given (the values of T), and with the parameter value θ.
  • This means the pmf of pdf is not changed even if the parameter value θ is provided, which in turn means the joint conditional pmf or pdf of X1,…,Xn, given the value of T, actually does not depend on θ.
  • f(x1,…,xn|T) refers to fX1,…,Xn|T(x1,…,xn|t) before the realization T=t, and it is a random variable (the randomness comes from T).
  • After the realization T=t, the equation still holds (T is modified to T=t).

Example. Consider a random sample X1,…,Xn from 𝒩(μ,σ2). It can be shown that X‾ is a sufficient statistic for μ, but not a sufficient statistic for σ2.

This can be shown by applying the definition. However, we will later give an alternative and often more convenient method to check the sufficiency of a statistic, and find sufficient statistics. We will explain informally why it is true here.

  • X‾ contains the information of the central tendency of the distribution, which should be the information needed to estimate the mean μ. Hence, it is a sufficient statistic for μ.
  • However, X‾ does not contain the information of the dispersion of the distribution (it only tells that the "central location", but for a particular central location, the dispersion can be very different), which should be the information needed to estimate the variance σ2. Hence, it is not a sufficient statistic for σ2.

Remark.

  • From here, we can also expect that the sufficient statistic is not unique, since, for example, 2X‾ should also contain the information of the central tendency (since we can divide it by 2 to get the value of X‾, and thus get the information).
  • Indeed, in general, given T is a sufficient statistic for θ, then v(T) is also a sufficient statistic for θ, provided that v is a bijective function (also known as invertible function, one-to-one correspondence, or bijection), so that its inverse exists.

Let us state the above remark about transformation of sufficient statistic formally below.

Proposition. Let T be a sufficient statistic of the unknown parameter (vector) θ. Then, v(T) is also a sufficient statistic of θ for each bijective function v.

Now, we discuss a theorem that helps us to check the sufficiency of a statistic, namely (Fisher-Neyman) factorization theorem.

Theorem. (Factorization theorem) Let f(x1,…,xn;θ) be the joint pdf of pmf of a random sample X1,…,Xn. A statistic T=T(X1,…,Xn) is a sufficient statistic of θ if and only if there exist functions g and h such that f(x1,…,xn;θ)=g(T(x1,…,xn);θ)h(x1,…,xn) where g depends on x1,…,xn only through T(x1,…,xn), and h does not depend on θ.

Proof. Since the proof for continuous case is quite complicated, we will only give a proof for the discrete case. For simplicity of presentation, let 𝐗=(X1,…,Xn), T=T(X1,…,Xn), 𝐱=(x1,…,xn), and t=T(x1,…,xn), and hence there are notations for different types of pmfs from these. By definition, f𝐗|T(𝐱|t;θ)=f𝐗|T(𝐱,t). Also, we have 𝐗=𝐱⟺𝐗=𝐱∩T(𝐗)=T(𝐱)⟺𝐗=𝐱∩T=t. Thus, we can write f𝐗,T(𝐱,t;θ)=f𝐗(𝐱;θ)(∗).

"only if" (⇒) direction: Assume T is a sufficient statistic. Then, we choose g(t;θ)=fT(t;θ) and h(𝐱)=f𝐗|T(𝐱|t), which does not depend on θ by the definition of sufficient statistic. It remains to verify that the equation actually holds for this choice.

Hence, f𝐗(𝐱;θ)=f𝐗,T(𝐱,t;θ)= def f𝐗|T(𝐱|t;θ)fT(t;θ)= sufficiency f𝐗|T(𝐱|t)fT(t;θ)=h(𝐱)g(t;θ).

"if" (⇐) direction: Assume we can write f𝐗(𝐱;θ)=g(t;θ)h(𝐱). Then, fT(t;θ)= marginal pmf ∑𝐱f𝐗,T(𝐱,t;θ)= (*) ∑𝐱f𝐗(𝐱;θ)= assumption ∑𝐱g(t;θ)h(𝐱)=g(t;θ)⏟independent from 𝐱∑𝐱h(𝐱). Now, we aim to show that f𝐗|T(𝐱|t) does not depend on θ, which means T is a sufficient statistic for θ. We have f𝐗|T(𝐱|t)= def f𝐗,T(𝐱,t;θ)fT(t;θ)= (*) f𝐗(𝐱;θ)fT(t;θ)=g(t;θ)h(𝐱)⏞assumptiong(t;θ)∑𝐱h(𝐱)⏟above=h(𝐱)∑𝐱h(𝐱), which does not depend on θ, as desired.

◻

Remark.

  • h(x1,…,xn) can also be a constant, which does not depend on θ clearly.

Example. Consider a random sample X1,…,Xn from 𝒩(μ,σ2). Find a sufficient statistic of θ=(μ,σ2).

Solution: The joint pdf of X1,…,Xn is f(x1,…,xn;θ)=∏i=1n12πσ2exp⁡(−(xi−μ)22σ2)=(2πσ2)−n/2exp⁡(∑i=1n(xi−μ)22σ2)=(2πσ2)−n/2exp⁡(∑i=1n(xi−x‾+x‾−μ)22σ2)=(2πσ2)−n/2exp⁡(∑i=1n(xi−x‾)2+2(xi−x‾)(x‾−μ)+(x‾−μ)22σ2)=(2πσ2)−n/2exp⁡(∑i=1n(xi−x‾)2+(x‾−μ)22σ2)(∑i=1n(xi−x‾)(x‾−μ)=(x‾−μ)∑i=1n(xi−x‾)=(x‾−μ)(∑i=1nxi−∑i=1nx‾)=(x‾−μ)(nx‾−nx‾)=0)=(2πσ2)−n/2exp⁡(12σ2(∑i=1n(xi−x‾)2+∑i=1n(x‾−μ)2))=(2π)−n/2⏟h(x1,…,xn)σ−nexp⁡(12σ2(ns2+n(x‾−μ)2))⏟g(T(x1,…,xn);θ)((x‾−μ)2 is independent from i). Notice that the function g depends on x1,…,xn only through T(x1,…,xn)=(x‾,s2), so we can conclude that T(X1,…,Xn)=(X‾,S2).

Remark.

  • We can also write (X‾,S2) as (S2,X‾), which is also a sufficient statistic for θ.
  • Intuitively, this is because the latter one also contains the same statistics, and thus contains the same information.
  • Alternatively, we can define the function v as (z1,z2)↦(z2,z1), which is a bijective function, so v(X‾,S2)=(S2,X‾) is also a sufficient statistic for θ.
  • We need to separate "σ−n" out from "(2πσ2)−n/2", since for the function h(x1,…,xn), it cannot depend on θ=(μ,σ2). Hence, we cannot include "σ−n" in the definition of the h(x1,…,xn) function.
  • There are many ways to define the g and h functions in this case.


For some "nice" distributions, which belong to exponential family, sufficient statistics can be found using another alternative method easily and more conveniently. This method works because of the "nice" form of the pdf or pmf of those distributions, which can be characterized as follows:

Definition. (Exponential family) The distribution of a random variable X belongs to the exponential distribution if the pdf or pmf of X has the form of f(x;θ)=h(x)g(θ)exp⁡(∑i=1sηi(θ)Ti(x)) where θ=(θ1,…,θs)∈Θ⊆ℝs, for some functions h,g,ηi,Ti (i=1,2…,s).

Remark.

  • The value of s depends on the number of unknown parameters.
  • Notice that s can be 1, and in this case the "θ" is just a single parameter.
  • Exponential family includes many common distributions, e.g. normal, exponential, gamma, chi squared, beta, Bernoulli, Poisson, geometric, etc.
  • However, some common distributions do not belong to exponential family, e.g. Student's t-distribution, F-distribution, Cauchy distribution and hypergeometric distribution.

Example. The normal distribution belongs to the exponential family, where θ=(μ,σ2)∈ℝ2 (so the "s" is 2 in this case), since its pdf can be expressed as f(x;θ)=12πσ2exp⁡(−(x−μ)22σ2)=12πσ2exp⁡(−x2−2μx+μ22σ2)=[12πσ2exp⁡(−μ22σ2)]exp⁡(−x2−2μx2σ2)=(1)⏟h(x)[12πσ2exp⁡(−μ22σ2)]⏟g(θ)exp⁡[μσ2⏟η1(θ)⋅x⏟T1(x)+(−12σ2)⏟η2(θ)⋅x2⏟T2(x)]

Theorem. (Sufficient statistic for exponential family) Let X1,…,Xn be a random sample from a distribution belonging to the exponential family, with pdf or pmf f(x;θ) where θ∈ℝs. Then, a sufficient statistic for θ is T(X1,…,Xn)=(∑j=1nT1(Xj),…,∑j=1nTs(Xj)).

Proof. Since the distribution belongs to the exponential family, the joint pdf or pmf of X1,…,Xn can be expressed as f(x1,…,xn;θ)=∏j=1n[h(xj)g(θ)exp⁡(∑i=1sηi(θ)Ti(xj))]=[∏j=1nh(xj)](g(θ))nexp⁡(∑j=1n∑i=1sηi(θ)Ti(xj))=[∏j=1nh(xj)](g(θ))nexp⁡(∑i=1s∑j=1nηi(θ)Ti(xj))(changing summation order, where the upper bounds are constants)=[∏j=1nh(xj)](g(θ))nexp⁡(∑i=1sηi(θ)⏟independent from j∑j=1nTi(xj))=[∏j=1nh(xj)](g(θ))nexp⁡(η1(θ)∑j=1nT1(xj)+⋯+ηs(θ)∑j=1nTs(xj)). From here, for applying the factorization theorem, we can identify the purple part of the function as "h(x1,…,xn)", and the red part of the function as "g(T(x1,…,xn);θ)". We can notice that the red part of the function depends on x1,…,xn only through (∑j=1nT1(xj),…,∑j=1nTs(xj)). The result follows.

◻

Example. Consider a random sample X1,…,Xn from 𝒩(μ,σ2). Show that a sufficient statistic of θ=(μ,σ2) is (X‾,S2), using the result for finding sufficient statistic for exponential family.

Proof. From previous example, we have shown that normal distribution belongs to the exponential family, and from the expression there, we can see that a sufficient statistic of θ is T=(∑j=1nX,∑j=1nX2)=(nX‾,nX2‾).

Since S2=1n∑j=1n(Xj−X‾)2=1n∑j=1n(Xj2−2XjX‾+(X‾)2)=∑j=1nXj2n−2X‾n∑j=1nXj+(X‾)2=X2‾−2(X‾)2+(X‾)2=X2‾−(X‾)2, we can define function v as (z1,z2)↦(z1/n,z2/n−(z1/n)2), which can be shown to be an bijective function.

Thus, v(T)=(X‾,S2) is also an sufficient statistic of θ.

◻


Now, we will start discussing how is sufficient statistic related to UMVUE. We begin our discussion by Rao-Blackwell theorem.

Theorem. (Rao-Blackwell theorem) Let W be an arbitrary unbiased estimator of τ(θ), and T be a sufficient statistic of θ. Define φ(T)=𝔼[W|T]. Then, φ(T) is an unbiased estimator of τ(θ) and Var⁡(φ(T))≤Var⁡(W).

Proof. Assume W is an arbitrary unbiased estimator of τ(θ), and T is a sufficient statistic of θ.

First, we prove that φ(T) is an unbiased estimator of τ(θ). Before proving the unbiasedness, we should ensure that φ(T) is actually an estimator, i.e., it is a statistic, which is a function of random sample, and needs to be independent from θ (so that it is calculable): since W is a function of random sample, and T is a sufficient statistic, which make the conditional distribution of W, given T, independent of θ. Also, φ(T)=𝔼[W|T] is a function of W, and thus is also a function of random sample.

Now, we prove that φ(T) is an unbiased estimator of τ(θ): since 𝔼[φ(T)]=𝔼[𝔼[W|T]]= law of total expectation 𝔼[W]= unbiasedness τ(θ), φ(T) is an unbiased estimator of τ(θ).

Next, we prove that Var⁡(φ(T))≤Var⁡(W): by law of total variance, we have Var⁡(W)=Var⁡(𝔼[W|T])+𝔼[Var⁡(W|T)]= def Var⁡(φ(T))+𝔼[Var⁡(W|T)⏟≥0]⏞≥0≥Var⁡(φ(T)), as desired.

◻

Remark.

  • The random variable φ(T)=𝔼[W|T] is determined by first finding φ(t)=𝔼[W|T=t], and then replacing t by T. Here, φ(t) is the realization of φ(T).
  • From Rao-Blackwell theorem, we know that φ(T)=𝔼[W|T] is a better (or at least "same quality") estimator than W in efficiency sense. Notice that the theorem does not state that φ(T) is the best estimator in efficiency sense (i.e., UMVUE). Instead, it only states that φ(T) is better than W in efficiency sense.
  • After applying this theorem once, the φ(T) can act as the "arbitrary unbiased estimator of τ(θ)", and we can apply this theorem again, and so on. This means that after applying this theorem many times, the "φ(T)" we get will be an UMVUE.
  • We can interpret this process as keep "improving" the unbiased estimator W, until it becomes the best one (in efficiency sense), i.e., it is an UMVUE.
  • Since UMVUE is unique, UMVUE must be the conditional expectation of a random variable given a sufficient statistic T, which is a function of T.
  • Thus, we now can narrow the candidates for UMVUE to functions of sufficient statistic T.

To actually determine the UMVUE, we need another theorem, called Lehmann-Scheffé theorem, which is based on Rao-Blackwell theorem, and requires the concept of completeness.

Completeness
[edit | edit source]

Definition. (Complete statistic) Let X1,…,Xn be a random sample from a distribution with a parameter (vector) θ lying in the parameter space Θ. A statistic T is a complete statistic if 𝔼[g(T)]=0 for each θ∈Θ implies ℙ(g(T)=0)=1 for each θ∈Θ.

When a random sample X1,…,Xn is from a distribution in exponential family, then a complete statistic can also be founded easily, similar to the case for sufficient statistic.

Theorem. (Complete statistic for exponential family) If X1,…,Xn is a random sample from a distribution in exponential family where the unknown parameter (vector) θ∈Θ⊆ℝs, Then, T(X1,…,Xn)=(∑j=1nT1(Xj),∑j=1nT2(Xj),…,∑j=1nTs(Xj)) is a complete statistic, given that the parameter space Θ contains an open set in ℝs.

Proof. Omitted.

◻

Remark.

  • Open sets are a generalization of open intervals. Indeed, open sets in ℝ is simply open intervals.
  • Intuitively, open sets refers to the sets that, for each point in the set, the set contain all points that are sufficiently near to that point.
  • For example, a line in ℝ2 (which can be interpreted as a set) is not an open set since for each point in the line, the line does not contain all points that are sufficiently near to that point (there are some points "above" and "below" the line that are not contained in the set).
  • Also, a disk (a region in a plane bounded by a circle) in ℝ3 is not an open set since for each point in the disk, the disk does not contain all points that are sufficiently near to that point (there are some points "above" and "below" the disk that are not contained in the disk).
  • From the previous theorem about sufficient statistic for exponential family, we know that T(X1,…,Xn) is also a sufficient statistic of θ under such conditions.
  • When a statistic is sufficient for a parameter (vector) θ and is also a complete statistic, we call such statistic as a complete and sufficient statistic for θ.

Theorem. (Lehmann-Scheffé theorem) If T is a complete and sufficient statistic for θ and 𝔼[φ(T)]=τ(θ), then φ(T) is the unique UMVUE of τ(θ) (with probability 1).

Proof. Assume T is a complete and sufficient statistic for θ and 𝔼[φ(T)]=τ(θ).

Since T is a sufficient statistic for θ, we can apply the Rao-Blackwell theorem. From Rao-Blackwell theorem, if W is an arbitrary unbiased estimator of τ(θ), then φ(T) is another unbiased estimator where Var⁡(φ(T))≤Var⁡(W).

To prove that φ(T) is the unique UMVUE of τ(θ), we proceed to show that regardless of the choice of the unbiased estimator W of τ(θ), we get the same φ(T) from the Rao-Blackwell theorem (with probability 1). Then, we will have for every possible unbiased estimator W of τ(θ), Var⁡(φ(T))≤Var⁡(W) (with probability 1) [8], which means φ(T) is the UMVUE, and is also the unique UMVUE since we always get the same φ(T) [9].

Assume that W′ is another unbiased estimator of τ(θ) (W′≠W). By Rao-Blackwell theorem again, there is an unbiased estimator ψ(T)=𝔼[W′|T] (ψ(T)≠φ(T)) where Var⁡(ψ(T))≤Var⁡(W′). Since both φ(T) and ψ(T) are unbiased estimators of τ(θ), we have for each θ∈Θ, 𝔼[φ(T)]=𝔼[ψ(T)]⟹𝔼[φ(T)−ψ(T)]=0. Since T is a complete statistic, we have ℙ(φ(T)−ψ(T)=0)=1⟹ℙ(φ(T)=ψ(T))=1, which means φ(T)=ψ(T) (with probability 1), i.e., we get the same φ(T) from the Rao-Blackwell theorem in this case (with probability 1).

◻

Remark.

  • The "φ(T)" in this theorem is a function of T, and we know from the proof and Rao-Blackwell theorem that it is actually 𝔼[W|T] where W is an arbitrary unbiased estimator of τ(θ).
  • Thus, when we apply this theorem, as long as we can find a function of T, ϕ(T), (perhaps by some inspections) such that 𝔼[ϕ(T)]=τ(θ), we know that ϕ(T) is the unique UMVUE of τ(θ). Also, due to the uniqueness of UMVUE, the ϕ(T) is actually φ(T)=𝔼[W|T] where W is an arbitrary unbiased estimator of τ(θ).
  • We can find φ(T) by some inspections, as in above, in simple cases. However, in more complicated cases, it may not be immediately transparent that what should be the explicit form of φ(T) such that 𝔼[φ(T)]=τ(θ). In such case, we need to find an unbiased estimator of τ(θ) and evaluate 𝔼[W|T] to get the explicit form of φ(T).

Example. Consider a random sample X1,…,Xn from 𝒩(μ,σ2). Let the unknown parameter vector θ=(μ,σ2).

(a) Show that the sufficient statistic for θ, namely (X‾,S2), is also a complete statistic.

(b) Hence, show that X‾ and nn−1⋅S2 is the UMVUE of μ and σ2 respectively.

Solution:

(a)

Proof. It suffices to show that the parameter space Θ={(μ,σ2):μ∈ℝ,σ2>0} contains an open set in ℝ2. This is true since the parameter space Θ is the whole region above x-axis if we represent it using the Cartesian coordinate system, and thus contains an open set.

◻


(b)

Proof. Since 𝔼[X‾]=μ and 𝔼[nn−1⋅S2]=σ2 (we have shown these before), and X‾ and nn−1⋅S2 is function of complete and sufficient statistic X‾ (of μ) and S2 (of σ2) respectively, by Lehmann-Scheffé theorem, we have the desired result.

◻


Remark.

  • We have shown that nn−1⋅S2 does not attain the CRLB of σ2, and the CRLB of σ2 is actually unattainable. Thus, we were not able to determine whether nn−1⋅S2 is the UMVUE of σ2 before. Now, we know that nn−1⋅S2 is actually the UMVUE of σ2 with the help of Lehmann-Scheffé theorem.

Example. Consider a random sample X1,…,Xn from the Bernoulli distribution with success probability p, i.e., Ber⁡(p), with pmf f(x;p)=px(1−p)1−x,x=0,1.

(a) Find a complete and sufficient statistic T for p.

(b) Hence, find the UMVUE of p.

(c) Show that 𝟏{X1=1} is an unbiased estimator of p, and 𝔼[𝟏{X1=1}|T] is the UMVUE of p.

Solution:

(a) The pmf f(x;p)=px(1−p)1−x=(1−p)(p1−p)x=(1)⏟h(x)(1−p)⏟g(θ)exp⁡(x⏟T(x)ln⁡(p1−p)⏟η(p)). This means Bernoulli distribution belongs to the exponential family. Also, the parameter space Θ={p:0≤p≤1} contains an open set in ℝ. Hence, T=∑j=1nXj is a complete and sufficient statistic for p.

(b) Notice that 𝔼[T/n]=𝔼[X‾]=npn=p. Hence, X‾ (which is a function of T) is the UMVUE of p.

(c)

Proof. Since 𝔼[𝟏{X1=1}]=(1)ℙ(X1=1)=p, 𝟏{X1=1} is an unbiased estimator of p.

Now, we consider 𝔼[𝟏{X1=1}|T]=𝔼[𝟏{X1=1}|∑j=1nXj]. We denote ∑j=1nXj by Sn. Then, this expectation becomes 𝔼[𝟏{X1=1}|Sn]. In the following, we evaluate 𝔼[𝟏{X1=1}|Sn=sn]. 𝔼[𝟏{X1=1}|∑j=1nXj=sn]=(1)ℙ(𝟏{X1=1}=1|∑j=1nXj=sn)(definition)=ℙ(X1=1|∑j=1nXj=sn)=ℙ(∑j=1nXj=sn|X1=1)ℙ(X1=1)ℙ(∑j=1nXj=sn)(Bayes' theorem)=ℙ(∑j=2nXj=sn−1)⋅pℙ(∑j=1nXj=sn) Notice that ∑j=1nXj follows the binomial distribution with n trials with success probability p, i.e., Binom⁡(n,p), and ∑j=2nXj∼Binom⁡(n−1,p). Hence, ℙ(∑j=2nXj=sn−1)⋅pℙ(∑j=1nXj=sn)=(n−1sn−1)psn−1(1−p)n−1−sn+1⋅p(nsn)psn(1−p)n−sn(binomial distribution pmf's)=(n−1)!(sn−1)!(n−sn)!n!sn!(n−sn)!=(n−1)!sn(sn−1)!n(n−1)!(sn−1)!(sn!=sn(sn−1)! and n!=n(n−1)!)=snn. Now, replacing sn by Sn=∑j=1nXj gives 𝔼[𝟏{X1=1}|∑j=1nXj]=∑j=1nXjn=X‾, which is the UMVUE of p, as desired.

◻

Clipboard

Exercise. Can we find the UMVUE of p using the CRLB of p? If yes, find it using this way. If no, explain why.

Solution

No. This is because the log-likelihood function is not differentiable (it has nonzero value only when x=0,1), and thus the Fisher information is undefined. Hence, the CRLB does not exist.


Clipboard

Exercise. Consider a random sample X1,…,Xn from the Poisson distribution with rate parameter λ, with pmf f(x;λ)=e−λλxx! .

(a) Find a complete and sufficient statistic for λ.

(b) Find the UMVUE of λ/n.


Solution

(a) The pmf is f(x;λ)=e−λλxx!=e−λx!exp⁡(xln⁡λ)⏟=λx=1x!⏟h(x)⋅e−λ⏟g(λ)exp⁡(x⏟T(x)ln⁡λ⏟η(λ)). Hence, Poisson distribution belongs to the exponential family, and a complete and sufficient statistic for λ is T=∑j=1nXj.

(b) Take τ(λ)=λ/n. Since 𝔼[T]=𝔼[∑j=1nXj]=nλ, we have 𝔼[T/n2]=λ/n=τ(λ). Thus, the UMVUE of τ(λ)=λ/n is ∑j=1nXjn2=X‾n (which is a function of T).


Consistency

[edit | edit source]

In the previous sections, we have discussed unbiasedness and efficiency. In this section, we will discuss another property called consistency.

Definition. (Consistent estimator) θ̂ is a consistent estimator of the unknown parameter θ if θ̂→pθ.

Remark.

  • By the definition of convergence in probability, θ̂→pθ means ℙ(|θ̂−θ|>ε)→0 as n→∞, for each ε>0.

Proposition. If θ̂ is an (asymptotically) unbiased estimator of an unknown parameter θ and Var⁡(θ̂)→0 as n→∞, then θ̂ is a consistent estimator of θ.

Proof. Assume θ̂ is an (asymptotically) unbiased estimator of an unknown parameter θ and Var⁡(θ̂)→0 as n→∞. Since θ̂ is an (asymptotically) unbiased estimator of θ, we have limn→∞Bias⁡(θ̂)=0 (this is true for both asymptotically unbiased estimator and unbiased estimator of θ). In addition to this, we have by assumption that limn→∞Var⁡(θ̂)=0. By definition of mean squared error, these imply that limn→∞MSE⁡(θ̂)=0⇒limn→∞𝔼[(θ̂−θ)2]=0. Thus, as n→∞, we have by Chebyshov's inequality (notice that MSE⁡(θ̂)=𝔼[(θ̂−θ)2] exist from above), for each ε>0, ℙ(|θ̂−θ|>ε)≤𝔼[(θ̂−θ)2]ε2→0ε2=0. Since probability is nonnegative (≥0), and this probability is less than or equal to an expression that tends to be 0 as n→∞, we conclude that this probability tends to be zero as n→∞. That is, θ̂ is a consistent estimator of θ.

◻

Remark.

  • Unbiasedness alone does not imply consistency.

Example. Let X1,…,Xn be a random sample from 𝒩(μ,σ2). Then, X1 is an unbiased estimator of μ since 𝔼[X1]=μ. However, there exist some ε>0 such that ℙ(|X1−μ|>ε)↛0 as n→∞, i.e., limn→∞ℙ(|X1−μ|>ε)≠0 for some ε>0. Since |X1−μ| is independent from n, this means ℙ(|X1−μ|>ε)≠0 for some ε>0, which is true. Hence, X1 is not a consistent estimator of μ.

Clipboard

Exercise.

(a) Propose a consistent estimator of μ, and show that it is actually a consistent estimator of μ (Hint: consider weak law of large number).

(b) Propose a consistent estimator of the coefficient of variation (or relative standard deviation) σμ (assuming μ≠0 so that it is defined), and show that it is actually a consistent estimator of σμ (Hint: consider weak law of large number, and properties for convergence in probability. You can use the fact that normal distribution has a finite fourth moment).

Solution

(a) X‾ is a consistent estimator of μ.

Proof. By weak law of large number (notice that mean μ and variance σ2 are finite for normal distribution), X‾→pμ as desired.

◻


(b) S2X‾ is a consistent estimator of σμ.

Proof. By weak law of large number (variance is finite, and fourth moment is finite), X2‾→p𝔼[X2]. Also, by continuous mapping theorem, since (X‾)2→pμ2. Thus, by properties about convergence in probability and result about sample variance, S2=X2‾−(X‾)2→p𝔼[X2]−μ2=σ2. By continuous mapping theorem again, S2→pσ2=σ (since σ>0). Hence, by properties about convergence in probability (we assume that μ≠0) again, S2X‾→pσμ as desired.

◻




  1. ↑ For the parameter vector, it contains all parameters governing the distribution.
  2. ↑ We will simply use "θ" when we do not know whether it is parameter vector or just a single parameter. We may use θ instead if we know it is indeed a parameter vector.
  3. ↑ We will discuss some criterion for "good" in the #Properties of estimator section.
  4. ↑ β−β′=(max⁡{x1,…,xn}+β−max⁡{x1,…,xn})−(max⁡{x1,…,xn}+β−max⁡{x1,…,xn}2)=β−max⁡{x1,…,xn}2>0. Thus, β′<β.
  5. ↑ For each positive integer r, mr always exist, unlike μr.
  6. ↑ "uniformly" means that the variance is minimum compared to other unbiased estimators, over the parameter space Θ (i.e., for each possible value of θ∈Θ). That is, the variance is not just minimum for a particular value of θ, but all possible values of θ.
  7. ↑ This is different from the minimum value. For lower bound, it only needs to be smaller than all variances involved, and there may not be any variance that actually achieve this lower bound. However, for the minimum value, it has to be one of the values of the variance.
  8. ↑ Notice that this is a stronger result than the result in the Rao-Blackwell theorem, where the latter only states that Var⁡(φ(T))≤Var⁡(W), for the W corresponding to φ(T)
  9. ↑ Indeed, we know that UMVUE must be unique from previous proposition. However, in this argument, when we show that φ(T) is UMVUE, we also automatically show that it is unique.