1.9 Wald’s test
Another way to measure if \(\hat\theta\) agrees with the null hypothesis is to calculate \(\hat\theta - \theta_0\). If this is large, in absolute value, the test should reject the null hypothesis. We have already seen that, under the assumption of \(H_0\)
where the standard deviation can be calculated as \[ Sd(\hat\theta) = (n\hat I(\hat\theta))^{-1/2}. \] Therefore the test can be done by comparing the left hand-side with the appropriate quantile of the Normal distribution. Note that this implies also that \[ \frac{(\hat \theta - \theta_0)^2}{Var(\hat\theta)} \overset{asym.}{\sim} \chi^2_1, \] which is similar to Wilks’ test.
Let us apply this again to the exponential distribution. We have already seen that \(I(\lambda) = 1/\lambda^2\) and so the standard deviation is: \[ Sd(\hat \lambda) = \frac{\hat\lambda}{\sqrt n}. \] Since we have a two-sided test, the test statistic is: \[ \frac{\left| \hat\lambda - \lambda_0 \right|}{\hat\lambda / \sqrt n }. \]
## [1] 1.41103
This is now compared to \(z_{\alpha/2}=\) 1.96 if \(\alpha = 0.05\) and so we do not reject \(H_0\). The p-value is:
## [1] 0.1582359
Here we found the standard deviation of \(\hat \lambda\) by knowing the asymptotic distribution of the MLE. It is also possible to calculate this directly from the delta method. That is, we know that \[\begin{align} E\left[ T\right] &= \frac{1}{\lambda},\\ Var\left( T \right) &= \frac{1}{\lambda^2}. \end{align}\] So by the central limit theorem (\(\bar t\) is a sum of random variables): \[ \sqrt n (\bar t - 1/\lambda) \overset{asym.}{\sim} N(0,1/\lambda^2). \] If \(f(x)=1/x\), then \(\hat\lambda = f(\bar t) = 1/\bar t\) and applying the delta method gives, \[ \sqrt n (\hat\lambda - \lambda) \overset{asym.}{\sim} N(0,f'(\bar t)^2/\lambda^2) = N(0,f'(1/\lambda)^2/\lambda^2) = N(0,\lambda^2). \] This agrees with what we obtained previously.