Inference 4 of 8
On this page

Inference

6.3 Estimators

Chapter 3 of 7 56 min read

As we have already mentioned, statistical inference aims to extract information about a population from sample data. In this context, one of the main steps in obtaining this information is estimating the parameters. Consider the following example.

Example 3.1

Consider again the problem of determining, in a population, the proportion of people over 40 who suffer from arthritis. Let’s imagine that, out of a sample of 200 people over 40 years old, 12 people were found to have arthritis.

Thus, a natural estimate for the proportion would be $12/200 = 6%$. Of course, in this case, we are assuming that the sample represents the population and of course, if we took another sample from the population, we would possibly obtain a different estimate than the previous one.

Considering the general case in which we have a sample of $n$ elements, we can define the following random variable

$$ X_i = \begin{cases} 1, \ \hbox{se a i-ésima pessoa na amostra possui artrite} \cr 0, \ \hbox{caso contrário} \end{cases} $$

and be $p$ the probability of a person having arthritis in the population, that is, the parameter of interest in the study. In this case, we have to $$Y_n = \sum_{i=1}^{n}X_i$$

$Y_n$ has binomial distribution with parameters $n$ and $p$ and this variable represents the total number of individuals in the sample who have arthritis. Thus, a possible estimator for the proportion is given by

$$\hat{p} = \frac{Y_n}{n} = \sum_{i=1}^{200}\frac{X_i}{200}=\frac{\hbox{pessoas com artrite na amostra}}{\hbox{tamanho amostral}}.$$

In this way, if $Y_n = k$, we have to $\hat{p} = \frac{k}{n}$ is an estimate for the proportion $p$. If we consider the sample extracted above, we have that the estimate is given by $\frac{12}{200} = 6%$.

We have already seen in Section 6.2.2 that $\hat{p}$ has an approximately normal distribution with a mean $p$ and variance $p(1-p)/n$, that is,

$$\mathbb{E}\left(\hat{p}\right) = p \qquad \text{Var}\left(\hat{p}\right) = \frac{p(1-p)}{n}.$$

In this way, we can conclude that, on average, the estimator $\hat{p}$ is “equal” (is very close) to $p$ and then we say that the $\hat{p}$ is an unbiased (or unbiased) estimator of $p$. Furthermore, for large samples, the difference between the actual value $p$ and the estimator $\hat{p}$ tends to be small, since when $n \rightarrow\infty$, $\text{Var}\left(\hat{p}\right) \rightarrow 0$ and in this case we say that $\hat{p}$ is a consistent estimator of p. But how can we check this?

Next, we will check some properties of the statistics used in inference and methods to calculate estimators, including the methods of moments, least squares and maximum likelihood. Next, we will study interesting properties of estimators.

6.3.1 Statistics Properties

Statistical inference regarding an estimator $\theta$ is based on information available in some sample $X_1, \ldots, X_n$ removal from the population of interest. Generally, this is done using statistics, which are functions of the sample. For example, the sample mean is a statistic. Any statistic $T(\textbf{X}) = T(X_1,\ldots,X_n)$ defines a way of summarizing data. If the experimenter uses only the observed value of the statistic $T(\textbf{X})$ rather than the entire sample $\textbf{X}$, then the treatment will be the same for two samples $\textbf{X}$ and $\textbf{Y}$ that satisfy $T(\textbf{X}) = T(\textbf{Y})$ even though the observed values of $\textbf{X}$ and $\textbf{Y}$ are different. Next, we will study some data reduction principles. The main ones are: the principle of sufficiency and the principle of equivariance.

6.3.1.1 Principle of Sufficiency

Be $\theta$ a parameter of interest. The sufficiency principle states that a statistic $T(\textbf{X})$ is said to be sufficient for the parameter $\theta$ if it captures all the information about $\theta$ contained in the sample, that is, if $X_1, \ldots, X_n$ is a sample taken from the population, $T(\textbf{X})$ is a enough statistics for $\theta$ if any inference about $\theta$ depends on the sample $\textbf{X}$ only the value $T(\textbf{X})$, that is, if $\textbf{X}$ and $\textbf{Y}$ are two samples such that $T(\textbf{x}) = T(\textbf{y})$, then the inference about $\theta$ is the same regardless of observation $\textbf{X}$ or $\textbf{Y}$.

Definition 3.1.1.1

Formally, we say that a statistic $T(\textbf{X})$ is enough for the parameter $\theta$ if the conditional distribution of the sample $\textbf{X}$ given the value of $T(\textbf{X})$ does not depend on $\theta$. That is, $P(\textbf{X} = \textbf{x}|T(\textbf{X}) = t)$ does not depend on $\theta$.

In the case where $T(\mathbf{X})$ has a continuous distribution, we have $P(T(\mathbf{X}) = t) = 0$ for any real value $t$. This means that in this context we cannot directly use the classical definition of conditional probability based on positive probability events. Therefore, it is necessary to resort to a more sophisticated definition of conditional probability.

The results discussed here will be developed in the discrete context, but it is worth highlighting that these same results also apply to the continuous case, with the necessary adaptations.

To better understand Definition 3.1.1.1, consider a fixed value $t$ possible for statistics $T(\mathbf{X})$. The objective is to analyze the conditional probability $P(\mathbf{X} = \mathbf{x} \mid T(\mathbf{X}) = t)$. Note that, if $\mathbf{x}$ does not satisfy $T(\mathbf{x}) = t$, then $P(\mathbf{X} = \mathbf{x} \mid T(\mathbf{X}) = t) = 0$, that is, only the values of $\mathbf{x}$ compatible with $T(\mathbf{x}) = t$ have positive conditional probability.

Finally, if $T(\mathbf{X})$ is a sufficient statistic, then the conditional expectation $\mathbb{E}_\theta[g(\mathbf{X}) \mid T(\mathbf{X})]$ is independent of the parameter $\theta$, that is, it is the same for all values of $\theta$.

Theorem 3.1.1.1

Se $p(\textbf{x}|\theta)$ is the probability function or probability density function of $\textbf{X}$ and $q(t|\theta)$ is the probability function or probability density function of $T(\textbf{X})$ then $T(\textbf{X})$ is enough of a statistic to $\theta$ if, for all $\textbf{x}$ in the sample space, $\frac{p(\textbf{x}|\theta)}{q(T(\textbf{x})|\theta)}$ is constant (does not depend on $\theta$).

Example 3.1.1.1

Be $X_1,\ldots,X_n$ an independent and equally distributed sample with Bernoulli distribution with parameter $\theta$. In this case, we have that the statistic $T(\textbf{X}) = X_1 + \ldots + X_n$ is enough of a statistic to $\theta$.

In fact, we have to $T(\textbf{X})$ has a Binomial distribution with parameters $n$ and $\theta$, that is, $T(\textbf{X})\sim \ \hbox{Binomial}(n,\theta)$. Assuming that $\sum X_i = t$, it follows that

$$\frac{p(\textbf{x}|\theta)}{q(T(\textbf{x})|\theta)} = \frac{\prod_{i = 1}^n\theta^{x_i}(1-\theta)^{1-x_i}}{ {n \choose t} \theta^t(1-\theta)^{n-t}} = \frac{\theta^{\sum x_i}(1-\theta)^{\sum(1-x_i)}}{{n \choose t} \theta^t (1-\theta)^{n-t}} = \frac{\theta^t(1-\theta)^{n-t}}{{n \choose t}\theta^t(1-\theta)^{n-t}}=\frac{1}{{n \choose t}}.$$

so that $T(\textbf{X})$ is enough to $\theta$.

Example 3.1.1.2

Be $X_1,\ldots,X_n$ an independent and equally distributed sample with normal distribution with mean $\mu$ and variance $\sigma^2$ known, that is $N(\mu,\sigma^2)$. The sample mean $T(\textbf{X}) = \bar{X}$ is enough of a statistic to $\mu$.

In fact, the joint probability density function of the sample $\textbf{X}$ is

$$f(\textbf{x}|\mu) = \prod_{i=1}^n\frac{1}{(2\pi\sigma^2)^{1/2}}\exp\left(\frac{-(x_i-\mu)^2}{2\sigma^2}\right) = \frac{1}{(2\pi\sigma^2)^{n/2}}\exp\left(-\sum_{i=1}^n\frac{(x_i-\mu)^2}{2\sigma^2}\right).$$

from which we conclude that

$$f(\textbf{x}|\mu) = \frac{1}{(2\pi\sigma^2)^{n/2}}\exp\left(-\frac{\left(\sum_{i=1}^n(x_i-\bar{X})^2 + n(\bar{X}-\mu)^2\right)}{2\sigma^2}\right).$$

We also emphasize that the statistics $\bar{X}$ has a normal distribution with a mean $\mu$ and variance $\sigma^2/n$, so that

$$\frac{f(\textbf{x}|\mu)}{q(T(\textbf{x})|\mu)}=\frac{(2\pi\sigma^2)^{n/2}\exp\left(-\left(\sum_{i=1}^n(x_i-\bar{X})^2+n(\bar{X}-\mu)^2\right)/(2\sigma^2)\right)}{(2\pi\sigma^2/n)^{-1/2}\exp(-n(\bar{X}-\mu)^2/(2\sigma^2))}$$

whence it follows that

$$\frac{f(\textbf{x}|\mu)}{q(T(\textbf{x})|\mu)}=n^{-1/2}(2\pi\sigma^2)^{-(n-1)/2}\exp\left(-\sum_{i=1}^n\frac{(x_i-\bar{X})^2}{2\sigma^2}\right).$$

which does not depend on $\mu$. Therefore, by Theorem 3.1.1.1 the sample mean $\bar{X}$ is enough of a statistic to $\mu$.

Theorem 3.1.1.2 (Fisher-Neyman Factorization Theorem)

Be $f(\textbf{x}|\theta)$ the probability density function or joint probability function of a sample $\textbf{X}$. A statistic $T(\textbf{X})$ is enough for $\theta$ if and only if there are functions $g(t|\theta)$ and $h(\textbf{x})$ such that, for any sample point $\textbf{x}$ and $\theta$ In the parameter space, the equality holds

$$f(\textbf{x}|\theta)=g(T(\textbf{x})|\theta)h(\textbf{x}).$$

In which $g(T(\textbf{x})|\theta)$ is a factor that depends on $\theta$ and also of $\textbf{x}$ through statistics $T(\textbf{x})$ and $h(\textbf{x})$ a factor that depends only on $\textbf{x}$.

Returning to Example 3.1.1.2, we have $f(\textbf{x}|\mu)$ can be factored as follows

$$f(\textbf{x}|\mu)=\frac{1}{(2\pi\sigma^2)^{n/2}}\exp\left(-\sum_{i=1}^n\frac{(x_i-\bar{X})^2}{2\sigma^2}\right) \exp\left(-\frac{n(\bar{X}-\mu)^2}{2\sigma^2}\right)$$

and, defining

$$h(\textbf{x}) = \frac{1}{(2\pi\sigma^2)^{n/2}}\exp\left(-\sum_{i=1}^n\frac{(x_i-\bar{X})^2}{2\sigma^2}\right)$$

which does not depend on the parameter $\mu$ and

$$g(t|\mu) = \exp\left(-\frac{n(t-\mu)^2}{2\sigma^2}\right)$$

which is a factor that contains the parameter $\mu$ and depends on the sample $\textbf{x}$ by function $T(\textbf{x}) = \bar{X}$. In this way, it follows that

$$f(\textbf{x}|\mu)=h(\textbf{x})g(T(\textbf{x})|\mu).$$

And then, by the Factorization Theorem, $T(\textbf{X}) = \bar{X}$ is enough of a statistic to $\mu$.

Example 3.1.1.3

Be $X_1,\ldots, X_n$ independent, identically distributed observations of a discrete uniform distribution in $1, \ldots, \theta$. In this way, the probability function of $X_i$ is

$$f(x|\theta) = \begin{cases} \frac{1}{\theta} \quad \text{se } x = 1, 2, \ldots, \theta \cr 0, \quad \text{caso contrário} \end{cases} $$

and the joint probability function of $X_1, \ldots, X_n$ is

$$f(\textbf{x}|\theta) = \begin{cases} \frac{1}{\theta^n}, \ \hbox{se} \ x_i\in \lbrace 1,\ldots,\theta \rbrace \ \hbox{para} \ i = 1,\ldots, n \cr 0, \ \hbox{caso contrário} \end{cases}$$

Considering the order statistic $T(\textbf{x}) = x_{(n)} = \max_i x_i$ and the functions $h(x)$ and $g(t|\theta)$ given, respectively, by

$$h(x) = \begin{cases} 1, \ \hbox{se} \ x_i\in \lbrace 1,2,\ldots \rbrace \ \hbox{para} \ i = 1,\ldots, n \cr 0, \ \hbox{caso contrário}\end{cases} \quad \hbox{e} \quad g(t|\theta) = \begin{cases}\frac{1}{\theta^n}, \ \hbox{se} \ t\leq\theta \cr 0, \ \hbox{caso contrário}\end{cases}$$

it is immediate to verify that $f(\textbf{x}|\theta) = g(T(\textbf{x})|\theta)h(\textbf{x})$ for everyone $\textbf{x}$ and $\theta$. Therefore, by the Factorization Theorem, $T(\textbf{X})$ is a sufficient statistic.

Example 3.1.1.4

Assume again that $X_1,\ldots,X_n$ is an independent and equally distributed sample from a normal distribution with mean $\mu$ and variance $\sigma^2$, however now, both parameters are unknown. In this case we have the parameter vector $\theta = (\mu,\sigma^2)$. In this case, we have that the probability density function depends on the sample $\textbf{x}$ only the values $T_1(\textbf{x}) = \bar{X}$ and $T_2(\textbf{x}) = s^2$. In fact, we have to

$$f(\textbf{x}|\theta) = \frac{1}{(2\pi\sigma^2)^{n/2}}\exp\left(-\sum_{i=1}^n\frac{(x_i-\bar{X})^2}{2\sigma^2}-\frac{n(\bar{X}-\mu)^2}{2\sigma^2}\right)$$

whence it follows that

$$f(\textbf{x}|\theta) =\frac{1}{(2\pi\sigma^2)^{n/2}}\exp\left( -\frac{n(\bar{X}-\mu)^2}{2\sigma^2}-\frac{(n-1)s^2}{2\sigma^2}\right)$$

and then, defining $h(\textbf{x}) = 1$ and

$$g(t_1,t_2|\theta) = \frac{1}{(2\pi\sigma^2)^{n/2}}\exp\left(-\frac{\left(n(t_1-\mu)^2+(n-1)t_2\right)}{2\sigma^2}\right)$$

it follows that

$$f(\textbf{x}|\mu,\sigma^2) = g(T_1(\textbf{x}),T_2(\textbf{x})|\mu,\sigma^2) \ h(\textbf{x})$$

and, by the Factorization Theorem, $T(\textbf{X}) = (T_1(\textbf{X}),T_2(\textbf{X})) = (\bar{X},s^2)$ is enough of a statistic to $\theta = (\mu,\sigma^2)$.

Example 3.1.1.4 shows us that summarizing data only by sample mean and sample variance is, in fact, a justified practice. Enough statistics $(\bar{X}, s^2)$ Contains all information about the parameters $(\mu,\sigma^2)$ available in sample. The following theorem provides us with a very efficient way of finding a sufficient statistic $T(\textbf{X}) = (T_1(\textbf{X}),\ldots,T_k(\textbf{X}))$ for a vector of parameters $\theta = (\theta_1,\ldots,\theta_d)$ with $d\leq k$.

Theorem 3.1.1.3

Be $X_1,\ldots,X_n$ independent and equally distributed observations with probability function or probability density function $f(x|\theta)$ that belongs to a exponential family, that is, $f(x|\theta)$ can be written in the following form

$$f(x|\theta) = h(x)c(\theta)\exp\left(\sum_{i=1}^kw_i(\theta)t_i(x)\right)$$

in which $\theta = (\theta_1,\ldots,\theta_d)$, $d\leq k$. In this case, we have to

$$T(\textbf{X}) = \left(\sum_{j=1}^nt_1(X_j),\ldots,\sum_{j=1}^nt_k(X_j)\right)$$

is enough of a statistic to $\theta$.

Example 3.1.1.5

Be $X_1,\ldots,X_n$ an independent and equally distributed random sample from a Bernoulli distribution with parameter $0 \ < \ \theta \ < \ 1$. The Bernoulli distribution belongs to the exponential family. In fact, we have to

$$f(x|\theta) = \theta^x(1-\theta)^{1-x} = \exp\left(\log(\theta^x(1-\theta)^{1-x})\right) = \exp\left(x\log\theta + (1-x)\log(1-\theta)\right)$$

where can we write from

$$f(x|\theta) = \exp\left(x\log\left(\frac{\theta}{1-\theta}\right)+\log(1-\theta)\right) = (1-\theta)\exp\left(x\log\left(\frac{\theta}{1-\theta}\right)\right)$$

and then just take $c(\theta) = 1-\theta$, $t(x) = x$ and $w(\theta) = \log(\frac{\theta}{1-\theta})$. How $t(x) = x$, it follows from Theorem 3.1.1.3 that $T(\textbf{x}) = \sum_{j=1}^nt(X_j) = \sum_{j=1}^nX_j$ is a sufficient statistic for the parameter $\theta$, proving the result in Example 3.1.1.1.

Note 3.1.1.1

The complete sample $\textbf{X}$ is a sufficient statistic. In fact, we can factor the probability function or probability density function of $\textbf{X}$ how $f(\textbf{x}|\theta) = f(T(\textbf{x})|\theta)h(\textbf{x})$ in which $T(\textbf{x}) = \textbf{x}$ and $h(\textbf{x}) = 1$ for any $\textbf{x}$.

Note 3.1.1.2

Any bijective function of a sufficient statistic is a sufficient statistic. In fact, suppose that $T(\textbf{X})$ is a sufficient statistic and consider $T^\ast(\textbf{x}) = m(T(\textbf{x}))$ for everyone $\textbf{x}$ in which $m$ is a bijective function with inverse $m^{-1}$. We have, by the Factorization Theorem, that there are functions $g$ and $h$ such that

$$f(\textbf{x}|\theta) = g(T(\textbf{x})|\theta)h(\textbf{x}) = g(m^{-1}(T^\ast(\textbf{x}))|\theta)h(\textbf{x})$$

and then, defining $g^\ast(t|\theta) = g(m^{-1}(t)|\theta)$, we conclude that

$$f(\textbf{x}|\theta) = g^\ast(T^\ast(\textbf{x})|\theta)h(\textbf{x})$$

so that, by the Factorization Theorem, $T^\ast(\textbf{X})$ is a sufficient statistic.

Definition 3.1.1.2

A sufficient statistic $T(\textbf{X})$ is called minimal enough statistics if, for any other sufficient statistic $T'(\textbf{X})$, $T(\textbf{x})$ is a function of $T'(\textbf{x})$.

It is not interesting to use Definition 3.1.1.2 to find a minimal sufficient statistic, just as it is not practical to use Definition 3.1.1.1 to find a sufficient statistic. The theorem below provides us with a practical way to find a minimal sufficient statistic.

Theorem 3.1.1.4

Be $f(\textbf{x}|\theta)$ the probability function or probability density function of a sample $\textbf{X}$. Suppose there is a function $T(\textbf{x})$ such that, for any $\textbf{x}$ and $\textbf{y}$, the reason $f(\textbf{y}|\theta)/f(\textbf{x}|\theta)$ is constant if and only if $T(\textbf{x}) = T(\textbf{y})$. So $T(\textbf{X})$ is a minimal enough statistic to $\theta$.

Example 3.1.1.6

Be $X_1,\ldots,X_n$ an independent, equally distributed sample from a normal distribution with mean $\mu$ and variance $\sigma^2$ unknown and are $\textbf{x}$ and $\textbf{y}$ two sample points such that $(\bar{x},s^2_{\textbf{x}})$ and $(\bar{y},s^2_{\textbf{y}})$ are the means and variances corresponding to $\textbf{x}$ and $\textbf{y}$ respectively. In this case, we have to

$$\frac{f(\textbf{x}|\mu,\sigma^2)}{f(\textbf{y}|\mu,\sigma^2)}=\frac{(2\pi\sigma^2)^{-n/2}\exp\left(-[n(\bar{x}-\mu)^2+(n-1)s^2_{\textbf{x}}]/(2\sigma^2)\right)}{(2\pi\sigma^2)^{-n/2}\exp\left(-[n(\bar{y}-\mu)^2+(n-1)s^2_{\textbf{y}}]/(2\sigma^2)\right)}$$

from which we conclude that

$$\frac{f(\textbf{x}|\mu,\sigma^2)}{f(\textbf{y}|\mu,\sigma^2)} = \exp\left([-n(\bar{x}^2-\bar{y}^2)+2n\mu(\bar{x}-\bar{y})-(n-1)(s^2_{\textbf{x}}-s^2_{\textbf{y}})]/(2\sigma^2)\right)$$

which is constant with respect to the parameters $\mu$ and $\sigma^2$ if and only if $\bar{x} = \bar{y}$ and $s^2_{\textbf{x}} = s^2_{\textbf{y}}$. It follows from the Lehmann-Scheffé Theorem that $(\bar{X}, S^2)$ is a minimal enough statistic to $(\mu,\sigma^2)$.

Ancillary Statistics

Sufficient statistics, as we have seen, have all the information regarding the parameter $\theta$ available in sample. In contrast, an ancillary statistic does not contain any information about the parameter $\theta$. In this case, an ancillary statistic is an observation of a random variable whose distribution is fixed and known, as well as unrelated to $\theta$.

Definition 3.1.1.3

A statistic $S(\textbf{X})$ whose distribution does not depend on the parameter $\theta$ is called an ancillary statistic.

Example 3.1.1.7

Be $X_1,\ldots,X_n$ an independent, equally distributed random sample from a uniform distribution over the interval $(\theta,\theta+1)$, $-\infty \ < \ \theta \ < \ \infty$ and be $X_{(1)}<\ldots< X_{(n)}$ the sample order statistic. In this case, we have the amplitude $R = X_{(n)} - X_{(1)}$ is an ancillary statistic.

In fact, we have that the cumulative distribution function of each $X_i$ is given by

$$F(x|\theta) = \begin{cases} 0, \ \hbox{se} \ x\leq\theta \cr x-\theta \ \hbox{se} \ \theta \ < \ x \ < \ \theta+1 \cr 1, \ \hbox{se} \ x\geq \theta+1\end{cases}$$

Thus, the joint distribution function of $X_{(1)}$ and $X_{(n)}$ is given by

$$g(x_{(1)},x_{(n)}|\theta) = \begin{cases}n(n-1)(x_{(n)}-x_{(1)})^{n-2}, \ \hbox{se} \ \theta \ < \ x_{(1)} \ < \ x_{(n)} \ < \ \theta+1 \cr 0, \ \hbox{caso contrário.} \end{cases}$$

Considering the transformation $R = X_{(n)}-X_{(1)}$ and $M = (X_{(1)}+X_{(n)})/2$ which has the inverse transformation $X_{(1)} = (2M-R)/2$ and $X_{(n)} = (2M+R)/2$ with Jacobian, we have that the joint probability density function of $R$ and $M$ is

$$h(r,m|\theta) = \begin{cases}n(n-1)r^{n-2}, \ 0 \ < \ r \ < \ 1, \ \theta + (r/2) \ < \ m \ < \ \theta+1-(r/2) \cr 0, \ \hbox{caso contrário} \end{cases}$$

and the probability density function of $R$ is

$$h(r|\theta) = \int_{\theta+(r/2)}^{\theta+1-(r/2)}n(n-1)r^{n-2}dm = n(n-1)r^{n-2}(1-r), \ 0 \ < \ r \ < \ 1$$

which does not depend on $\theta$ and then, $R$ is an ancillary statistic.

Definition 3.1.1.4

Be $f(t|\theta)$ a family of probability functions or probability density functions for a statistic $T(\textbf{X})$. The family of probability distributions is called complete if $\mathbb{E}(g(T)) = 0$ for everyone $\theta$ imply that $\mathbb{P}(g(T) = 0) = 1$ for everyone $\theta$. Equivalently, $T(\textbf{X})$ is a full statistics.

Example 3.1.1.8

Suppose $T$ have Binomial(n,p) distribution with $0 \ < \ p \ < \ 1$ and be $g$ a function such that $\mathbb{E}(g(T)) = 0$. So

$$0 = \mathbb{E}(g(T)) = \sum_{t=0}^ng(t)\binom{n}{t}p^t(1-p)^{n-t} = (1-p)^n\sum_{t=0}^ng(t)\binom{n}{t}\left(\frac{p}{1-p}\right)^t$$

for $0 \ < \ p \ < \ 1$. How $(1-p)^n$ is non-zero for any $p$, it follows that

$$0 = \sum_{t=0}^ng(t)\binom{n}{t}\left(\frac{p}{1-p}\right)^t = \sum_{t=0}^ng(t)\binom{n}{t}r^t$$

for everyone $r$ with $0 \ < \ r \ < \ \infty$. Since none of the terms $\binom{n}{t}$ is null, so $\binom{n}{t}$ is non-null and then, $g(t) = 0$ for everyone $t = 0,1,\ldots,n$. As, hypothetically, $T$ assumes the values $0, 1, \ldots, n$ with probability 1, it follows that $\mathbb{P}(g(T) = 0) = 1$ for everyone $p$ and, in this way, $T$ It’s a complete statistic.

Example 3.1.1.9

Be $X_1, \ldots, X_n$ independent and equally distributed observations from a Uniform distribution $(0,\theta)$ with $0 \ < \ \theta \ < \ \infty$. Analogously to Example 3.1.1.3, we can show that $T(\textbf{X}) = \max_iX_i$ is a sufficient statistic and the probability density function of $T(\textbf{X})$ is given by

$$f(t|\theta) = \begin{cases}nt^{n-1}\theta^{-n}, \ \hbox{se} \ 0 \ < \ t \ < \ \infty \cr 0, \ \hbox{caso contrário.} \end{cases}$$

Be $g(t)$ a function that satisfies $\mathbb{E}(g(T)) = 0$ for everyone $\theta$. Once $\mathbb{E}(g(T))$ is constant as a function of $\theta$, its derivative with respect to $\theta$ is $0$. Therefore

$$0 = \frac{d}{d\theta}\mathbb{E}(g(T)) = \frac{d}{d\theta}\int_0^\theta g(t)nt^{n-1}\theta^{-n}dt = (\theta^{-n})\frac{d}{d\theta}\int_0^\theta ng(t)t^{n-1}dt + \left(\frac{d}{d\theta}\theta^{-n}\right)\int_0^\theta ng(t)t^{n-1}dt$$

from which we conclude that

$$0 = \theta^{-1}ng(\theta).$$

How $n\theta^{-1}\neq0$, it follows that $g(\theta) = 0$ and this is true for everyone $\theta \ > \ 0$, then $T$ It’s a complete statistic.

Theorem 3.1.1.5 (Basu’s Theorem)

Se $T(\textbf{X})$ is a minimal and complete enough statistic, so $T(\textbf{X})$ is independent of any ancillary statistics.

Theorem 3.1.1.6

Be $X_1,\ldots,X_n$ independent and equally distributed observations of an exponential family with probability function or probability density function of the form

$$f(x|\theta) = h(x)c(\theta)\exp\left(\sum_{j=1}^kw(\theta_j)t_j(x)\right)$$

in which $\theta = (\theta_1,\theta_2,\ldots,\theta_k)$. So the statistics

$$T(\textbf{X}) = \left(\sum_{i=1}^nt_1(X_i),\sum_{i=1}^nt_2(X_i),\ldots,\sum_{i=1}^nt_k(X_i)\right)$$

is complete, as long as the parameter space $\Theta$ contains an open set in $\mathbb{R}^k$.

6.3.1.2 Principle of Likelihood

The likelihood principle can also be used to summarize data. We will see in this section that, if some principles are accepted, the likelihood function must be used as a data reduction device.

Definition 3.1.2.1

Be $f(x|\theta)$ the probability function or probability density function of a sample $\textbf{X} = (X_1,\ldots,X_n)$. So, given that $\textbf{X} = \textbf{x}$ is observed, the function of $\theta$ defined by

$$L(\theta|\textbf{x}) = f(\textbf{x}|\theta)$$

is called likelihood function.

Suppose $\textbf{X}$ is a discrete random vector, then $L(\theta|\textbf{x}) = \mathbb{P}_{\theta}(\textbf{X} = \textbf{x})$. Suppose that the likelihood function at two parametric points $\theta_1$ and $\theta_2$ satisfy the following inequality

$$ \mathbb{P}_ {\theta_1} (\mathbf{X} = \mathbf{x}) = L(\theta_1 | \mathbf{x}) > L(\theta_2 | \mathbf{x}) = \mathbb{P}_{\theta_2}(\mathbf{X} = \mathbf{x}) $$

we can conclude that it is more likely that the observed sample occurred if $\theta = \theta_1$ than if $\theta = \theta_2$.

Note 3.1.2.1

It is worth mentioning that the difference between the probability function (or probability density function) and the likelihood function lies precisely in which variable is considered fixed and which is varying. When we consider the probability function or probability density function, $\theta$ is fixed while $\textbf{x}$ is variable and when we consider the likelihood function, the observed sample $\textbf{x}$ is fixed while $\theta$ it is variable in relation to the possible parametric values.

Example 3.1.2.1

Consider $10$ independent Bernoulli trials with parameter $p, \quad (0 \ < \ p \ < \ 1)$ and the random variable $X$ defined as the sum of the values observed in the tests. In this case, we know that X has a binomial distribution with parameters $10$ and $p$, that is, $$X \sim \ \hbox{Binomial}(10,p)$$

Suppose that, from the sample, we have that the observed value is $X = 3$. Then the likelihood function is given by

$$L(\theta|3) = \mathbb{P}(X = 3) = \binom{10}{3}p^3(1-p)^7.$$

For the general case, we have that, if $X = x$ is observed, then the likelihood function is

$$L(\theta|x) = \mathbb{P}(X = x) = \binom{10}{x}p^x(1-p)^{10-x}.$$

The likelihood principle specifies how the likelihood function should be used to summarize data.

Principle of likelihood

Suppose $\textbf{x}$ and $\textbf{y}$ are two sample points such that $L(\theta|\textbf{x})$ is proportional to $L(\theta|\textbf{y})$, that is, there is a constant $C(\textbf{x},\textbf{y})$ such that

$$L(\theta|\textbf{x}) = C(\textbf{x},\textbf{y})L(\theta|\textbf{y}), \ \hbox{para todo} \ \theta$$

then the conclusions obtained from $\textbf{x}$ and $\textbf{y}$ must be identical.

Note 3.1.2.2

Note that the constant $C(\textbf{x},\textbf{y})$ in the equation above may be different for pairs $(\textbf{x},\textbf{y})$ different, but $C(\textbf{x},\textbf{y})$ does not depend on $\theta$.

Se $C(\textbf{x},\textbf{y}) = 1$, the likelihood principle states that if two sample points result in the same likelihood function, then they contain the same information about $\theta$ and if two sample points have proportional likelihoods, they contain equivalent information about $\theta$.

6.3.1.3 Principle of Equivariance

Be $\textbf{x}$ and $\textbf{y}$ two samples and $T$ a function of the sample. The principle of Equivariance establishes that if $T(\textbf{x}) = T(\textbf{y})$, then the inference made if $\textbf{x}$ is observed must have a certain relationship with the inference made if $\textbf{y}$ is observed, although the two inferences may not be the same. The data reduction technique that will be called the equivariance principle will actually be a combination of two different equivariance considerations: measurement equivalence and the informal invariance. Both will be described below.

Measurement equivariance establishes that the inference made about an experiment must be independent of the measurement unit used. For example, suppose that two experimenters must carry out the same measurement experiment and one of them uses measurements in inches and the other uses measurements in meters and that, at the end of the experiment, the estimated result must be given in inches. In this case, the second experimenter can obtain the estimated result in meters and later convert it to inches and thus, both will produce the same estimates.

Informal invariance states that, if two inference problems have the same formal structure in mathematical terms, then the same inference procedure can be performed on both problems. The elements that must be equal are the parameter space $\Theta$ and the set of probability functions or probability density functions of the sample, that is, $ \lbrace f(\textbf{x}|\theta):\theta\in\Theta \rbrace $. In this way, informal invariance is concerned with the mathematical entities involved rather than the physical description of the phenomenon studied.

Next, we state the principle of equivariance based on the above considerations.

Equivariance principle

Se $\textbf{Y} = g(\textbf{X})$ is a change in the unit of measurement such that the statistical model for $\textbf{Y}$ has the same formal structure as the model for $\textbf{X}$, then a statistical procedure must be equivariant to the measurement and formally invariant.

Example 3.1.3.1

Be $X$ a binomial distribution with parameters $n$ known and probability $p$ unknown and be $T(x)$ the estimate of $p$ which is used when $X = x$ is observed. We can use the number of successes $X$ to make inference about $p$, but we can also use the number of failures $Y = n - X$, which also has a binomial distribution with parameters $(n,q = 1-p)$. In this case, if $T^\ast(y)$ is the estimate of $q$ used when $Y = y$ is observed, then $1-T^\ast(y)$ is the estimate of $p$ when $Y = y$ is observed. Se $x$ successes are observed, then the estimate for $p$ is $T(X)$. But when there are $x$ successes necessarily exist $(n-x)$ failures and, in this way, $1 - T^\ast(n-x)$ is also an estimate of $p$. From measurement equivariance, these two estimates should be equal, i.e. $T(x) = 1 - T^\ast(n-x)$, since the change of $X$ for $Y$ it’s just a change in the measurement scale. Also, as $X$ and $Y$ have binomial distribution with parameters $n$ and $\theta$ with $0 \leq\theta\leq 1$, we have, from form invariance that $T(z) = T^\ast(z)$ for everyone $z = 0, \ldots,n$. In this way, we have to $$T(x) = 1 - T^\ast(n-x) = 1 - T(n-x) \quad (\ast)$$

Here, it is worth noting that while specifying an arbitrary estimator requires specifying $T(0), T(1), \ldots, T(n)$, the specification of an estimator that satisfies the above equation requires only the specification of $T(0), T(1),\ldots, T([n/2])$ in which $[n/2]$ is the largest integer smaller than $n/2$. The remaining values are completely determined by these, e.g. $T(n) = 1-T(0), \ \ T(n-1) = 1-T(1)$ and so on. And it is in this sense that we always achieve a reduction in data through the principle of equivariance, that is, the inference to be made for some sample points determines the inference to be made for other sample points.

For this example in particular, we could use the following equivariant estimators: $$T_1(x) = \frac{x}{n} \ \hbox{e} \ T_2(x) = 0,9\frac{x}{n} + 0,1\times 0,5.$$

It is simple to check that the condition established in $(\ast)$ is fulfilled. In fact, we have to $$T_1(x) = \frac{x}{n} = \frac{n -(n-x)}{n} = 1 - T_1(n-x)$$

and $$T_2(x) = 0,9\frac{x}{n} + 0,1\times 0,5 = 1 - 0,9\frac{n-x}{n} - 0,1\times 0,5 = 1 - T_2(n-x).$$

Of course, a key point in the principle of equivariance is the choice of transformation involved. The transformation function on the data in Example 3.1.3.1 is $Y = n-X$.

Definition 3.1.3.1

A set of functions $ \lbrace f(\textbf{x}): f\in\mathcal{G} \rbrace $ of the sample space $\Omega$ in $\Omega$ is called the group of transformations of $\Omega$ if the following properties are satisfied

  1. All function $f\in\mathcal{G}$ has an inverse function $f^{-1}$.

  2. Se $f\in\mathcal{G}$ and $g\in\mathcal{G}$ then there is $h\in\mathcal{G}$ such that $h = f\circ g\in\mathcal{G}$.

  3. The identity $e(\textbf{x}) = \textbf{x}$ is an element of $\mathcal{G}$.

Property 3 is a consequence of the previous two and therefore does not need to be checked separately.

Returning to Example 3.1.3.1 we see that there are only two transformations involved, so we take the set $\mathcal{G} = \lbrace f,g \rbrace $ with $f(x) = n - x$ and $g(x) = x$. In this case, the function $g$ is the inverse of the function $f$ and, therefore, property 1 is satisfied. Furthermore, on property 2, $f\circ g(x) = f(x), g\circ f(x) = f(x), f\circ f(x) = g(x)$ and $g\circ g(x) = g(x)$.

As we have already commented, to use the Principle of Equivariance, we need to use formal invariance to the transformed problem, that is, after the change in the measurement scale, we need to have the same formal structure for statistical inference. In this case, we want the model, or family of distributions, to be invariant.

Definition 3.1.3.2

Be $\mathcal{F} = \lbrace f(\textbf{x}|\theta): \theta\in\Theta \rbrace $ a set of probability functions or probability density functions for $\textbf{X}$ and be $\mathcal{G}$ a group of transformations of the sample space $\Omega$. So, $\mathcal{F}$ is invariant under the group $\mathcal{G}$ if, for all $\theta\in\Theta$ and $g\in\mathcal{G}$, there is a single $\theta'\in\Theta$ such that $\textbf{Y} = g(\textbf{X})$ has distribution $f(\textbf{y}|\theta')$ if $\textbf{X}$ has the distribution $f(\textbf{x}|\theta)$.

6.3.2 Moment Estimators

Another way to find estimators of population parameters, such as the mean and variance for example, is through the method of moments. This method is based on the theoretical and sampling moments of the random variables involved. In Section 6.3.4 of Probabilities, we have a detailed explanation of theoretical moments and the moment generating function. We recall here the definition of theoretical moment.

Definition 3.2.1

Be $X$ a random variable. For each positive integer $n$, the nth moment of $X$, denoted by $\mu_n$, is given by

$$\mu_n = \mathbb{E}(X^n)$$

since $\mathbb{E}(X^n)$ exist. Furthermore, we define the nth central moment to be $\mathbb{E}[(X - \mathbb{E}(X))^n]$, if it exists.

In particular, if $X$ is a discrete random variable with a probability function $p(x)$, we have to

$$\mu_n = \sum x^np(x)$$

and, if $X$ is a continuous random variable with a probability density function $f(x)$, we have to

$$\mu_n = \int_{-\infty}^\infty x^nf(x)dx.$$

Example 3.2.1

Be $X$ a random variable with mean $\mu$ and variance $\sigma^2$. In this case, the following relationships are valid for the first two population moments:

$$\mathbb{E}(X) = \mu, \quad \mathbb{E}(X^2) = \sigma^2 + \mu^2$$

The first equality is immediate and the second follows from the fact that $\hbox{Var}(X) = \mathbb{E}(X^2) - \mathbb{E}(X)^2$, from which it follows that $\mathbb{E}(X^2) = \hbox{Var}(X) + \mathbb{E}(X)^2 = \sigma^2 + \mu^2$.

Definition 3.2.2

Be $X_1, X_2, \ldots, X_k$ a sample size $k$ of the population $X$. We define, the nth sampling moment, denoted by $m_n$, by

$$m_n = \frac{1}{k}\sum_{i=1}^kX_i^n, \quad n = 1, 2, \ldots$$

In particular, we have to $m_1 = \bar{X}$ and $m_2 = \sum_{i=1}^kX_i^2/k$.

Definition 3.2.3

We say that $\hat{\theta}_1,\ldots, \hat{\theta}_r$ are estimators obtained by method of moments if they are solutions of the equations

$$m_n=\mu_n, \quad n = 1,2,\ldots,r.$$

The most appropriate procedure for finding moment estimators is to replace the theoretical moments with the respective sample moments.

Example 3.2.2

Be $X$ a random variable with mean $\mu$ and variance $\sigma^2$. We have already seen in Example 3.2.1 that $\mu = \mathbb{E}(X)$ and $\sigma^2 = \mathbb{E}(X^2) - \mathbb{E}(X)^2$. Furthermore, the first two sampling moments are given, respectively, by

$$m_1 = \frac{1}{k}\sum_{i=1}^kX_i = \overline{X}, \quad m_2 = \frac{1}{k}\sum_{i=1}^kX_i^2.$$

In this case, the estimators for the population mean $\mu$ and population variance $\sigma^2$ obtained by the method of moments will be

$$\hat{\mu}_M = m_1 = \overline{X},$$

$$\hat{\sigma}^2_M = m_2 - m_1^2 = \frac{1}{k}\sum_{i=1}^kX_i^2 - \overline{X}^2 = \hat{\sigma}^2.$$

Example 3.2.3

Depending on the situation, we may have more than one moment estimator. Suppose, for example, that $X$ be a random variable with Poisson distribution with parameter $\lambda > 0$. We have already seen in Section 6.5.2 of Probabilities that $\mathbb{E}(X) = \hbox{Var}(X) = \lambda$ and then, using Example 3.2.2, we have that the parameter $\lambda$ can be estimated either by $\overline{X}$ how for $\sum_{i=i}^k\frac{(X_i - \overline{X})^2}{k}$, that is, $\hat{\lambda}_M=\overline{X}$ or $\hat{\lambda}_M=\hat{\sigma}^2$, which can result in very different values.

Example 3.2.4

Be $X_1, X_2,\ldots, X_m$ an equally distributed independent random sample with binomial distribution of parameters $n$ and $p$, that is,

$$\mathbb{P}(X_i = x | n,p) = \binom{n}{x}p^x(1-p)^{n-x}, \quad x = 0,1,\ldots,n.$$

Assuming that the parameters $n$ and $p$ are unknown, we will find estimators for both parameters using the method of moments. Starting from Example 3.2.1 and using the fact that $X_i$ has average $np$ and variance $np(1-p)$, we have that the first two population moments are given, respectively, by

$$\mu_1 = \mathbb{E}(X) = np \quad \hbox{e} \quad \mu_2 = \mathbb{E}(X^2) = np(1-p) + n^2p^2$$

Equating the first two sample moments $m_1$ and $m_2$ At the first two population moments, we have the following system of equations

$$\begin{cases}\overline{X} = np \cr \frac{1}{m}\sum_{i=1}^mX_i^2 = np(1-p) + n^2p^2\end{cases}$$

Solving in $n$ and $p$, we obtain the following estimators using the method of moments

$$\hat{n} = \frac{\overline{X}^2}{\overline{X}-(1/m)\sum_{i=1}^m(X_i-\overline{X})^2} \quad \hbox{e} \quad \hat{p} = \frac{\overline{X}}{\hat{n}}.$$

This is a typical example in which the estimators are not the best for the population parameters of interest. In fact, using these estimators, we can have negative estimates for $n$ and $p$, which cannot happen, since these must be positive numbers.

6.3.3 Least Squares Estimators

The least squares estimation method consists of minimizing the square of the differences between the observed values ​​of a sample and their respective expected values. We will consider the procedure using a simple example.

Example 3.3.1

Suppose we are interested in studying resistance $Y$ of a steel cable depending on its diameter $X$. From a collected sample, we realized that the variables are approximately proportional, that is, $Y\approx\theta X$ in which $\theta$ is the proportionality coefficient. Our objective is to estimate the parameter $\theta$, based on measurements available in a sample of 10 units shown in the following table:

X 0,50 0,60 0,75 0,80 0,90 1,05 1,20 1,30 1,50 1,65
Y 2,07 2,24 3,28 3,35 3,81 4,14 4,64 5,13 6,05 6,57

Table 6.3.1: Sample of 10 cable resistance units

From this information, we can conclude that, apparently, $\hat{\theta} = 4$ seems to be a reasonable estimate for the parameter $\theta$. How can we check the quality of this estimate? One way to do this is to check the differences between the observed values $Y$ and the expected values using the estimate, i.e. $4X$. In the following table, we have the sample values, the expected values, the difference $Y-4X$ and the squared differences $(Y-4X)^2$.

$X$ $Y$ $Y - 4X$ $(Y - 4X)^2$
0,50 2,07 0,07 0,0049
0,60 2,24 -0,16 0,0256
0,75 3,28 0,28 0,0784
0,80 3,35 0,15 0,0225
0,90 3,81 0,21 0,0441
1,05 4,14 -0,06 0,0036
1,20 4,64 -0,16 0,0256
1,30 5,13 -0,07 0,0049
1,50 6,05 0,05 0,0025
1,65 6,57 -0,03 0,0009
Total 0,28 0,213

Table 6.3.2: Sample, expected values, deviations and squared deviations

The main idea of the method is based on minimizing the total squared error of the sample. For the estimate $\hat{\theta} = 4$, this error is given by $0,213$, however, it may be that there is another estimate with a total squared error smaller than $0,213$. In this way, the objective is to minimize the function

$$S(\theta) = \sum_{i=1}^{10}(Y_i-\theta X_i)^2.$$

The minimum of the function is obtained by differentiating the function with respect to $\theta$ and equating the result to zero, that is, finding $\hat{\theta}$ for which

$$\frac{dS(\theta)}{d\theta} = \sum_{i=1}^{10}(Y_i-\hat{\theta}X_i)(-2X_i) = 0.$$

And, solving this equation, we obtain the estimator $\hat{\theta}_{MQ}:$

$$\hat{\theta_{MQ}} = \frac{\sum_{i=1}^{10} X_iY_i}{\sum_{i=1}^{10} X_i^2}$$

Using data from $X$ and $Y$, we found $\hat{\theta}_{MQ} = 4,011625$, that is, the estimate that minimizes the total squared error of the sample is given by $\hat{\theta} = 4,011625$. In fact, using this value, we have that the total squared error is $0,2114015$.

In this case, we are assuming that, for a given value of the variable $X$, the values of the variable $Y$ follow a probability distribution $f_Y(y)$ centered on $\theta X$, which is equivalent to saying that, for each $X$, the deviation $\epsilon = Y - \theta X$ follows a zero-centered distribution and, therefore, it is common to write $$Y = \theta X + \epsilon$$

with $\epsilon$ following the distribution $f_\epsilon(\cdot)$ with zero mean. Therefore, it is reasonable to choose $\theta$ which minimizes the sum of the squares of the errors

$$\sum_{i=1}^{10}\epsilon^2 = \sum_{i=1}^{10}(Y_i-\theta X_i)^2.$$

We note that the model can be generalized. That is, we can consider more general functions of the parameters $\theta$, that is,

$$Y = g(X,\theta) + \epsilon$$

and, in the same way as above, we must find the value of $\theta$ that minimizes the function $$S(\theta) = \sum_{i = 1}^n\epsilon_i^2 = \sum_{i=1}^n(Y_i-g(X_i,\theta))^2,$$

for a sample $(X_1,Y_1), \ldots, (X_n,Y_n)$ of variables $X$ and $Y$. The solution $\hat{\theta}_{MQ}$ is called the least squares estimator (EMQ) of $\theta$.

6.3.4 Maximum Likelihood Estimators

The maximum likelihood principle is one of the procedures used to obtain estimators. It addresses the estimation problem based on the results obtained by the sample and we must determine which distribution, among all those defined by the possible values ​​of its parameters, is most likely to have generated such a sample. Let us consider a population and a random variable $X$, related to this population, with a probability function (if $X$ is a discrete random variable) or probability density function (if $X$ is a continuous random variable) $f(x,\theta)$, being $\theta$ the unknown parameter.

Be $\mathcal{P}= \lbrace \mathbb{P}_\theta:\theta \in \Theta \rbrace _{n \geq 1}$ model sequence, with parameter space $\Theta\in\mathbb{R}^p$ In this way, we took a simple random sample of $X$, size $n, \ X_1,\ldots,X_n$, and be $x_1,\ldots,x_n$ the values actually observed.

The likelihood function $L$ is defined by

$$L(\theta;x_1,\ldots,x_n)=f(x_1;\theta)\times\ldots\times f(x_n;\theta)=\prod_{i=1}^n f(x_i;\theta).$$

Se $X$ is a discrete random variable with a distribution function $p(x,θ)$, the likelihood function is given by

$$L(\theta;x_1,\ldots,x_n)=p(x_1;\theta)\times\ldots\times p(x_n;\theta)=\prod_{i=1}^n p(x_i;\theta).$$

which should be interpreted as a function of $\theta$. With this, we say that $\widehat{\theta}$ is a maximum likelihood (EMV) estimator for $\theta=\theta_0$, if $f(\mathbf{x};\widehat{\theta})\in\mathcal{P}$ and for some $f(\mathbf{x};\theta_0)\in\mathcal{P}$ we get

$$\prod^n_{i=1}f(\mathbf{x};\widehat{\theta})\geq \prod^n_{i=1}f(\mathbf{x};\theta_0)$$

as long as any parameterization is identifiable. In other words:

$$L(\widehat{\theta};\mathbf{x})=\sup_{\theta_0\in\Theta}L(\theta_0;\mathbf{x})$$

In many cases, the maximum likelihood estimator can be found by following the steps below:

  • Finding the likelihood function $L(\theta;\textbf{x})$;

  • Apply the function $\ln$;

  • Derive with respect to parameter $\theta$;

  • Set the result equal to zero.

  • Check that this estimator is the maximum point.

Next we apply the concepts to some known probability distributions.

Example 3.4.1

Be $X$ a random variable with Bernoulli distribution $(p)$. Let’s take a random sample $X_1,\ldots,X_n$ of $X$. What is the maximum likelihood estimator for $p$?

How $X \sim \ \text{Bernoulli}(p)$, the probability function of $X$ is

$$f_p(x)=p^x(1-p)^{1-x}.$$

Thus, the likelihood function is given by

$$L(p;x_1,\ldots,x_n)=\prod_{i=1}^np^{x_i}(1-p)^{1-x_i}=p^{\sum_{i=1}^nx_i}(1-p)^{\sum_{i=1}^n(1-x_i)}.$$

To find the maximum likelihood estimator for $p$, we must find the value of $p$ for which the likelihood function $L(p;x_1,\ldots,x_n)$ is maximum. Applying the natural logarithm function $(\ln)$ in the likelihood function $L(p;x_1,\ldots,x_n)$, we have to

$$\ln L(p,x_1,\ldots,x_n)=\sum_{i=1}^nx_i\ln(p)+\sum_{i=1}^n(1-x_i)\ln(1-p)$$

and, deriving with respect to $p$, it follows that

$$\frac{d\ln L(p;x_1,\ldots,x_n)}{dp}=\frac{(1-p)\displaystyle\sum_{i=1}^nx_i-p\sum_{i=1}^n(1-x_i)}{p(1-p)}.$$

Equating the result to zero, we obtain that

$$\frac{(1-\hat{p})\displaystyle \sum_{i=1}^nx_i-\hat{p}(\displaystyle\sum_{i=1}^n(1-x_i))}{\hat{p}(1-\hat{p})}=0\Leftrightarrow \hat{p}=\frac{1}{n}\sum_{i=1}^nx_i=\overline{x}.$$

It is easy to check using the second derivative test that $\hat{p}=\overline{X}$ is actually a maximum likelihood estimator for $p$.

Example 3.4.2

Be $X$ a random variable with Poisson distribution and parameter $\lambda$. Let’s take a random sample $X_1,\ldots,X_n$ independent and equally distributed $X$. What is the maximum likelihood estimator for $\lambda$?

How $\sim \ \text{Poisson}(\lambda)$, the probability function of $X$ is

$$f_{\lambda}(x)=\frac{\lambda^xe^{-\lambda}}{x!}, \quad k\in\mathbb{N}.$$

Thus, the likelihood function is given by

$$L(\lambda;x_1,\ldots,x_n)=\prod_{i=1}^n\frac{\lambda^{x_i}e^{-\lambda}}{x_i!}$$

That is,

$$L(\lambda;x_1,\ldots,x_n)=\frac{1}{\prod_{i=1}^nx_i!}\lambda^{\sum_{i=1}^nx_i}e^{-n\lambda}.$$

To find the maximum likelihood estimator for $\lambda$, we must find the value of $\lambda$ for which the likelihood function $L(\lambda;x_1,\ldots,x_n)$ is maximum.

We apply the natural logarithm function $(\ln)$ in the likelihood function $L(\lambda;x_1,\ldots,x_n)$. In this way, we have to

$$\ln L(\lambda;x_1,\ldots,x_n)=\ln\left(\frac{1}{\prod_{i=1}^nx_1!}\right)+\sum_{i=1}^nx_i\ln\lambda-n\lambda$$

and, deriving with respect to $\lambda$, it follows that

$$\frac{d\ln L(\lambda;x_1,\ldots,x_n)}{d\lambda}=\frac{1}{\lambda}\sum_{i=1}^nx_i-n.$$

Equating the result to zero, it follows that

$$\frac{1}{\hat{\lambda}}\sum_{i=1}^nx_i-n=0\Leftrightarrow\hat{\lambda}=\frac{\sum_{i=1}^nx_i}{n}=\overline{x}.$$

In this case, the possible maximum likelihood estimator for the parameter $\lambda$ is $\hat{\lambda}=\overline{X}$. Just check if this point is really a maximum point. To do this, we will calculate the second derivative of $\ln L(\lambda;x_1,\ldots,x_n)$.

$$\frac{d^2\ln L(\lambda;x_1,\ldots,x_n)}{d\lambda^2}=-\frac{1}{\lambda^2}\sum_{i=1}^nx_i \ < \ 0.$$

Therefore, we conclude that $\hat{\lambda}=\overline{X}$ is a maximum likelihood estimator for the parameter $\lambda$.

Example 3.4.3

Be $X$ a random variable with Normal distribution with mean $\mu$ and variance $\sigma^2$. Let us take an independent and equally distributed random sample $X_1,\ldots,X_n$ of $X$. What is the maximum likelihood estimator for $\theta = (\mu,\sigma^2)$?

How $X \sim N(\mu,\sigma^2)$, the density function of $X$ is

$$f_{\mu,\sigma^2}(x)=\frac{1}{\sqrt{2\pi\sigma^2}}\exp\left[-\frac{1}{2}\left(\frac{x-\mu}{\sigma}\right)^2\right], \quad -\infty \ < \ x \ < \ \infty.$$

Thus, the likelihood function is given by

$$L(\mu,\sigma^2;x_1,\ldots,x_n)=\prod_{i=1}^n \frac{1}{\sqrt{2\pi\sigma^2}}\exp\left[-\frac{1}{2}\left(\frac{x_i-\mu}{\sigma}\right)^2\right]$$

That is,

$$L(\mu,\sigma^2;x_1,\ldots,x_n)=(2\pi)^{-n/2}(\sigma^2)^{-n/2}\exp\left[-\frac{1}{2}\sum_{i=1}^n\left(\frac{x_i-\mu}{\sigma}\right)^2\right].$$

To find the maximum likelihood estimator for $\theta = (\mu,\sigma^2)$ we must find the values of $\mu$ and $\sigma^2$ for which the likelihood function, $L(\mu,\sigma^2; x_1,\ldots,x_n)$, is maximum.

To do this, we will first apply the function $\ln$,

$$\ln L(\mu,\sigma^2;x_1,\ldots,x_n)=-\frac{n}{2}\ln(2\pi)-\frac{n}{2}\ln(\sigma^2)-\frac{1}{2}\sum_{i=1}^n \frac{(x_i-\mu)^2}{\sigma^2}.$$

Now let us derive with respect to $\mu$:

$$\frac{\partial L(\mu,\sigma^2;x_1,\ldots,x_n)}{\partial\mu}=-\frac{2}{2\sigma^2}\sum_{i=1}^n(x_i-\mu)(-1)=\sum_{i=1}^n\left(\frac{x_i-\mu}{\sigma^2}\right).$$

Equating the result to zero we obtain:

$$\sum_{i=1}^{n}\left(\frac{x_{i}-\hat{\mu}}{\sigma^{2}}\right)=0\Leftrightarrow\frac{1}{\sigma^{2}}\sum_{i=1}^{n}(x_{i}-\hat{\mu})=0\Leftrightarrow\sum_{i=1}^{n}(x_{i}-\hat{\mu})=0\Leftrightarrow n\hat{\mu}=\sum_{i=1}^{n}x_{i}\Leftrightarrow\hat{\mu}=\bar{x}.$$

And then, the possible maximum likelihood estimator of the population mean $\mu$ is $\overline{X}$. Just evaluate now if you really $\overline{x}$ is the maximum point. For this,

$$\frac{\partial^2 L(\mu,\sigma^2;x_1,\ldots,x_n)}{\partial\mu^2}=\frac{\partial^2}{\partial\mu^2}\left[\frac{1}{\sigma^2}\sum_{i=1}^n(x_i-\mu)\right]=-\frac{n}{\sigma^2}\ < \ 0.$$

Thus, we conclude that $\overline{x}$ is actually a maximum point and therefore the maximum likelihood estimator for $\mu$ is $\hat{\mu}=\overline{X}$. Let us now find the maximum likelihood estimator for the variance $\sigma^2$. To do this, we derive the function with respect to $\sigma^2$:

$$\frac{\partial\ln L(\mu,\sigma^2;x_1,\ldots,x_n)}{\partial\sigma^2}=-\frac{n}{2\sigma^2}+\frac{1}{2}\sum_{i=1}^n\left(\frac{x_i-\mu}{\sigma^2}\right)^2.$$

Equating to zero, we have

$$-\frac{n}{2\sigma^2}+\frac{1}{2}\sum_{i=1}^n\left(\frac{x_i-\mu}{\sigma^2}\right)^2=0\Leftrightarrow -n+\sum_{i=1}^n\frac{(x_i-\mu)^2}{\sigma^2}=0\Leftrightarrow\hat{\sigma}^2=\frac{(n-1)}{n}s^2.$$

How

$$\frac{\partial^2 L(\mu,\sigma^2;x_1,\ldots,x_n)}{\partial(\sigma^2)^2}=\frac{1}{(\sigma^2)^2}\left(\frac{n}{2}-\frac{(n-1)s^2}{\sigma^2}\right)$$

which, valued at $\hat{\sigma}^2=\frac{(n-1)s^2}{n}$ is such that

$$\frac{\partial^2 L(\mu,\hat{\sigma}^2;x_1,\ldots,x_n)}{\partial(\sigma^2)^2}=-\frac{n}{2}\frac{1}{(\hat{\sigma}^2)^2} \ < \ 0.$$

Therefore, the maximum likelihood estimator for $\sigma^2$ is $\displaystyle\hat{\sigma}^2=\frac{(n-1)}{n}s^2$, where $\displaystyle s^2=\frac{\sum_{i=1}^n(x_i-\mu)^2}{n-1}$.

The following example shows us that the above strategy cannot always be applied.

Example 3.4.4

Be $X$ a random variable uniformly distributed in $[0,\theta]$ and $X_1, \ldots, X_n$ an i.i.d random sample of $X$. This distribution has a probability density function given by

$$f(x|\theta) = \begin{cases}\frac{1}{\theta}, \ \hbox{se} \ 0\leq x\leq\theta, \cr 0, \ \hbox{caso contrário}\end{cases}$$

The likelihood function is given by

$$L(\theta;X_1,\ldots,X_n) = \prod_{i=1}^nf(X_i|\theta)=\frac{1}{\theta^n}\mathbb{I}_{ \lbrace X_1,\ldots,X_n\in[0,\theta] \rbrace } = \frac{1}{\theta^n}\mathbb{I}_{\max \lbrace X_1,\ldots,X_n \rbrace \leq\theta}.$$

and, how $\frac{1}{\theta^n}$ is a decreasing function of $\theta$, the estimate will be the lowest possible value of $\theta$ for which $\theta\geq X_i$ for $i= 1, \ldots, n$. This value is $\theta = \max \lbrace X_1,\ldots,X_n \rbrace $, whence it follows that the maximum likelihood estimator of $\theta$ is $\hat{\theta}=\max \lbrace X_1,\ldots,X_n \rbrace $.

Example 3.4.5:

Be $(X_i)_{1\leq i\leq n}$ random variables with exponential distribution and parameter $\theta=\lambda$ and $f(x) = \lambda \exp(-\lambda x),$ the probability density for $x\geq 0$ and 0 otherwise. In this case, we will look for the candidate $\theta$ which maximizes the function $L(\theta).$ The likelihood function for the Exponential distribution is obtained as follows:

$$L(\lambda)=\prod_{i=1}^{n}f(x_i;\theta)=\prod_{i=1}^{n}\lambda \exp(-\lambda x_{i})=\lambda^{n} \exp\left(-\lambda \sum_{i=1}^{n} x_{i}\right).$$

Therefore, the logarithm of the likelihood function is given by

$$\log L(\lambda)=n \log (\lambda) - \lambda \displaystyle\sum_{i=1}^{n}x_{i}$$

Deriving this expression with respect to $\lambda$, we get

$$\dfrac{\partial \log L(\lambda)}{\partial \lambda}=\dfrac{n}{\lambda}-\sum_{i=1}^{n}x_{i},$$

and equating to zero, we have that the expression of the maximum likelihood estimator $\widehat{\lambda}$ is given by

$$\widehat{\lambda}=\dfrac{n}{\displaystyle\sum_{i=1}^{n}x_i}=\frac{1}{\overline{x}}.$$

As the exponential distribution is a particular case of the next probability distribution, the observed information matrix will be given in the next topic.

6.3.4.1 Numerical methods of maximum likelihood estimators

The maximum likelihood method addresses the estimation problem based on the results obtained by the sample and we must determine which distribution, among all those defined by the possible values of its parameters, is most likely to have generated such a sample. In this section, we focus on estimators for continuous and uncensored random variables. So be $(\Omega,\mathcal{F},\mathbb{P})$ probability space, let us consider a population and a random variable $X$, related to this population, with a probability density function (if $X$ is a continuous random variable) $f(x,\theta)$, being $\theta$ the unknown parameter. It is $\mathcal{P}= \lbrace \mathbb{P}_\theta:\theta \in\Theta \rbrace _{n\geq 1}$ model sequence, with parameter space $\Theta\in\mathbb{R}^p.$ In this way, we took a simple random sample of $X$, size $n$, $X_1,\ldots,X_n$, and be $x_1,\ldots,x_n$ the values actually observed.

The likelihood function $L$ is defined by $$L(\theta;\mathbf{x})=f(x_1;\theta)\times\ldots\times f(x_n;\theta)=\prod_{i=1}^n f(x_i;\theta)\quad,\text{com}~\mathbf{x}=(x_1\dots x_n)^\top.$$

With this, we say that $\widehat{\theta}$ is a maximum likelihood (EMV) estimator for $\theta=\theta_0$, if $f(\mathbf{x};\widehat{\theta})\in\mathcal{P}$ and for some $f(\mathbf{x};\theta_0)\in\mathcal{P}$ we get

$$\prod^n_{i=1}f(\mathbf{x};\widehat{\theta})\geq \prod^n_{i=1}f(\mathbf{x};\theta_0)$$

as long as any parameterization is identifiable. In other words:

$$L(\widehat{\theta};\mathbf{x})=\sup_{\theta_0\in\Theta}L(\theta_0;\mathbf{x})$$

Next, we define the score function as:

$$U(\theta)=\dfrac{\partial \log L(\theta)}{\partial \theta}$$

whose properties are $\mathbb{E}(U)=0$ and $\text{Cov}(U)=\mathbb{E}\left(-\frac{\partial U^\top}{\partial \theta}\right)=\mathbb{E}\left(-\frac{\partial^2 \log L(\theta)}{\partial \theta \partial \theta^\top}\right)=J.$ The observed information matrix is given by:

$$\mathcal{I}=-\frac{\partial U^\top}{\partial \theta}=-\frac{\partial^2 \log L(\theta) }{\partial \theta \partial \theta^\top}$$

The next step is to expand in Taylor series around $\widehat{\theta}.$ For this, we take $\widehat{U}=0$ and we get:

$$\log L(\widehat{\theta})-\log L(\theta)=\frac{1}{2!}(\theta-\widehat{\theta})^\top \widehat{\mathcal{I}}(\theta-\widehat{\theta})$$

Expansion for the score function is given by:

$$\widehat{U}-U=\frac{\partial U^\top}{\partial \theta}(\theta-\widehat{\theta})$$

Equalizing $\widehat{U}=0$ we obtain the approximate relationship:

$$\mathcal{I}^{-1}U=\theta-\widehat{\theta}$$

To show the use of this result, we take a particular case, which is the case in which there is a probability density, otherwise we would have to define a Radon-Nikodym derivative and that is not the objective of this section. Therefore, under conditions of regularity, that is, considering functions $g:\Theta\rightarrow \mathbb{R}^p$ smooth or classy $C^\infty(\Theta,\mathbb{R}^p).$

In this way, given that $\theta$ is the true parameter, the first moment of the score is zero. In fact,

$$\mathbb{E} \left[\left.{\frac {\partial }{\partial \theta }}\log f(X;\theta )\right|\theta \right] =\int {\frac {{\frac {\partial }{\partial \theta }}f(x;\theta )}{f(x;\theta )}}f(x;\theta ),dx ={\frac {\partial }{\partial \theta }}\int f(x;\theta ),dx ={\frac {\partial }{\partial \theta }}1=0.$$

Consequently, we applied the Newton-Raphson method to calculate the maximum likelihood estimator. For this, we use the iterative equation:

$$\theta^{(j+1)}=\theta^{(j)}+(\mathcal{I}^{(j)})^{-1}U^{(j)}$$

When we replace the observed information with the expected one, we obtain:

$$J^{-1}U=\theta-\widehat{\theta}$$

With this, we obtain the Fisher score method given by:

$$\theta^{(j+1)}=\theta^{(j)}+(J^{(j)})^{-1}U^{(j)}$$

The maximum likelihood estimator is obtained when $|\widehat{\theta}^{(j+1)}-\widehat{\theta}^{(j)}|< \varepsilon,$ in which $\varepsilon$ is the error in estimation, that is, when the difference between iterations is less than an error $\varepsilon.$ To define convergence rate, we assume a metric $d$ and set a $n$. In this way, we say that the convergence rate of $\theta_n$ for $\theta$ is $O(\varepsilon_n)$ if $d(\theta_n,\theta)=O_{\mathbb{P}}(\varepsilon_n).$

Note: If the Observed Information matrix is approximately singular at some point in the iteration process, it may result in the method not converging.

Next we apply the concepts to some known probability distributions.

Normal Distribution

The EMV for normal distribution were treated in the maximum likelihood (EMV) estimator chapter. The adhesion test for normal distribution was covered in the normality test chapter.

The observed information matrix is given by:

$$\mathcal{I}(\mu,\sigma^2)=-\dfrac{\partial[U(\theta)]^\top}{\partial\theta}=-\dfrac{\partial \log L(\mu,\sigma^2)}{\partial\theta\partial \theta^\top}$$

$$=-\begin{bmatrix}\dfrac{\partial^2}{\partial\mu^2}\log L(\mu,\sigma^2) \quad \dfrac{\partial^2}{\partial\mu\partial\sigma^2}\log L(\mu,\sigma^2) \cr \dfrac{\partial^2}{\partial\sigma^2\partial\mu}\log L(\mu,\sigma^2) \quad \dfrac{\partial^2}{\partial(\sigma^2)^2}\log L(\mu,\sigma^2)\end{bmatrix}=$$

$$=-\begin{bmatrix}G_{11}(\mu,\sigma^2) \quad G_{12}(\mu,\sigma^2) \cr G_{21}(\mu,\sigma^2) \quad G_{22}(\mu,\sigma^2)\end{bmatrix}$$

in which

$$G_{11}(\mu,\sigma^2)=\dfrac{\partial^2\log L(\mu,\sigma^2)}{\partial\mu^2}=-\frac{n}{\sigma^2}$$

$$ G_{22}(\mu,\sigma^2)= \dfrac{\partial^2\log L(\mu,\sigma^2)}{\partial (\sigma^2)^2} =\frac{1}{(\sigma^2)^2}\left(\frac{n}{2}-\frac{(n-1)s^2}{\sigma^2}\right)=\frac{n}{2(\sigma^2)^2}-\frac{1}{(\sigma^2)^3}\sum^n_{i=1}\left(x_i-\mu\right)^2 $$

$$ G_{12}(\mu,\sigma^2)=G_{21}(\mu,\sigma^2)=-\frac{1}{(\sigma^2)^2}\sum^n_{i=1}\left(x_i-\mu\right) $$

And the expected information matrix is given by:

$$\mathbb{E}[~\mathcal{I}(\mu,\sigma^2)~]=\begin{bmatrix}\mathbb{E}[~\dfrac{n}{\sigma^2}~]\qquad\qquad\qquad\mathbb{E}[~\dfrac{1}{(\sigma^2)^2}\sum^n_{i=1}\left(x_i-\mu\right)~]\cr \mathbb{E}[~\dfrac{1}{(\sigma^2)^2}\sum^n_{i=1}\left(x_i-\mu\right)~]\qquad\mathbb{E}[~\dfrac{n}{2(\sigma^2)^2}-\dfrac{1}{(\sigma^2)^3}\sum^n_{i=1}\left(x_i-\mu\right)^2]\end{bmatrix}=\begin{bmatrix}\dfrac{n}{2\sigma^2}\qquad\qquad0~\cr \quad 0\qquad\qquad\dfrac{n}{2\sigma^4}\end{bmatrix}$$

Exponential Distribution

Be $(X_i)_{1\leq i\leq n}$ random variables with exponential distribution and parameter $\theta=\lambda$ and $f(x) = \lambda \exp(-\lambda x),$ the probability density for $x\geq 0$ and 0 otherwise. In this case, we will look for the candidate $\theta$ which maximizes the function $L(\theta).$ The likelihood function for the Exponential distribution is obtained as follows:

$$L(\lambda)=\prod_{i=1}^{n}f(x_i;\theta)=\prod_{i=1}^{n}\lambda \exp(-\lambda x_{i})=\lambda^{n} \exp\left(-\lambda \sum_{i=1}^{n} x_{i}\right).$$

Therefore, the logarithm of the likelihood function is given by

$$\log L(\lambda)=n \log (\lambda) - \lambda \displaystyle\sum_{i=1}^{n}x_{i}$$

Deriving this expression with respect to $\lambda$, we get

$$\dfrac{\partial \log L(\lambda)}{\partial \lambda}=\dfrac{n}{\lambda}-\sum_{i=1}^{n}x_{i},$$

and equating to zero, we have that the expression of the maximum likelihood estimator $\widehat{\lambda}$ is given by

$$\widehat{\lambda}=\dfrac{n}{\displaystyle\sum_{i=1}^{n}x_i}=\frac{1}{\overline{x}}.$$

And so, the information observed is:

$$\mathcal{I}(\lambda)= -\dfrac{\partial^2 \log L(\lambda)}{\partial \lambda^2}=\dfrac{n}{\lambda^2}$$

Weibull Distribution

Be $(X_i)_{1\leq i\leq n}$ random variables with Weibull distribution and parameters $\theta=(\alpha,\delta)$ and

$$f(x)=\begin{cases}\dfrac{\delta}{\alpha^{\delta}}x^{\delta-1}\exp\left[-\left(\dfrac{x}{\alpha}\right)^{\delta}\right], \ \hbox{se} \ x\geq0\cr 0 \ \hbox{se} \ x \ < \ 0\end{cases}$$

the probability density. The likelihood function of $\alpha$ and $\delta$ for the Weibull distribution is given by

$$L(\alpha,\delta)=\left\lbrace \prod_{i=1}^{n}f(x_i;\theta)\right\rbrace=\left \lbrace \prod_{i=1}^{n} \dfrac{\delta}{\alpha^{\delta}} x_i^{\delta - 1} \exp \left[-\left(\dfrac{x_i}{\alpha}\right)^{\delta}\right]\right \rbrace =\dfrac{\delta^n}{\alpha^{n\delta}}\left(\prod_{i=1}^{n}x_i\right)^{\delta-1}\exp\left\lbrace-\dfrac{1}{\alpha^{\delta}} \sum_{i=1}^{n} x_i^{\delta}\right\rbrace.$$

Therefore, the log-likelihood function is given by

$$\log L(\alpha,\delta)= n\log(\delta) - n\delta \log (\alpha) + (\delta-1)\sum_{i=1}^{n} \log(x_i) - \dfrac{1}{\alpha^{\delta}}\sum_{i=1}^{n} x_i^{\delta}$$

Deriving this expression with respect to $\alpha$ and $\delta$ and equating it to zero, we obtain the following expressions for the maximum likelihood estimators $\widehat{\alpha}$ and $\widehat{\delta}$

$$\dfrac{\displaystyle\sum_{i=1}^{n}x_i^{\widehat{\delta}}\log(x_i)}{\displaystyle\sum_{i=1}^{n}x_i^{\widehat{\delta}}}- \dfrac{1}{\widehat{\delta}}-\dfrac{1}{n}\displaystyle\sum_{i=1}^{n}\log(x_i)=0, \tag{7.1.1.1}$$

$$\widehat{\alpha}=\left(\dfrac{1}{n}\sum_{i=1}^{n}x_i^{\widehat{\delta}}\right)^{1/\widehat{\delta}}. \tag{7.1.1.2}$$

The maximum likelihood estimators are the values $\widehat{\alpha}$ and $\widehat{\delta}$ that satisfy equations (7.1.1.1) and (7.1.1.2). The solution to this system of equations for a particular data set must be obtained using a numerical method. Next, we apply the Newton-Raphson method that uses the matrix of second derivatives ($F$) of the log-likelihood function and its expression is given by

$$\widehat{\theta}^{(k+1)}=\widehat{\theta}^{(k)}-F^{-1} (\widehat{\theta}^{(k)})U(\widehat{\theta}^{(k)}), \tag{7.1.1.3}$$

in which

$$U(\theta)=\dfrac{\partial \log L(\theta)}{\partial \theta}.$$

The expression (7.1.1.3) is based on the expansion of $U(\widehat{\theta}^{(k)})$ in Taylor series around $\widehat{\theta}^{(k)}$. Starting from an initial value $\widehat{\theta}^{(0)}=0$ the method updates this value at each step, converging on the desired solution. In general, we obtain convergence in a few steps with a relative error, on average, less than 0.001 between two consecutive steps. Note that the matrix of derivatives G for the Exponential model reduces to a single number, given by

$$G(\alpha)=\dfrac{\partial^2 \log L(\alpha)}{\partial \alpha^2}=\dfrac{n}{\alpha^2}-2\dfrac{\displaystyle\sum_{i=1}^{n}x_i}{\alpha^3}=\dfrac{n}{\alpha^2}\left(1-2\dfrac{\overline{x}}{\alpha}\right).$$

As for the Weibull model $G(\alpha, \delta)$ is a 2x2 symmetric matrix with the following elements

$$G_{11}(\alpha,\delta)=\dfrac{\partial^2 \log L(\alpha,\delta)}{\partial \alpha^2}$$

$$G_{22}(\alpha,\delta)=\dfrac{\partial^2 \log L(\alpha,\delta)}{\partial \delta^2}$$

$$G_{12}(\alpha,\delta)=G_{21}(\alpha,\delta)=\dfrac{\partial^2 \log L(\alpha,\delta)}{\partial \alpha \partial \delta}$$

Next, we construct the observed information matrix. For Weibull distribution we describe the score function:

$$U(\theta)=\dfrac{\partial \log L(\theta)}{\partial \theta}=\left(\dfrac{\partial \log L(\alpha,\delta)}{\partial \alpha}, \dfrac{\partial L(\alpha,\delta)}{\partial \delta}\right)^\top$$

in which

$$\dfrac{\partial \log L(\alpha,\delta)}{\partial \alpha}=-\dfrac{\delta}{\alpha}\left(n+\frac{1}{\alpha^\delta}\sum^n_{i=1}x^\delta_i\right)$$

$$\dfrac{\partial L(\alpha,\delta)}{\partial \delta}=\frac{n}{\delta}-n\log \alpha + \sum^n_{i=1}\log x_i - \sum^n_{i=1} \left(\dfrac{x_i}{\alpha}\right) ^\delta \log \left(\dfrac{x_i}{\alpha}\right)$$

The observed information matrix is given by:

$$\mathcal{I}(\alpha,\delta)=-\frac{\partial [U(\theta)]^\top}{\partial \theta}=-\frac{\partial \log L(\alpha,\delta)}{\partial \theta\partial \theta^\top}=$$ $$=-\begin{bmatrix}\dfrac{\partial^2 }{\partial \alpha^2}\log L(\alpha,\delta) \quad \dfrac{\partial^2 }{\partial \alpha\partial \delta}\log L(\alpha,\delta) \cr \cr \dfrac{\partial^2 }{\partial \delta\partial \alpha}\log L(\alpha,\delta) \quad \dfrac{\partial^2 }{\partial \delta^2}\log L(\alpha,\delta)\end{bmatrix}=-\begin{bmatrix}G_{11}(\alpha,\delta) \quad G_{12}(\alpha,\delta) \cr G_{21}(\alpha,\delta) \quad G_{22}(\alpha,\delta)\end{bmatrix}$$

in which

$$G_{11}(\alpha,\delta)=\dfrac{\partial^2 \log L(\alpha,\delta)}{\partial \alpha^2}=\frac{n\delta}{\alpha^2} - \dfrac{\delta\left(\delta+1\right)}{\alpha^{\delta + 2}} \sum^n_{i=1} x_i^\delta$$

$$G_{22}(\alpha,\delta)=\dfrac{\partial^2 \log L(\alpha,\delta)}{\partial \delta^2}=-\frac{n}{\delta^2} - \sum^n_{i=1}\left(\log \dfrac{x_i}{\alpha}\right)^2 \left(\dfrac{x_i}{\alpha}\right)^{\delta}$$

$$G_{12}(\alpha,\delta)=G_{21}(\alpha,\delta)=\dfrac{\partial^2 \log L(\alpha,\delta)}{\partial \alpha \partial \delta}=\dfrac{\partial^2 \log L(\alpha,\delta)}{\partial \delta \partial \alpha}=-\frac{n}{\alpha}; + ;\frac{1}{\alpha}\sum^n_{i=1} \left(\dfrac{x_i}{\alpha}\right) ^\delta - \sum^n_{i=1}\left(\log \dfrac{x_i}{\alpha}\right)^2 \left(\dfrac{x_i}{\alpha}\right)^{\delta}$$

i.e.

$$\mathcal{I}(\alpha,\delta)=-\begin{bmatrix}\dfrac{n\delta}{\alpha^2}-\dfrac{\delta(\delta+1)}{\alpha^{\delta+2}}\sum\limits_{i=1}^nx_{i}^\delta\qquad\qquad\qquad\qquad-\dfrac{n}{\delta^2}-\dfrac{1}{\alpha}\sum\limits_{i=1}^n(\dfrac{x_{i}}{\alpha})^\delta-\sum\limits_{i=1}^n(\log\dfrac{x_{i}}{\alpha})^2 (\dfrac{x_{i}}{\alpha})^\delta \cr \cr \dfrac{n}{\delta^2}-\dfrac{1}{\alpha}\sum\limits_{i=1}^n(\dfrac{x_{i}}{\alpha})^\delta-\sum\limits_{i=1}^n(\log\dfrac{x_{i}}{\alpha})^2 (\dfrac{x_{i}}{\alpha})^\delta\qquad\qquad\qquad\qquad-\dfrac{n}{\delta^2}-\sum\limits_{i=1}^n(\log\dfrac{x_{i}}{\alpha})^2 (\dfrac{x_{i}}{\alpha})^\delta \cr \end{bmatrix}$$

Gamma Distribution

Be $(X_i)_{1\leq i\leq n}$ Random variables with Gamma distribution and parameters $\alpha \ > \ 0$ (also called shape parameter) and $\beta \ > \ 0$ (rate parameter), denoting $X \sim \ \text{Gama}(\alpha,\beta)$, if its density function is given by

$$f(x)=\left \lbrace \begin{array}{l}\dfrac{\beta^{\alpha}x^{\alpha-1}e^{-\beta x}}{\Gamma({\alpha})} \ \hbox{se} \ x\geq0 \cr 0, \ \hbox{caso contrário}\end{array}\right.$$

The likelihood function for $\alpha$ and $\beta$ is given by:

$$ L(\alpha, \beta) = \prod_{i=1}^n f(x_i; (\alpha, \beta)) = \prod_{i=1}^n \frac{\beta^{\alpha}}{\Gamma(\alpha)} x_i^{\alpha - 1} e^{-\beta x_i} = \left( \frac{\beta^{\alpha}}{\Gamma(\alpha)} \right)^{n} \exp\left( -\beta \sum_{i=1}^n x_i \right) \prod_{i=1}^n x_i^{\alpha - 1} $$

Therefore, the log-likelihood function is given by:

$$\log L(\alpha,\beta)=n\alpha\log\beta -n\log \Gamma(\alpha)-\beta \sum^n_{i=1}x_i+(\alpha-1)\sum^n_{i=1}\log x_i$$

Next, we construct the observed information matrix. For Gamma distribution we describe the score function:

$$U(\theta)=\dfrac{\partial \log L(\theta)}{\partial \theta}=\left(\dfrac{\partial \log L(\alpha,\beta)}{\partial \alpha}, \dfrac{\partial \log L(\alpha,\beta)}{\partial \beta}\right)^\top$$

in which

$$\dfrac{\partial \log L(\alpha,\beta)}{\partial \alpha}= n\log \beta-n\frac{\Gamma^\prime (\alpha)}{\Gamma (\alpha)}+\sum^n_{i=1}\log x_i$$

$$\dfrac{\partial L(\alpha,\beta)}{\partial \beta}= \frac{n\alpha}{\beta}-\sum^n_{i=1}x_i$$

With this, we take $ \widehat{U}=0 $ and we get:

$$\widehat{\alpha}=\overline{x}\widehat{\beta}$$

$$\widehat{\beta}=\exp\left \lbrace \frac{\Gamma^\prime(\alpha)}{\Gamma(\alpha)}-\sum^n_{i=1}\frac{\log x_i}{n} \right \rbrace $$

Once again it is necessary to apply the numerical method. The observed information matrix is given by:

$$\mathcal{I}(\alpha,\beta)=-\frac{\partial [U(\theta)]^\top}{\partial \theta}=-\frac{\partial \log L(\alpha,\beta)}{\partial \theta\partial \theta^\top}=$$ $$=-\left[\begin{array}{l}\dfrac{\partial^2 }{\partial \alpha^2}\log L(\alpha,\beta) \quad \dfrac{\partial^2 }{\partial \alpha\partial \beta}\log L(\alpha,\beta) \cr \dfrac{\partial^2 }{\partial \beta\partial \alpha}\log L(\alpha,\beta) \quad \dfrac{\partial^2 }{\partial \beta^2}\log L(\alpha,\beta)\end{array}\right]=-\left[\begin{array}{l}G_{11}(\alpha,\beta) \quad G_{12}(\alpha,\beta) \cr G_{21}(\alpha,\beta) \quad G_{22}(\alpha,\beta)\end{array}\right]$$

in which

$$G_{11}(\alpha,\beta)= \dfrac{\partial^2 \log L(\alpha,\beta)}{\partial \alpha^2} = n\left(\frac{\Gamma^{\prime}(\alpha)}{\Gamma(\alpha)}\right)^2 -n\frac{\Gamma^{\prime\prime}(\alpha)}{\Gamma(\alpha)}$$

$$G_{22}(\alpha,\beta)= \dfrac{\partial^2 \log L(\alpha,\beta)}{\partial \beta^2} = -\frac{n\alpha}{\beta^2}$$

$$G_{12}(\alpha,\beta)=G_{21}(\alpha,\beta)=\dfrac{\partial^2 \log L(\alpha,\beta)}{\partial \alpha \partial \beta} = \frac{n}{\beta}$$

i.e.

$$\mathcal{I}(\alpha,\beta)=-\left[\begin{array}{l}n\left(\dfrac{\Gamma^{\prime}(\alpha)}{\Gamma(\alpha)}\right)^2 -n\left(\dfrac{\Gamma^{\prime\prime}(\alpha)}{\Gamma(\alpha)}\right)\qquad\quad\dfrac{n}{\beta} \cr \cr \quad \dfrac{n}{\beta}\qquad\qquad\qquad\qquad\qquad\qquad-\dfrac{n\alpha}{\beta^2} \cr \end{array}\right]$$

Logistics Distribution

Be $(X_i)_{1\leq i\leq n}$ random variables with logistic distribution and location parameters μ and scale s, with a probability density function given by:

$$f(x)=\dfrac{1}{s}\dfrac{\exp\left \lbrace \dfrac{x-\mu}{s}\right \rbrace }{\left(1+\exp\left \lbrace \dfrac{x-\mu}{s}\right \rbrace \right)^2},\quad x,\mu\in \mathbb{R}, \quad s> 0.$$

The likelihood function for $\mu$ and s is given by:

$$L(\mu,s)=\prod^n_{i=1}f(x_i;(\mu,s))=\prod^n_{i=1} \dfrac{1}{s} \dfrac{\exp\left \lbrace \dfrac{x_i-\mu}{s}\right \rbrace }{\left(1+\exp\left \lbrace \dfrac{x_i-\mu}{s}\right \rbrace \right)^2}$$

Therefore, the log-likelihood function is given by:

$$\log L(\mu,s)=-n\log s +\sum^n_{i=1}\left(\dfrac{x_i-\mu}{s}\right)-2\sum^n_{i=1}\log \left(1+\exp\left \lbrace \dfrac{x_i-\mu}{s}\right \rbrace \right)$$

Next, we construct the observed information matrix. For Logistic distribution we describe the score function:

$$U(\theta)=\dfrac{\partial \log L(\theta)}{\partial \theta}=\left(\dfrac{\partial \log L(\mu,s)}{\partial \mu}, \dfrac{\partial L(\mu,s)}{\partial s}\right)^\top$$

in which

$$\dfrac{\partial \log L(\mu,s)}{\partial \mu}= -\dfrac{n}{s}~+~2~ \sum\limits_{i=1}^n\left[\dfrac{\exp\left \lbrace \dfrac{x_i-\mu}{s}\right \rbrace }{1+\exp\left \lbrace \dfrac{x_i-\mu}{s}\right \rbrace }~\dfrac{1}{s}\right]$$

$$\dfrac{\partial \log L(\mu,s)}{\partial s}= -\frac{n }{s} -\sum^n_{i=1}\left(\dfrac{x_i-\mu}{s^2}\right)~+~2~ \sum\limits_{i=1}^n\left[ \dfrac{\exp\left \lbrace \dfrac{x_i-\mu}{s}\right \rbrace }{1+\exp\left \lbrace \dfrac{x_i-\mu}{s}\right \rbrace }~\dfrac{x_i-\mu}{s^2}\right]$$

Once again it is necessary to apply the numerical method. The observed information matrix is given by:

$$\mathcal{I}(\mu,s)=-\frac{\partial [U(\theta)]^\top}{\partial \theta}=-\frac{\partial \log L(\mu,s)}{\partial \theta\partial \theta^\top}=-\left[\begin{array}{l}\dfrac{\partial^2 }{\partial \mu^2}\log L(\mu,s) \quad \dfrac{\partial }{\partial \mu\partial s}\log L(\mu,s) \cr \dfrac{\partial^2 }{\partial s \partial \mu}\log L(\mu,s) \quad \dfrac{\partial^2 }{\partial s^2}\log L(\mu,s)\end{array}\right]=-\left[\begin{array}{l}G_{11}(\mu,s) \quad G_{12}(\mu,s) \cr G_{21}(\mu,s) \quad G_{22}(\mu,s)\end{array}\right]$$

in which

$$G_{11}(\mu,s)= -~2~\sum^n_{i=1}\left[\dfrac{\exp\left \lbrace \dfrac{x_i-\mu}{s}\right \rbrace }{\left(1+\exp\left \lbrace -\dfrac{x_i-\mu}{s}\right \rbrace \right)^2}~\dfrac{1}{s^2}\right]$$

$$G_{22}(\mu,s)= \dfrac{n}{s^2} +\dfrac{2}{s^3}\sum^n_{i=1}(x_i-\mu)-\dfrac{4}{s^3}\sum^n_{i=1}\left[(x_i-\mu)\dfrac{\exp\left \lbrace \dfrac{x_i-\mu}{s}\right \rbrace }{1+\exp\left \lbrace \dfrac{x_i-\mu}{s}\right \rbrace }\right]- ~\dfrac{2}{s^4}~\sum^n_{i=1}\left[\left(x_i-\mu\right)^2\dfrac{\exp\left \lbrace \dfrac{x_i-\mu}{s}\right \rbrace }{\left(1+\exp\left \lbrace \dfrac{x_i-\mu}{s}\right \rbrace \right)^2}\right]$$

$$G_{12}(\mu,s)=G_{21}(\mu,s)= \dfrac{n}{s^2} + ~2~\sum^n_{i=1}\left[ \dfrac{\left(-\dfrac{1}{s^2}\cdot\exp\left \lbrace \dfrac{x_i-\mu}{s}\right \rbrace \right)\left(\dfrac{x_i+s-\mu}{s}+\exp\left \lbrace \dfrac{x_i-\mu}{s}\right \rbrace \right)}{\left(1+\exp\left \lbrace \dfrac{x_i-\mu}{s}\right \rbrace \right)^2}\right]$$

Log-Normal Distribution

Be $(X_i)_{1\leq i\leq n}$ random variables with log-normal distribution and location parameters $\mu$ and scale $\sigma$, with a probability density function given by:

$$f(x;\mu,\sigma^2)=\left \lbrace \begin{array}{l}\dfrac{1}{\sqrt{\left(2\pi\sigma^2\right)}~x}\exp\left[\dfrac{-(\log(x)-\mu)^2}{2\sigma^2}\right], \ \hbox{se} \ x \ > \ 0 \cr 0, \ \hbox{caso contrário}\end{array}\right.$$

The likelihood function of $\mu$ and $\sigma^2$ for the Log-Normal distribution is:

$$L(\mu,\sigma^2)=\left \lbrace \prod_{i=1}^{n}f(x_i;\theta)\right \rbrace =\left \lbrace \prod_{i=1}^{n} \dfrac{1}{\sqrt{\left(2\pi\sigma^2\right)}~x_{i}}\exp\left[\dfrac{-(\log(x_{i})-\mu)^2}{2\sigma^2}\right]\right \rbrace $$

Therefore, the log-likelihood function is given by:

$$\log L(\mu,\sigma^2)= -\dfrac{n}{2}\log(2\pi) - \dfrac{n}{2}\log(\sigma^2) - \sum_{i=1}^{n} \log(x_i) - \dfrac{1}{2\sigma^2}\sum_{i=1}^{n} (\log(x_i)-\mu)^2$$

Next, we construct the observed information matrix. For Log-Normal distribution we describe the score function:

$$U(\theta)=\dfrac{\partial \log L(\theta)}{\partial \theta}=\left(\dfrac{\partial \log L(\mu,\sigma^2)}{\partial \mu}, \dfrac{\partial \log L(\mu,\sigma^2)}{\partial \sigma^2}\right)^\top$$

in which

$$\dfrac{\partial \log L(\mu,\sigma^2)}{\partial \mu}=\dfrac{1}{\sigma^2}\sum^n_{i=1}(\log x_i-\mu)$$

$$\dfrac{\partial \log L(\mu,\sigma^2)}{\partial \sigma^2}=-\dfrac{n}{2\sigma^2}+\sum^n_{i=1}\dfrac{(\log x_i-\mu)^2}{2(\sigma^2)^2}$$

Once again it is necessary to apply the numerical method. The observed information matrix is given by:

$$\mathcal{I}(\mu,\sigma^2)=-\frac{\partial [U(\theta)]^\top}{\partial \theta}=-\frac{\partial \log L(\mu,\sigma^2)}{\partial \theta\partial \theta^\top}$$ $$-\left[\begin{array}{lr}\dfrac{\partial^2 }{\partial \mu^2}\log L(\mu,\sigma^2) \quad \quad \quad ~\dfrac{\partial^2 }{\partial \mu\partial \sigma^2}\log L(\mu,\sigma^2) \cr \ \dfrac{\partial^2 }{\partial \sigma^2\partial \mu}\log L(\mu,\sigma^2) \quad \dfrac{\partial^2 }{\partial (\sigma^2)^2}\log L(\mu,\sigma^2)\end{array}\right]=-\left[\begin{array}{lc}~-\dfrac{n}{\sigma^2}\qquad\qquad\qquad\qquad\qquad 0 \cr \quad ~0\qquad\dfrac{n}{2(\sigma^2)^2}-\sum\limits_{i=1}^n\dfrac{(\log(x_i)-\mu)^2}{(\sigma^2)^3}\end{array}\right]$$

Gumbel Distribution

Be $(X_i)_{1\leq i\leq n}$ random variables with gumbel distribution and location parameters $\mu$ and scale $\sigma$, with a probability density function given by:

$$f(x;\mu,\sigma)=\left \lbrace \begin{array}{l}\dfrac{1}{\sigma }\exp\left[-\dfrac{x-\mu}{\sigma}-\exp\left(-\dfrac{x-\mu}{\sigma}\right)\right], \ \hbox{se} \ x \ > \ 0 \cr 0, \ \hbox{caso contrário}\end{array}\right.$$

The likelihood function of $\mu$ and $\sigma$ for the gumbel distribution is:

$$L(\mu,\sigma)=\left \lbrace \prod_{i=1}^{n}f(x_i;\theta)\right \rbrace =\dfrac{1}{\sigma^n}\exp\left\lbrace -\sum^n_{i=1}\left[\dfrac{x_i-\mu}{\sigma}+\exp\left(-\dfrac{x_i-\mu}{\sigma}\right)\right]\right\rbrace$$

Therefore, the log-likelihood function is given by:

$$\log L(\mu,\sigma)= -n\log\sigma -\sum^n_{i=1}\left[\dfrac{x_i-\mu}{\sigma}+\exp\left(-\dfrac{x_i-\mu}{\sigma}\right)\right]$$

Next, we construct the observed information matrix. For Log-normal distribution we describe the score function:

$$U(\theta)=\dfrac{\partial \log L(\theta)}{\partial \theta}=\left(\dfrac{\partial \log L(\mu,\sigma)}{\partial \mu}, \dfrac{\partial \log L(\mu,\sigma)}{\partial \sigma}\right)^\top$$

in which

$$\dfrac{\partial \log L(\mu,\sigma)}{\partial \mu}=\sum^n_{i=1}\left[\dfrac{1}{\sigma}\left( 1-\exp\left(-\dfrac{x_i-\mu}{\sigma}\right) \right) \right]$$

$$\dfrac{\partial \log L(\mu,\sigma)}{\partial \sigma}=-\dfrac{n}{\sigma}+\sum^n_{i=1}\left[ \dfrac{x_i-\mu}{\sigma^2}\left( 1-\exp\left(-\dfrac{x_i-\mu}{\sigma}\right)\right) \right] $$

Once again it is necessary to apply the numerical method. The observed information matrix is given by:

$$\mathcal{I}(\mu,\sigma)=-\frac{\partial [U(\theta)]^\top}{\partial \theta}=-\frac{\partial \log L(\mu,\sigma)}{\partial \theta\partial \theta^\top}=-\left[\begin{array}{lr}\dfrac{\partial^2 }{\partial \mu^2}\log L(\mu,\sigma) \quad \dfrac{\partial^2 }{\partial \mu\partial \sigma}\log L(\mu,\sigma) \cr \cr \dfrac{\partial^2 }{\partial \sigma\partial \mu}\log L(\mu,\sigma^2) \quad \dfrac{\partial^2 }{\partial \sigma^2}\log L(\mu,\sigma^2)\end{array}\right] $$

in which

$$\dfrac{\partial^2 }{\partial \mu^2}\log L(\mu,\sigma)=-\dfrac{1}{\sigma^2}\displaystyle\sum_{i=1}^n\left[\exp\left\lbrace -\dfrac{x_i-\mu}{\sigma}\right\rbrace\right]$$

$$\dfrac{\partial^2 }{\partial \sigma^2}\log L(\mu,\sigma^2)=\dfrac{n}{\sigma^2}-\sum^n_{i=1}\left[\dfrac{2(x_i-\mu)}{\sigma^3}-\dfrac{2(x_i-\mu)}{\sigma^3}\exp\left\lbrace -\dfrac{x_i-\mu}{\sigma}\right\rbrace +\left(\dfrac{x_i-\mu}{\sigma^2}\right)^2\exp\left\lbrace -\dfrac{x_i-\mu}{\sigma}\right\rbrace \right]$$

$$\dfrac{\partial^2 }{\partial \mu\partial \sigma}\log L(\mu,\sigma)=\dfrac{\partial^2 }{\partial \sigma\partial \mu}\log L(\mu,\sigma^2)=\sum^n_{i=1}\left[-\dfrac{1}{\sigma^2}+\dfrac{1}{\sigma^2}\exp\left\lbrace -\dfrac{x_i-\mu}{\sigma}\right\rbrace -\left(\dfrac{x_i-\mu}{\sigma^3}\right)\exp\left\lbrace -\dfrac{x_i-\mu}{\sigma}\right\rbrace \right]$$

6.3.5 Properties of Estimators

As we saw in the previous section, it is important that estimators have some desirable characteristics. Let us consider a sample $(X_1, X_2, \cdots, X_n)$ of a population $X$. It is $\theta$ the parameter of interest of the population we wish to estimate, such as $\mu = \mathbb{E}(X)$ or $\sigma^2 = \text{Var}(X)$.

Definition 3.5.1

An estimator $T = T(X_1, X_2, \cdots, X_n)$ is said to be unbiased (unbiased) for some population parameter $\theta$ if

$$\mathbb{E}(T)=\theta,$$

for everyone $\theta$. If the above equality does not occur, we say that $T$ is a biased estimator and the difference $V(T,\theta) = \mathbb{E}(T) - \theta$ is called addiction (bias) $T$.

Theorem 3.5.1

Be $X_1, X_2, \cdots, X_n$ a random sample i.i.d. of a population and be $g(x)$ a function such that $\mathbb{E}[g(X_1)]$ and $\hbox{Var}[g(X_1)]$ exist. So

$$\mathbb{E}\left(\sum_{i=1}^ng(X_i)\right)=n(\mathbb{E}(g(X_1)))$$

and $$\text{Var}\left(\sum_{i=1}^ng(X_i)\right)=n(\text{Var}(g(X_1))).$$

Demo

To prove the first equation, we note that

$$\mathbb{E}\left(\sum_{i=1}^ng(X_i)\right)=\sum_{i=1}^n\mathbb{E}(g(X_i))=n(\mathbb{E}(g(X_1))).$$

Once the $X_i$’s are identically distributed, the second equality is true because $\mathbb{E}(g(X_i))=\mathbb{E}(g(X_1))$ for everyone $i$. Note that here, the independence of $X_1, X_2, \cdots, X_n$ is not necessary for this equality. In fact, the above equality is true for any collection of $n$ independent and equally distributed random variables.

To prove the second equality, note that

$$\text{Var}\left(\sum_{i=1}^ng(X_i)\right)=\mathbb{E}\left[\sum_{i=1}^n g(X_i)-\mathbb{E}\left(\sum_{i=1}^n g(X_i)\right)\right]^2=\mathbb{E}\left[\sum_{i=1}^n(g(X_i)-\mathbb{E}[g(X_i)])\right]^2.$$

In this last expression, there are $n^2$ terms. Firstly, there are $n$ terms of the form

$$(g(X_i)-\mathbb{E}[g(X_i)])^2, \quad i = 1, \ldots, n$$

and, for each of them, we have to

$$\mathbb{E}(g(X_i)-\mathbb{E}[g(X_i)])^2= \ \text{Var}(g(X_i))= \ \text{Var}(g(X_1))$$

since the variables are identically distributed. The $n(n-1)$ remaining terms are all of the form

$$(g(X_i)-\mathbb{E}[g(X_i)(g(X_j))]-\mathbb{E}[g(X_j)]) \ \hbox{com} \ i\neq j.$$

For each of these terms we have

$$\mathbb{E}(g(X_i)-\mathbb{E}(g(X_i))(g(X_j))-\mathbb{E}(g(X_j)))= \ \text{Cov}(g(X_i),g(X_j))=0$$

because the variables are independent. In this way, it is clear that

$$\text{Var}\left(\sum_{i=1}^ng(X_i)\right)=n(\text{Var}[g(X_1)]).$$

Theorem 3.5.2

Be $X_1, X_2, \cdots, X_n$ an independent and equally distributed random sample from a population with mean $\mu$ and variance $\sigma^2 \ < \ \infty$. So

a) $\mathbb{E}(\overline{X})=\mu,$

b) $\mathbb{E}(s^2)=\sigma^2$.

Demo

To prove it, just take $g(X_i) = \frac{X_i}{n}$, in this way, $\mathbb{E}(g(X_i)) = \frac{\mu}{n}$. Then, by Theorem 3.5.1 we have that

$$\mathbb{E}(\overline{X})=\mathbb{E}\left(\frac{1}{n}\sum_{i=1}^nX_i\right)=\frac{1}{n}\mathbb{E}\left(\sum_{i=1}^n X_i\right)=\frac{1}{n}n\mathbb{E}(X_1)=\mu.$$

Similarly, for the sampling variance, we have

$$\mathbb{E}(s^2)=\mathbb{E}\left(\frac{1}{n-1}\left[\sum_{i=1}^nX_i^2-n\overline{X}^2\right]\right)=\frac{1}{n-1}(n\mathbb{E}(X_1^2)-n\mathbb{E}(\overline{X}^2))$$

i.e.

$$\mathbb{E}(s^2)=\frac{1}{n-1}\left(n(\sigma^2+\mu^2)-n\left(\frac{\sigma^2}{n}+\mu^2 \right)\right)=\sigma^2.$$

In this way, we can conclude that $\overline{X}$ and $s^2$ are unbiased estimators of the population mean $\mu$ and population variance $\sigma^2$.

Proposition 3.5.1

Be $X_1,X_2, \cdots ,X_n$ a random sample from a normally distributed population $N(\mu,\sigma^2)$. The estimator $ s=\displaystyle \sqrt{\frac{1}{n-1}\sum_{i=1}^{n}(X_i-\overline{X})^2}$ is biased.

In fact, first notice that $X_i \sim N(\mu,\sigma^2)$ then

$$ \frac{(n-1)s^2}{\sigma^2} = \sum_{i=1}^{n}(X_i-\overline{X})^2 \sim \chi^2_{n-1}$$

This fact follows from Corollary 2.3.1. We remember that the chi-square distribution is given by

$$f(x)=\displaystyle \frac{1}{2^{k/2}\Gamma(k/2)}x^{k/2}exp\left(-\frac{x}{2}\right), \quad x\in (0,\infty)$$

With this in mind, let’s calculate the expected value of $s$ to show that $\mathbb{E}(s)\neq\sigma$. In fact,

$$\mathbb{E}\left(s\right)=\mathbb{E}\left(\sqrt{\frac{n-1}{n-1}\frac{\sigma^2}{\sigma^2}s^2}\right)=\sqrt{\frac{\sigma^2}{n-1}}\mathbb{E}\left(\sqrt{\frac{N-1}{\sigma}s^2}\right)$$

$$=\sqrt{\frac{\sigma^2}{n-1}}\int^{0}_{\infty}\sqrt{x}\frac{1}{2^{(n-1)/2}\Gamma(\frac{(n-1)}{2})}x^{((n-1)/2)-1}\exp(-x/2)dx$$

$$=\sqrt{\frac{\sigma^2}{n-1}}\frac{\Gamma(n/2)}{\Gamma((n-1)/2)}\int_{0}^{\infty}\frac{1}{2^{(n-1)/2}\Gamma(n/2)}x^{(n/2)-1}\exp(-x/2)dx$$

$$=\sqrt{\frac{\sigma^2}{n-1}}\frac{\Gamma(n/2)}{\Gamma((n-1)/2)}\frac{2^{n/2}}{2^{(n-1)/2}}\int_{0}^{\infty}\frac{1}{2^{n/2}\Gamma(n/2)}x^{(n/2)-1}\exp(-x/2)dx$$

$$=\sigma\sqrt{\frac{2}{n-1}}\frac{\Gamma(n/2)}{\Gamma((n-1)/2)} \approx\sigma\left(1-\frac{1}{4n}-\frac{7}{32n^2}-\frac{19}{128n^3}+o(n^{-4})\right) \approx\sigma\left(1-\frac{1}{4n}\right)$$ (with the Stirling approximation)

Then the bias is given by

$$\sigma - \mathbb{E}(s)=\sigma\left(1-\sqrt{\frac{2}{n-1}}\frac{\Gamma(n/2)}{\Gamma((n-1)/2)}\right)\approx\frac{\sigma}{4n}$$

Therefore, in fact we have that the estimator $s$ it is biased though $s^2$ not be, because as we know $\mathbb{E}(s^2)=\sigma^2$ .

Another important concept to define is the consistency of an estimator. We have already verified in the Sampling Distributions Chapter that, as the sample size n grows, the distribution of the sample mean $\bar{X}$ becomes increasingly concentrated around the population average $\mu$. Whenever an estimator becomes increasingly close to the parameter, we say that the estimator is consistent. Mathematically, we consider the following definition:

Definition 3.5.2

Be $ \lbrace T_n \rbrace $ a sequence of estimators of a parameter of interest $\theta$. We say that this sequence of estimators is consistent if, given $\epsilon \ > \ 0$ arbitrary

$$\mathbb{P}\left(|T_n - \theta|>\epsilon\right)\rightarrow 0, \quad n\rightarrow\infty.$$

Proposition 3.5.2

The sequence of estimators $ \lbrace T_n \rbrace $ of a parameter $\theta$ is consistent if

$$\lim_{n\rightarrow\infty}\mathbb{E}\left(T_n\right) = \theta \ \hbox{e} \ \lim_{n\rightarrow\infty}\text{Var}\left(T_n\right) = 0.$$

Note 3.5.1

Note that if $ \lbrace T_n \rbrace $ is an unbiased sequence of estimators $\theta$, then the first condition will be clearly satisfied. From the previous result, it is clear that the sample mean $\bar{X}$ and the proportion $\hat{p}$ are consistent estimators of the population mean $\mu$ and population proportion $p$, respectively.

Example 3.5.1

Consider the sampling variance $s^2$. From Theorem 3.5.2, we have that $s^2$ is an unbiased estimator of $\sigma^2$. We can demonstrate that if $X_1, X_2, \cdots, X_n$ is an independent and equally distributed sample from any population, then $$\hbox{Var}\left(s^2\right) = \sigma^4\left(\frac{2}{n-1}+\frac{k}{n}\right)$$

where $k$ is the kurtosis of the distribution.

In this way, we have to $\lim_{n\rightarrow\infty}\hbox{Var}\left(s^2\right) = 0$ and therefore we conclude that $s^2$ is a consistent estimator for $\sigma^2$.

Example 3.5.2

Be $X_1, X_2, \cdots, X_n$ an i.i.d sample from a population with mean $\mu$ and variance $\sigma^2$ and consider the following estimators for the population mean $\mu$:

$$\bar{X} = \frac{1}{n}\sum_{i=1}^n X_i \qquad \hbox{e} \qquad X^\prime = \frac{1}{n+1}\left(2X_1 + X_2 + \cdots + X_n\right)$$

Using Theorem 3.5.1, it is easy to conclude that $\mathbb{E}\left(\bar{X}\right) = \mathbb{E}\left(X^\prime\right) = \mu$, from which we conclude that both estimators of $\mu$ are non-addicted. Calculating the variances, we have

$$\text{Var}\left(\bar{X}\right) = \ \text{Var}\left(\frac{1}{n}\sum_{i=1}^n X_i\right) = \frac{1}{n^2}\sum_{i=1}^n \ \text{Var}\left(X_i\right) = \frac{\sigma^2}{n}.$$

$$\text{Var}\left(X^\prime\right) = \ \text{Var}\left(\frac{2X_1+X_2+\cdots+X_n}{n+1}\right) = \frac{(n+3)\sigma^2}{(n+1)^2}.$$

In this case, we have to $\lim_{n\rightarrow\infty}\text{Var}(\bar{X}) = \lim_{n\rightarrow\infty}\frac{\sigma^2}{n} = 0$ and $\lim_{n\rightarrow\infty}\text{Var}(X^\prime) = \lim_{n\rightarrow\infty}\frac{(n+3)\sigma^2}{(n+1)^2} = 0$. So, so much $\overline{X}$ how much $X'$ are consistent estimators for the parameter $\mu$.

In this case, some criterion is needed to decide which would be a “best” estimator of the same parameter. We will then say that the “best” estimator is called the most efficient estimator.

Definition 3.5.3

Suppose $T$ and $T$' are two unbiased estimators of the same parameter $\theta$. Se $$\text{Var}\left(T\right) \ < \ \text{Var}\left(T'\right)$$

so we say that $T$ is an estimator more efficient than $T$'.

Considering Example 3.5.1, we have

$$\text{Var}\left(\overline{X}\right) = \frac{\sigma^2}{n} < \frac{(n+3)\sigma^2}{(n+1)^2} = \ \text{Var}\left(X^\prime\right).$$

from which we conclude that $\overline{X}$ is a more efficient estimator than $X$'.

The smaller the difference between the estimator $T$ and the parameter $\theta$, the smaller the error made when estimating the parameter $\theta$ by the estimator $T$. This difference $e = T - \theta$ is called sampling error.

Definition 3.5.4

We define the mean squared error (MSE) of the estimator $T$ as the expected value of the squared sampling error, that is,

$$\text{EQM}(T;\theta) = \mathbb{E}(e^2) = \mathbb{E}\left((T-\theta)^2\right).$$

Writing $T - \theta = T - \mathbb{E}(T) + \mathbb{E}(T) - \theta$, we have from Definition 3.5.4, which

$$\text{EQM}(T,\theta) = \mathbb{E}\left((T-\mathbb{E}(T))^2\right) + 2\mathbb{E}\left((T-\mathbb{E}(T))(\mathbb{E}(T)-\theta)\right) + \mathbb{E}\left((\mathbb{E}(T)-\theta)^2\right),$$

from which we conclude that

$$\text{EQM}(T,\theta) = \mathbb{E}\left((T - \mathbb{E}(T))^2\right) + \mathbb{E}\left((\mathbb{E}(T)-\theta)^2\right),$$

because $\mathbb{E}(T) - \theta$ is a constant and $\mathbb{E}(T-\mathbb{E}(T)) = 0$. Where does it follow that

$$\text{EQM}(T,\theta) = \ \text{Var}(T) + V(T,\theta)^2$$

where $V(T,\theta)$ It’s the estimator’s bias $T$.

Again, returning to Example 3.5.2, we have

$$\text{EQM}(\bar{X},\mu) = \ \text{Var}(\overline{X}) + V(\bar{X},\mu)^2 = \text{Var}(\overline{X}) = \frac{\sigma^2}{n}$$

and

$$\text{EQM}(X^\prime,\mu) = \text{Var}(X^\prime) + V(X^\prime,\mu)^2 = \ \text{Var}(X\prime) = \frac{(n+3)\sigma^2}{(n+1)^2}$$

since the estimators are unbiased and, in this case, $V = 0$. Therefore, we conclude that the estimator $\overline{X}$ It is an estimator that has a lower mean squared error, that is, it has better accuracy.

Example 3.5.3

Be $X_1, \ldots, X_n$ a sample i.i.d from a normal distribution with mean $\mu$ and variance $\sigma^2$ and consider the estimator $s^2$ for $\sigma^2$. From Theorem 3.5.2 we have that this estimator is unbiased and, therefore,

$$V(s^2,\sigma^2) = 0.$$

Thus, the mean squared error of this estimator is given by

$$\text{EQM}(s^2,\sigma^2) = \text{Var}(s^2) = \frac{2\sigma^4}{n-1}.$$

Note 3.5.2

It may seem intuitive that, when using unbiased estimators, we have a small mean squared error, but this does not always occur, that is, controlling the bias of the estimator does not guarantee control of the mean squared error. Sometimes, an estimator with a small increase in bias can generate a large decrease in variance and, consequently, a smaller mean squared error.

Example 3.5.4

Consider again the sample i.i.d of Example 3.5.3 of a normal distribution with mean $\mu$ and variance $\sigma^2$ and consider the maximum likelihood estimator for $\sigma^2$, that is, the estimator

$$\hat{\sigma}^2=\frac{1}{n}\sum_{i=1}^n(X_i -\bar{X})^2 = \frac{n-1}{n}s^2.$$

We have to

$$\mathbb{E}(\hat{\sigma}^2) = \mathbb{E}\left(\frac{n-1}{n}s^2\right) = \frac{n-1}{n}\sigma^2,$$

so that $\hat{\sigma}^2$ is an addicted estimator $\sigma^2$. Calculating the variance of $\hat{\sigma}^2$, we have to $$\hbox{Var}(\hat{\sigma}^2) = \hbox{Var}\left(\frac{n-1}{n}s^2\right)=\left(\frac{n-1}{n}\right)^2\hbox{Var}(s^2) = \frac{2(n-1)\sigma^4}{n^2},$$

so that the mean squared error $\text{EQM}(\hat{\sigma}^2)$ is given by $$\text{EQM}(\hat{\sigma}^2) = \mathbb{E}(\hat{\sigma}^2-\sigma^2)^2 = \frac{2(n-1)\sigma^4}{n^2}+\left(\frac{n-1}{n}\sigma^2 - \sigma^2\right)^2 = \left(\frac{2n-1}{n^2}\right)\sigma^4.$$

In this way, $$\text{EQM}(\hat{\sigma}^2) = \left(\frac{2n-1}{n^2}\right)\sigma^4<\left(\frac{2}{n-1}\right)\sigma^4=\text{EQM}(s^2),$$

and therefore $\hat{\sigma}^2$ has a mean squared error smaller than $s^2$.

Note 3.5.3

Since the mean squared error is a function of the parameter, we cannot, in general, say that there is a best estimator from comparing their mean squared errors. However, your information may eventually provide a guide to follow when choosing between estimators.

The objective now is to find the best unbiased estimator of a parameter $\theta$, which will be defined below.

Definition 3.5.5

We say that an estimator $T$ of a parameter $\theta$ is the best unbiased estimator if $\mathbb{E}(T) = \theta$ and, for any other estimator $T$' with $\mathbb{E}(T^\prime) = \theta$, we have to $\hbox{Var}(T)\leq\hbox{Var}(T^\prime)$. In this case, $T$ is also called uniformly minimum variance unbiased estimator (ENVVUM) of $\theta$.

Despite Definition 3.5.5, finding the ENVVUM of a parameter $\theta$, when this exists, it is not always a very easy task. To illustrate, consider the following example.

Example 3.5.5

Be $X_1,\ldots,X_n$ independent and equally distributed random variables with Poisson distribution with parameter $\lambda$ and consider $\overline{X}$ the average and $s^2$ the sampling variance. We know that a Poisson distribution with parameter $\lambda$ has mean and variance equal to $\lambda$. How $\overline{X}$ and $s^2$ are unbiased estimators, we have

$$\mathbb{E}(\overline{X}) = \lambda$$

and $$\mathbb{E}(s^2) = \lambda.$$

To determine the best estimator, we must now compare their variances. Using Theorem 3.5.1 we have $\hbox{Var}(\overline{X}) = \lambda/n$, however the calculation of $\hbox{Var}(s^2)$ it’s a little more complicated and this is one of the problems with finding the ENVVUM of a parameter. For this particular case, we have to $\hbox{Var}(\overline{X})\leq\hbox{Var}(s^2)$ for everyone $\lambda$. But now consider the class of estimators

$$C_a(\overline{X},S^2) = a\bar{X} + (1-a)S^2, \ a\in\mathbb{R}.$$

For each $a\in\mathbb{R}$, we have to $\mathbb{E}(C_a) = \lambda$ so that we have an infinite number that unbiased estimators of $\lambda$. We know that $\overline{X}$ is a better estimator than $s^2$, however, it remains better than all $C_a(\overline{X},s^2)$?

Suppose now that we can find a lower bound $B(\theta)$ for the variance of any unbiased estimator of the parameter $\theta$ of interest. In this case, if there is an unbiased estimator $T$ of the parameter $\theta$ such that $\hbox{Var}(T) = B(\theta)$, then this will be the ENVVUM. To do this, we use the Cramer-Rao inequality, stated below.

Theorem 3.5.3 (Cramer-Rao Inequality)

Be $X_1,\ldots,X_n$ a random sample with probability density function $f(x|\theta)$ and be $T(\textbf{X}) = T(X_1,\ldots,X_n)$ any estimator that satisfies

$$\frac{d}{d\theta}\mathbb{E}(T(\textbf{X}))=\int_{-\infty}^\infty\frac{\partial}{\partial\theta}[T(\textbf{x})f(\textbf{x}|\theta)]d\textbf{x}$$

and $\hbox{Var}(T(\textbf{X}))<\infty$. So

$$\hbox{Var}(T(\textbf{X})) \geq \frac{\left(\frac{d}{d\theta}\mathbb{E}(T(\textbf{X}))\right)^2}{\mathbb{E}\left(\left(\frac{\partial}{\partial\theta}\log f(\textbf{X}|\theta)\right)^2\right)}.$$

Theorem 3.5.4 (Cramer-Rao inequality, case i.i.d)

If the hypotheses of Theorem 3.4.3 are satisfied and, furthermore, the random sample $X_1, \ldots, X_n$ is i.i.d with probability density function $f(x|\theta)$, then $$\hbox{Var}(T(\textbf{X}))\geq \frac{\left(\frac{d}{d\theta}\mathbb{E}(T(\textbf{X}))\right)^2}{n\mathbb{E}\left(\left(\frac{\partial}{\partial\theta}\log f(X|\theta)\right)^2\right).}$$

Note 3.5.4

The Cramer-Rao inequality also applies to the case of discrete random variables. In this case, we use the probability function instead of the probability density function and we observe that it is enough to replace the integral with the sum. Despite $f(x|\theta)$ not be differentiable in $x$, she is in $\theta$.

The quantity $\mathbb{E}\left(\left(\frac{\partial}{\partial\theta}\log f(\textbf{X}|\theta)\right)^2\right)$ is called Fisher information. Fisher information gets its name because it provides a limit for the variance of the ENVVUM of $\theta$. As information increases and we have more information about the parameter $\theta$, we have a lower bound for the variance of ENVVUM.

Proposition 3.5.3

Se $f(x,\theta)$ satisfies

$$\frac{d}{d\theta}\mathbb{E}\left(\frac{\partial}{\partial\theta}\log f(X|\theta)\right) = \int\frac{\partial}{\partial\theta}\left[\left(\frac{\partial}{\partial\theta}\log f(x|\theta)\right)f(x|\theta)\right]dx$$

then

$$\mathbb{E}\left(\left(\frac{\partial}{\partial\theta}\log f(X|\theta)\right)^2\right)=-\mathbb{E}\left(\frac{\partial^2}{\partial\theta^2}\log f(X|\theta)\right).$$

Returning to Example 3.5.5, how $X$ has Poisson distribution with parameter $\lambda$, equality

$$\frac{d}{d\theta}\mathbb{E}\left(\frac{\partial}{\partial\theta}\log f(X|\theta)\right) = \int\frac{\partial}{\partial\theta}\left[\left(\frac{\partial}{\partial\theta}\log f(x|\theta)\right)f(x|\theta)\right]dx$$

is satisfied (exercise!), we have from Proposition 3.5.3 that

$$\mathbb{E}\left(\left(\frac{\partial}{\partial\lambda}\log f(X|\lambda)\right)^2\right) = -\mathbb{E}\left(\frac{\partial^2}{\partial\lambda^2}\log f(X|\lambda)\right) = -\mathbb{E}\left(\frac{\partial^2}{\partial\lambda^2}\log\left(\frac{e^{-\lambda}\lambda^X}{X!}\right)\right)$$ whence it follows that

$$\mathbb{E}\left(\left(\frac{\partial}{\partial\lambda}\log f(X|\lambda)\right)^2\right) = -\mathbb{E}\left(-\frac{X}{\lambda^2}\right) = \frac{1}{\lambda}.$$

Then, by the Cramer-Rao inequality in the i.i.d case (Theorem 3.5.4), it follows that, for any unbiased estimator $ T(\textbf{X}) $ inequality is valid

$$\hbox{Var}(T(\textbf{X})\geq \frac{\left(\frac{d}{d\lambda}\mathbb{E}\left(T(\textbf{X})\right)\right)^2}{n\mathbb{E}\left(\left(\frac{\partial}{\partial\lambda}\log f(X|\lambda)\right)^2\right)} = \frac{\lambda}{n}.$$

How $ \hbox{Var}(\bar{X}) = \lambda/n $, it follows that $ \bar{X} $ is the ENVVUM of $ \lambda $, in addition to being the maximum likelihood estimator of $ \lambda $ as we saw in Example 3.4.2.

Example 3.5.6

Be $ X_1,\ldots,X_n $ an i.i.d sample from a uniform distribution in the interval $ [0,\theta] $. In this case, we have the probability density function $ f(x|\theta) $ is given by

$$ f(x|\theta) = \left \lbrace \begin{array}{l}\frac{1}{\theta}, \ \hbox{se} \ x\in[0,\theta] \cr 0, \ \hbox{caso contrário}.\end{array}\right.$$

It then follows that

$$\frac{\partial}{\partial\theta}\log (f(x|\theta)) = \frac{\partial}{\partial\theta}-\log(\theta) = -\frac{1}{\theta}$$

so that

$$\mathbb{E}\left(\left(\frac{\partial}{\partial\theta}\log f(X|\theta)\right)^2\right) = \frac{1}{\theta^2}.$$

In this way, if $ T $ is an unbiased estimator of the parameter $ \theta $, it follows from the Cramer-Rao inequality that

$$\hbox{Var}(T) \geq \frac{\theta^2}{n}.$$

Let us consider the maximum likelihood estimator of $ \theta $ given by $ T =\max \lbrace X_1,\ldots,X_n \rbrace $ (check Example 3.4.4 of Section 6.3.4). Initially, we observed that $ T $ has a probability density function given by

$$f_{T}(x|\theta) = \frac{nx^{n-1}}{\theta^n} \ \hbox{se} \ 0\leq x\leq \theta,$$

so that

$$\mathbb{E}(T) = \int_0^\theta\frac{nx^n}{\theta^n}dx=\frac{n}{n+1}\theta.$$

Therefore, $ T = \max \lbrace X_1,\ldots,X_n \rbrace $ is a biased estimator of the parameter $ \theta $. However, the estimator $ T^\prime = \frac{n+1}{n}T $ is obviously non-addicted. Furthermore, we have to

$$\hbox{Var}\left(\frac{n+1}{n}T\right) = \frac{1}{n(n+2)}\theta^2,$$

which is uniformly smaller than $ \theta^2/n $. This indicates that the Cramér-Rao inequality applies to this probability density function. In general, the inequality does not apply to f.d.p’s that depend on the parameter of interest.

Properties resulting from the Cramer-Rao inequality

From the Cramer-Rao inequality, we obtain some important properties:

  1. Under satisfied regularity conditions, if $ T(\textbf{X}) $ is an unbiased estimator of $ \psi(\theta) $ and if $ \hbox{Var}(T(\textbf{X})) = \frac{[\psi(\theta)]^2}{I(\theta)} $, then $ T(\textbf{X}) $ is an ENVVUM of $ \psi(\theta) $.

  2. Under satisfied regularity conditions, if $ T(\textbf{X}) $ is an unbiased estimator of $ \theta $ and if $ \hbox{Var}(T(\textbf{X})) = \frac{1}{I(\theta)} $, then $ T(\textbf{X}) $ is an ENVVUM for $ \theta $.

This is a direct consequence of the previous item. Just note that if $ T(\textbf{X}) $ is an unbiased estimator of $ \theta $, so in this case, $ \psi(\theta) = \theta $, so that $ \psi^\prime(\theta) = 1 $ and so, if $ \hbox{Var}(T(\textbf{X})) = \frac{1}{I(\theta)} $, using the Cramer-Rao Inequality, we have that this is the smallest possible variance for an unbiased estimator of $ \theta $.

  1. Se $ f(\textbf{x}|\theta) $ belongs to the exponential family

$$f(\textbf{x}|\theta) = h(\textbf{x})\exp\left \lbrace c(\theta)T(\textbf{x})+d(\theta)\right \rbrace $$

and if $ c(\cdot) $ has non-zero continuous derivative on $ \Theta $, then

$$\hbox{Var}_{\theta}(T(\textbf{X})) = \frac{[\psi^\prime(\theta)]^2}{I(\theta)}$$

in which $ \psi(\theta) = \mathbb{E}(T(\textbf{X})) $ and $ T(\textbf{X}) $ is ENVVUM for $ \psi(\theta) $.

  1. The quantity $ \frac{[\psi^\prime(\theta)]^2}{I(\theta)} $ is called the Cramer-Rao lower bound for the variance of the unbiased estimator of $ \psi(\theta) $ (only under regularity conditions satisfied).

Theorem 3.5.5 (Rao-Blackwell Theorem)

Be $ X_1,\ldots,X_n $ a random sample with probability function or probability density function $ f(\textbf{x}|\theta) $, $ T = T(X_1,\ldots,X_n) $ enough statistics to $ \theta $ and be $ S = S(X_1,\ldots,X_n) $ an unbiased estimator of any kind $ \psi(\theta) $. Taking $ \phi(T) = T^\ast(\textbf{X}) = \mathbb{E}(S(\textbf{X})|T(\textbf{X})) $, we have to $ T^\ast(\textbf{X}) $ is independent of $ \theta $, because $ T(\textbf{X}) $ is enough to $ \theta $. Furthermore, $ \mathbb{E}(T^\ast(\textbf{X})) = \psi(\theta) $ and $ \hbox{Var}(T^\ast(\textbf{X}))\leq \hbox{Var}(S(\textbf{X})) $ for everyone $ \theta $. That is, $ T^\ast(\textbf{X}) $ is a uniformly better unbiased estimator than $ \psi(\theta) $.

Demo

In fact, we have to

$$\mathbb{E}(T^\ast(\textbf{X})) = \mathbb{E}\left(\mathbb{E}(S(\textbf{X})|T(\textbf{X}))\right) = \mathbb{E}(S(\textbf{X})) = \psi(\theta).$$

and therefore $ T^\ast(\textbf{X}) $ is an unbiased estimator for $ \psi(\theta) $. Furthermore,

$$\hbox{Var}(S(\textbf{X}))=\hbox{Var}\left[\mathbb{E}(S(\textbf{X})|T(\textbf{X}))\right]+\mathbb{E}\left[ \hbox{Var}(S(\textbf{X})|T(\textbf{X}))\right]$$

whence it follows that

$$\hbox{Var}(S(\textbf{X}))=\hbox{Var}(T^\ast(\textbf{X})) + \mathbb{E}\left[\hbox{Var}(S(\textbf{X})| T(\textbf{X})) \right] \geq\hbox{Var}(T^\ast(\textbf{X}))$$

So, $ T^\ast(\textbf{X}) $ is uniformly better than $ S(\textbf{X}) $. Furthermore, as $ S(\textbf{X}) $ is a function only of the sample and $ T(\textbf{X}) $ is a sufficient statistic, it follows that the distribution of $ S(\textbf{X})|T(\textbf{X}) $ independent of $ \theta $. Therefore, $ T^\ast(\textbf{X}) $ is, in fact, an estimator and, furthermore, it is unbiased and uniformly better for $ \psi(\theta) $.

In other words, conditioning any unbiased estimator of $ \psi(\theta) $ to a sufficient statistic to $ \theta $ will result in a better estimator, so that in the search for optimal unbiased estimators, we only consider statistics that are functions of a sufficient statistic. However, the Rao-Blackwell Theorem does not provide the ENVVUM.

Theorem 3.5.6 (Lehmann-Scheffé Theorem)

Be $ X_1,\ldots,X_n $ a random sample of the random variable $ X $ with probability function or probability density function $ f(x|\theta) $, $ T(\textbf{X}) $ sufficient and complete statistics to $ \theta $ and $ S(\textbf{X}) $ an unbiased estimator of $ \psi(\theta) $. So, $ T^\ast(\textbf{X}) = \mathbb{E} (S(\textbf{X})|T(\textbf{X})) $ is an ENVVUM for $ \psi(\theta) $ and, if $ Var(T^\ast(\textbf{X}))<\infty $ for everyone $ \theta $, then, $ T^\ast(\textbf{X}) $ is the only ENVVUM for $ \psi(\theta) $.

Demo

How $ T^\ast(\textbf{X}) = \mathbb{E}(S(\textbf{X})|T(\textbf{X})) $ we have to

$$\mathbb{E}(T^\ast(\textbf{X}))=\mathbb{E}\left[\mathbb{E}(S(\textbf{X})|T(\textbf{X}))\right]=\mathbb{E}(S(\textbf{X})) = \psi(\theta).$$

Then, $ T^\ast(\textbf{X}) $ is an unbiased estimator of $ \psi(\theta) $.

Now, looking for ENVVUM’s to $ \psi(\theta) $, just search among those that are a function of $ T(\textbf{X}) $ (because those that are not can be improved through the Rao-Blackwell Theorem). Therefore, it suffices to prove that there is a single unbiased estimator of $ \psi(\theta) $ which is a function of $ T(\textbf{X}) $. To do this, assume that there are $ T_1(\textbf{X}) $ and $ T_2(\textbf{X}) $, both function of $ T $, such that

$$\mathbb{E}(T_1(\textbf{X})) = \mathbb{E}(T_2(\textbf{X})) = \psi(\theta).$$

But then, $ \mathbb{E}(T_1(\textbf{X})-T_2(\textbf{X})) = 0 $ and, how $ T $ is complete, it implies that $ T_1(\textbf{X})-T_2(\textbf{X}) = 0 $, then $ T_1(\textbf{X}) = T_2(\textbf{X}) $ with probability $ 1 $.

Below, we have a guide on how to use the Lehmann-Scheffé Theorem to find an ENVVUM for $ \psi(\theta) $.

  1. Search for sufficient and complete statistics $ T(\textbf{X}) $.

  2. Get a statistic $ h(T(\textbf{X})) $ (function of $ T(\textbf{X}) $ that is an unbiased estimator of $ \psi(\theta) $. So, $ h(T(\textbf{X})) $ will be an ENVVUM for $ \psi(\theta) $.

Example 3.5.7

Be $ X_1,\ldots,X_n $ an i.i.d random sample with Bernoulli distribution with parameter $ \theta $ with $ 0 \ < \ \theta \ < \ 1 $. Check that $ \frac{n}{n+1}\overline{X}(1-\overline{X}) $ is an ENVVUM for $ \theta(1-\theta) $.

Note that if $ f(\textbf{x}|\theta) $ belongs to the exponential family. In fact, we have to

$$f(\textbf{x}|\theta) = \prod_{i=1}^nf(x_i|\theta) = \prod_{i=1}^n\theta^{x_i}(1-\theta)^{1-x_i}=\theta^{\sum_{i=1}^nx_i}(1-\theta)^{n-\sum_{i=1}^nx_i}$$

and then

$$f(\textbf{x}|\theta) = \exp\left \lbrace \sum_{i=1}^nx_i\log(\theta)+\left(n-\sum_{i=1}^nx_i\right)\log(1-\theta)\right \rbrace = \exp\left \lbrace n\bar{x}\log\left(\frac{\theta}{1-\theta}\right)+n\log(1-\theta)\right \rbrace ,$$

where we conclude, from Theorem 3.1.1.3, that $ T(\textbf{X}) = \overline{X} $ is enough of a statistic to $ \theta $. Furthermore, as $ 0 \ < \ \theta \ \ < \ 1 $, and then, the parameter space $ \Theta $ contains an open set of $ \mathbb{R} $ and therefore it follows from Theorem 3.1.1.6, that $ T(\textbf{X}) $ is also a complete statistic for $ \theta $. Now consider the statistics $ S(\textbf{X}) $ given by

$$S(\textbf{X}) = \frac{n}{n-1}\overline{X}(1-\overline{X})$$

which is a function of $ T(\textbf{X}) $. We have to

$$\mathbb{E}(S(\textbf{X})) = \frac{n}{n-1}\mathbb{E}(\overline{X}-\overline{X}^2) = \frac{n}{n-1}\left[\mathbb{E}(\overline{X})-\text{Var}(\overline{X})-\mathbb{E}^2(\overline{X})\right]$$

and then

$$\mathbb{E}(S(\textbf{X}))=\frac{n}{n-1}\left[\theta-\frac{\theta(1-\theta)}{n}-\theta^2\right] = \frac{n}{n-1}\left[\frac{n-1}{n}(\theta(1-\theta))\right] = \theta(1-\theta).$$

from which we conclude that $ S(\textbf{X}) = \frac{n}{n-1}\overline{X}(1-\overline{X}) $ is an unbiased estimator of $ \psi(\theta) = \theta(1-\theta) $ and therefore it follows from the Lehmann-Scheffé Theorem that $ S(\textbf{X}) $ is the only ENVVUM for $ \theta(1-\theta) $.

Last modified 13.10.2026: ajuste das numerações (e4440012)
↑