Skip to main content
added 87 characters in body
Source Link
Scortchi
  • 31.6k
  • 8
  • 102
  • 281

"When in reality, the MLE is far away from the parameter value assuming the null hypothesis"—if distance of the maximum-likelihood estimate from the null is your measure of discrepancy with the null then you can use it as your test statistic. The point of the score test is to maximize power against alternatives close to the null (when the M.L.E oughtn't to be too far away).

Consider, say, a single observation $x$ from a Cauchy distribution with unknown location parameter.The log likelihood, score, & the 2nd derivative of the log likelihood are given by $$ \begin{align} \ell(\mu;x) &= -\log(1+(x-\mu)^2)\\ \frac{\operatorname{d}\ell(\mu;x)}{\operatorname{d}\mu} &= \frac{2(x-\mu)}{1+(x-\mu)^2}\\ \frac{\operatorname{d}^2\ell(\mu;x)}{(\operatorname{d}\mu)^2} &= \frac{1}{1+(x-\mu)^2} - \frac{2(x-\mu)^2}{(1+(x-\mu)^2)^2}\\ &=\frac{1-(x-\mu)^2}{(1+(x-\mu)^2)^2} \end{align} $$

The M.L.E. is obviously given by $\hat\mu=x$; note also the inflection points in the log likelihood at $x\pm 1$ & the corresponding minimum & maximum of the score.

Plot of likelihood, score, & 2nd derivative of the log likelihood for x=1.33

For a test of $H_0: \mu = \mu_0$ vs $H_1: \mu = \mu_1 = \mu_0 + k, k>0$, as any observation $x\gg k$ is only marginally more probable under the null than the alternative, the log likelihood ratio $\ell(\mu_1;x) - \ell(\mu_0;x)$ as a function of $x$ increases to a maximum & then decreases asymptotically to zero. But as $k\rightarrow 0$ a limit is approached, proportional to the score.

enter image description here

Therefore there's no uniformly most powerful test of $H_0: \mu = \mu_0$ vs $H_1: \mu > \mu_0$, & a locally most-powerful test might be what's wanted—trading off power against distant alternatives for power against near ones. (Or if not, the generalized likelihood test statistic $\ell(\hat\mu;x)- \ell(\mu_0;x)$ is a monotonic function of $x$ for $\hat\mu>\mu_0$.)

In other cases, say i.i.d. observations following a Poisson distribution, the score & generalized likelihood ratio will order the sufficient statistic identically (for one sided tests at any rate), so the exact tests will be equivalent. If you're relying on an asymptotic approximation to the distribution then you'll get somewhat different results with the two as kjetil's answer points out.


† By the Neyman–Pearson Lemma, the most powerful test of a point null $H_0: \theta= \theta_0$ against a point alternative $H_1: \theta= \theta_0 + \delta$ is given by the log likelihood ratio

$$\ell(\theta_0 +\delta;x) - \ell(\theta_0;x)$$

A Taylor expansion of the log likelihood under the alternative around $\theta_0$ gives

$$\ell(\theta_0 +\delta;x) \approx \ell(\theta_0;x) + \delta \cdot\left.\frac{\operatorname{d}\ell(\theta;x)}{\operatorname{d}\theta}\right|_{\theta=\theta_0}$$

& so for small $\delta$ the log likelihood ratio becomes proportional to the score.

‡ A root of $x^2 - (\mu_0 + \mu_1)x + (\mu_0 \mu_1 - 1)$.

"When in reality, the MLE is far away from the parameter value assuming the null hypothesis"—if distance of the maximum-likelihood estimate from the null is your measure of discrepancy with the null then you can use it as your test statistic. The point of the score test is to maximize power against alternatives close to the null (when the M.L.E oughtn't to be too far away).

Consider, say, a single observation $x$ from a Cauchy distribution with unknown location parameter.The log likelihood, score, & the 2nd derivative of the log likelihood are given by $$ \begin{align} \ell(\mu;x) &= -\log(1+(x-\mu)^2)\\ \frac{\operatorname{d}\ell(\mu;x)}{\operatorname{d}\mu} &= \frac{2(x-\mu)}{1+(x-\mu)^2}\\ \frac{\operatorname{d}^2\ell(\mu;x)}{(\operatorname{d}\mu)^2} &= \frac{1}{1+(x-\mu)^2} - \frac{2(x-\mu)^2}{(1+(x-\mu)^2)^2}\\ &=\frac{1-(x-\mu)^2}{(1+(x-\mu)^2)^2} \end{align} $$

The M.L.E. is obviously given by $\hat\mu=x$; note also the inflection points in the log likelihood at $x\pm 1$ & the corresponding minimum & maximum of the score.

Plot of likelihood, score, & 2nd derivative of the log likelihood for x=1.33

For a test of $H_0: \mu = \mu_0$ vs $H_1: \mu = \mu_1 = \mu_0 + k, k>0$, as any observation $x\gg k$ is only marginally more probable under the null than the alternative, the log likelihood ratio $\ell(\mu_1;x) - \ell(\mu_0;x)$ as a function of $x$ increases to a maximum & then decreases asymptotically to zero. But as $k\rightarrow 0$ a limit is approached, proportional to the score.

enter image description here

Therefore there's no uniformly most powerful test of $H_0: \mu = \mu_0$ vs $H_1: \mu > \mu_0$, & a locally most-powerful test might be what's wanted—trading off power against distant alternatives for power against near ones. (Or if not, the generalized likelihood test statistic $\ell(\hat\mu;x)- \ell(\mu_0;x)$ is a monotonic function of $x$ for $\hat\mu>\mu_0$.)

In other cases, say i.i.d. observations following a Poisson distribution, the score & generalized likelihood ratio will order the sufficient statistic identically (for one sided tests at any rate), so the exact tests will be equivalent. If you're relying on an asymptotic approximation to the distribution then you'll get somewhat different results with the two as kjetil's answer points out.


† By the Neyman–Pearson Lemma, the most powerful test of a point null $H_0: \theta= \theta_0$ against a point alternative $H_1: \theta= \theta_0 + \delta$ is given by the log likelihood ratio

$$\ell(\theta_0 +\delta;x) - \ell(\theta_0;x)$$

A Taylor expansion of the log likelihood under the alternative around $\theta_0$ gives

$$\ell(\theta_0 +\delta;x) \approx \ell(\theta_0;x) + \delta \cdot\left.\frac{\operatorname{d}\ell(\theta;x)}{\operatorname{d}\theta}\right|_{\theta=\theta_0}$$

& so for small $\delta$ the log likelihood ratio becomes proportional to the score.

"When in reality, the MLE is far away from the parameter value assuming the null hypothesis"—if distance of the maximum-likelihood estimate from the null is your measure of discrepancy with the null then you can use it as your test statistic. The point of the score test is to maximize power against alternatives close to the null (when the M.L.E oughtn't to be too far away).

Consider, say, a single observation $x$ from a Cauchy distribution with unknown location parameter.The log likelihood, score, & the 2nd derivative of the log likelihood are given by $$ \begin{align} \ell(\mu;x) &= -\log(1+(x-\mu)^2)\\ \frac{\operatorname{d}\ell(\mu;x)}{\operatorname{d}\mu} &= \frac{2(x-\mu)}{1+(x-\mu)^2}\\ \frac{\operatorname{d}^2\ell(\mu;x)}{(\operatorname{d}\mu)^2} &= \frac{1}{1+(x-\mu)^2} - \frac{2(x-\mu)^2}{(1+(x-\mu)^2)^2}\\ &=\frac{1-(x-\mu)^2}{(1+(x-\mu)^2)^2} \end{align} $$

The M.L.E. is obviously given by $\hat\mu=x$; note also the inflection points in the log likelihood at $x\pm 1$ & the corresponding minimum & maximum of the score.

Plot of likelihood, score, & 2nd derivative of the log likelihood for x=1.33

For a test of $H_0: \mu = \mu_0$ vs $H_1: \mu = \mu_1 = \mu_0 + k, k>0$, as any observation $x\gg k$ is only marginally more probable under the null than the alternative, the log likelihood ratio $\ell(\mu_1;x) - \ell(\mu_0;x)$ as a function of $x$ increases to a maximum & then decreases asymptotically to zero. But as $k\rightarrow 0$ a limit is approached, proportional to the score.

enter image description here

Therefore there's no uniformly most powerful test of $H_0: \mu = \mu_0$ vs $H_1: \mu > \mu_0$, & a locally most-powerful test might be what's wanted—trading off power against distant alternatives for power against near ones. (Or if not, the generalized likelihood test statistic $\ell(\hat\mu;x)- \ell(\mu_0;x)$ is a monotonic function of $x$ for $\hat\mu>\mu_0$.)

In other cases, say i.i.d. observations following a Poisson distribution, the score & generalized likelihood ratio will order the sufficient statistic identically (for one sided tests at any rate), so the exact tests will be equivalent. If you're relying on an asymptotic approximation to the distribution then you'll get somewhat different results with the two as kjetil's answer points out.


† By the Neyman–Pearson Lemma, the most powerful test of a point null $H_0: \theta= \theta_0$ against a point alternative $H_1: \theta= \theta_0 + \delta$ is given by the log likelihood ratio

$$\ell(\theta_0 +\delta;x) - \ell(\theta_0;x)$$

A Taylor expansion of the log likelihood under the alternative around $\theta_0$ gives

$$\ell(\theta_0 +\delta;x) \approx \ell(\theta_0;x) + \delta \cdot\left.\frac{\operatorname{d}\ell(\theta;x)}{\operatorname{d}\theta}\right|_{\theta=\theta_0}$$

& so for small $\delta$ the log likelihood ratio becomes proportional to the score.

‡ A root of $x^2 - (\mu_0 + \mu_1)x + (\mu_0 \mu_1 - 1)$.

deleted 2 characters in body
Source Link
Scortchi
  • 31.6k
  • 8
  • 102
  • 281

"When in reality, the MLE is far away from the parameter value assuming the null hypothesis"—if distance of the M.L.E.maximum-likelihood estimate from the null is your measure of discrepancy with the null then you can use it as your test statistic. The point of the score test is to maximize power against alternatives close to the null (when the M.L.E oughtn't to be too far away).

Consider, say, a single observation $x$ from a Cauchy distribution with unknown location parameter.The log likelihood, score, & the 2nd derivative of the log likelihood are given by $$ \begin{align} \ell(\mu;x) &= -\log(1+(x-\mu)^2)\\ \frac{\operatorname{d}\ell(\mu;x)}{\operatorname{d}\mu} &= \frac{2(x-\mu)}{1+(x-\mu)^2}\\ \frac{\operatorname{d}^2\ell(\mu;x)}{(\operatorname{d}\mu)^2} &= \frac{1}{1+(x-\mu)^2} - \frac{2(x-\mu)^2}{(1+(x-\mu)^2)^2}\\ &=\frac{1-(x-\mu)^2}{(1+(x-\mu)^2)^2} \end{align} $$

The M.L.E. is obviously given by $\hat\mu=x$; note also the inflection points in the log likelihood at $x\pm 1$ & the corresponding minimum & maximum of the score.

Plot of likelihood, score, & 2nd derivative of the log likelihood for x=1.33

For a test of $H_0: \mu = \mu_0$ vs $H_1: \mu = \mu_1 = \mu_0 + k, k>0$, as any observation $x\gg k$ is only marginally more probable under the null than the alternative, the log likelihood ratio $\ell(\mu_1;x) - \ell(\mu_0;x)$ as a function of $x$ increases to a maximum & then decreases asymptotically to zero. But as $k\rightarrow 0$ a limit is approached, proportional to the score.

enter image description here

Therefore there's no uniformly most powerful test of $H_0: \mu = \mu_0$ vs $H_1: \mu > \mu_0$, & a locally most-powerful test might be what's wanted—trading off power against distant alternatives for power against near ones. (Or if not, the generalized likelihood test statistic $\ell(\hat\mu;x)- \ell(\mu_0;x)$ is a monotonic function of $x$ for $\hat\mu>\mu_0$.)

In other cases, say i.i.d. observations following a Poisson distribution, the score & generalized likelihood ratio will order the sufficient statistic identically (for one sided tests at any rate), so the exact tests will be equivalent. If you're relying on an asymptotic approximation to the distribution then you'll get somewhat different results with the two as kjetil's answer points out.


† By the Neyman–Pearson Lemma, the most powerful test of a point null $H_0: \theta= \theta_0$ against a point alternative $H_1: \theta= \theta_0 + \delta$ is given by the log likelihood ratio

$$\ell(\theta_0 +\delta;x) - \ell(\theta_0;x)$$

A Taylor expansion of the log likelihood under the alternative around $\theta_0$ gives

$$\ell(\theta_0 +\delta;x) \approx \ell(\theta_0;x) + \delta \cdot\left.\frac{\operatorname{d}\ell(\theta;x)}{\operatorname{d}\theta}\right|_{\theta=\theta_0}$$

& so for small $\delta$ the log likelihood ratio becomes proportional to the score.

"When in reality, the MLE is far away from the parameter value assuming the null hypothesis"—if distance of the M.L.E. from the null is your measure of discrepancy with the null then you can use it as your test statistic. The point of the score test is to maximize power against alternatives close to the null (when the M.L.E oughtn't to be too far away).

Consider, say, a single observation $x$ from a Cauchy distribution with unknown location parameter.The log likelihood, score, & the 2nd derivative of the log likelihood are given by $$ \begin{align} \ell(\mu;x) &= -\log(1+(x-\mu)^2)\\ \frac{\operatorname{d}\ell(\mu;x)}{\operatorname{d}\mu} &= \frac{2(x-\mu)}{1+(x-\mu)^2}\\ \frac{\operatorname{d}^2\ell(\mu;x)}{(\operatorname{d}\mu)^2} &= \frac{1}{1+(x-\mu)^2} - \frac{2(x-\mu)^2}{(1+(x-\mu)^2)^2}\\ &=\frac{1-(x-\mu)^2}{(1+(x-\mu)^2)^2} \end{align} $$

The M.L.E. is obviously given by $\hat\mu=x$; note also the inflection points in the log likelihood at $x\pm 1$ & the corresponding minimum & maximum of the score.

Plot of likelihood, score, & 2nd derivative of the log likelihood for x=1.33

For a test of $H_0: \mu = \mu_0$ vs $H_1: \mu = \mu_1 = \mu_0 + k, k>0$, as any observation $x\gg k$ is only marginally more probable under the null than the alternative, the log likelihood ratio $\ell(\mu_1;x) - \ell(\mu_0;x)$ as a function of $x$ increases to a maximum & then decreases asymptotically to zero. But as $k\rightarrow 0$ a limit is approached, proportional to the score.

enter image description here

Therefore there's no uniformly most powerful test of $H_0: \mu = \mu_0$ vs $H_1: \mu > \mu_0$, & a locally most-powerful test might be what's wanted—trading off power against distant alternatives for power against near ones.

In other cases, say i.i.d. observations following a Poisson distribution, the score & likelihood ratio will order the sufficient statistic identically (for one sided tests at any rate), so the exact tests will be equivalent. If you're relying on an asymptotic approximation to the distribution then you'll get somewhat different results with the two as kjetil's answer points out.


† By the Neyman–Pearson Lemma, the most powerful test of a point null $H_0: \theta= \theta_0$ against a point alternative $H_1: \theta= \theta_0 + \delta$ is given by the log likelihood ratio

$$\ell(\theta_0 +\delta;x) - \ell(\theta_0;x)$$

A Taylor expansion of the log likelihood under the alternative around $\theta_0$ gives

$$\ell(\theta_0 +\delta;x) \approx \ell(\theta_0;x) + \delta \cdot\left.\frac{\operatorname{d}\ell(\theta;x)}{\operatorname{d}\theta}\right|_{\theta=\theta_0}$$

& so for small $\delta$ the log likelihood ratio becomes proportional to the score.

"When in reality, the MLE is far away from the parameter value assuming the null hypothesis"—if distance of the maximum-likelihood estimate from the null is your measure of discrepancy with the null then you can use it as your test statistic. The point of the score test is to maximize power against alternatives close to the null (when the M.L.E oughtn't to be too far away).

Consider, say, a single observation $x$ from a Cauchy distribution with unknown location parameter.The log likelihood, score, & the 2nd derivative of the log likelihood are given by $$ \begin{align} \ell(\mu;x) &= -\log(1+(x-\mu)^2)\\ \frac{\operatorname{d}\ell(\mu;x)}{\operatorname{d}\mu} &= \frac{2(x-\mu)}{1+(x-\mu)^2}\\ \frac{\operatorname{d}^2\ell(\mu;x)}{(\operatorname{d}\mu)^2} &= \frac{1}{1+(x-\mu)^2} - \frac{2(x-\mu)^2}{(1+(x-\mu)^2)^2}\\ &=\frac{1-(x-\mu)^2}{(1+(x-\mu)^2)^2} \end{align} $$

The M.L.E. is obviously given by $\hat\mu=x$; note also the inflection points in the log likelihood at $x\pm 1$ & the corresponding minimum & maximum of the score.

Plot of likelihood, score, & 2nd derivative of the log likelihood for x=1.33

For a test of $H_0: \mu = \mu_0$ vs $H_1: \mu = \mu_1 = \mu_0 + k, k>0$, as any observation $x\gg k$ is only marginally more probable under the null than the alternative, the log likelihood ratio $\ell(\mu_1;x) - \ell(\mu_0;x)$ as a function of $x$ increases to a maximum & then decreases asymptotically to zero. But as $k\rightarrow 0$ a limit is approached, proportional to the score.

enter image description here

Therefore there's no uniformly most powerful test of $H_0: \mu = \mu_0$ vs $H_1: \mu > \mu_0$, & a locally most-powerful test might be what's wanted—trading off power against distant alternatives for power against near ones. (Or if not, the generalized likelihood test statistic $\ell(\hat\mu;x)- \ell(\mu_0;x)$ is a monotonic function of $x$ for $\hat\mu>\mu_0$.)

In other cases, say i.i.d. observations following a Poisson distribution, the score & generalized likelihood ratio will order the sufficient statistic identically (for one sided tests at any rate), so the exact tests will be equivalent. If you're relying on an asymptotic approximation to the distribution then you'll get somewhat different results with the two as kjetil's answer points out.


† By the Neyman–Pearson Lemma, the most powerful test of a point null $H_0: \theta= \theta_0$ against a point alternative $H_1: \theta= \theta_0 + \delta$ is given by the log likelihood ratio

$$\ell(\theta_0 +\delta;x) - \ell(\theta_0;x)$$

A Taylor expansion of the log likelihood under the alternative around $\theta_0$ gives

$$\ell(\theta_0 +\delta;x) \approx \ell(\theta_0;x) + \delta \cdot\left.\frac{\operatorname{d}\ell(\theta;x)}{\operatorname{d}\theta}\right|_{\theta=\theta_0}$$

& so for small $\delta$ the log likelihood ratio becomes proportional to the score.

deleted 2 characters in body
Source Link
Scortchi
  • 31.6k
  • 8
  • 102
  • 281

"When in reality, the MLE is far away from the parameter value assuming the null hypothesis"—if distance of the M.L.E. from the null is your measure of discrepancy with the null then you can use it as your test statistic. The point of the score test is to maximize power against alternatives close to the null (when the M.L.E oughtn't to be too far away).

Consider, say, a single observation $x$ from a Cauchy distribution with unknown location parameter.The log likelihood, score, & the 2nd derivative of the log likelihood are given by $$ \begin{align} \ell(\mu;x) &= -\log(1+(x-\mu)^2)\\ \frac{\operatorname{d}\ell(\mu;x)}{\operatorname{d}\mu} &= \frac{2(x-\mu)}{1+(x-\mu)^2}\\ \frac{\operatorname{d}^2\ell(\mu;x)}{(\operatorname{d}\mu)^2} &= \frac{1}{1+(x-\mu)^2} - \frac{2(x-\mu)^2}{(1+(x-\mu)^2)^2}\\ &=\frac{1-(x-\mu)^2}{(1+(x-\mu)^2)^2} \end{align} $$

The M.L.E. is obviously given by $\hat\mu=x$; note also the inflection points in the log likelihood at $x\pm 1$ & the corresponding minimum & maximum of the score.

Plot of likelihood, score, & 2nd derivative of the log likelihood for x=1.33

For a test of $H_0: \mu = \mu_0$ vs $H_1: \mu = \mu_1 = \mu_0 + k, k>0$, as any observation $x\gg k$ is only marginally more probable under the null than the alternative, the log likelihood ratio $$\ell(\mu_1;x) - \ell(\mu_0;x)$$$\ell(\mu_1;x) - \ell(\mu_0;x)$ as a function of $x$ increases to a maximum & then decreases asymptotically to zero. But as $k\rightarrow 0$ a limit is approached, proportional to the score.

enter image description here

Therefore there's no uniformly most powerful test of $H_0: \mu = \mu_0$ vs $H_1: \mu > \mu_0$, & a locally most-powerful test might be what's wanted—trading off power against distant alternatives for power against near ones.

In other cases, say i.i.d. observations following a Poisson distribution, the score & likelihood ratio will order the sufficient statistic identically (for one sided tests at any rate), so the exact tests will be equivalent. If you're relying on an asymptotic approximation to the distribution then you'll get somewhat different results with the two as kjetil's answer points out.


† By the Neyman–Pearson Lemma, the most powerful test of a point null $H_0: \theta= \theta_0$ against a point alternative $H_1: \theta= \theta_0 + \delta$ is given by the log likelihood ratio

$$\ell(\theta_0 +\delta;x) - \ell(\theta_0;x)$$

A Taylor expansion of the log likelihood under the alternative around $\theta_0$ gives

$$\ell(\theta_0 +\delta;x) \approx \ell(\theta_0;x) + \delta \cdot\left.\frac{\operatorname{d}\ell(\theta;x)}{\operatorname{d}\theta}\right|_{\theta=\theta_0}$$

& so for small $\delta$ the log likelihood ratio becomes proportional to the score.

"When in reality, the MLE is far away from the parameter value assuming the null hypothesis"—if distance of the M.L.E. from the null is your measure of discrepancy with the null then you can use it as your test statistic. The point of the score test is to maximize power against alternatives close to the null (when the M.L.E oughtn't to be too far away).

Consider, say, a single observation $x$ from a Cauchy distribution with unknown location parameter.The log likelihood, score, & the 2nd derivative of the log likelihood are given by $$ \begin{align} \ell(\mu;x) &= -\log(1+(x-\mu)^2)\\ \frac{\operatorname{d}\ell(\mu;x)}{\operatorname{d}\mu} &= \frac{2(x-\mu)}{1+(x-\mu)^2}\\ \frac{\operatorname{d}^2\ell(\mu;x)}{(\operatorname{d}\mu)^2} &= \frac{1}{1+(x-\mu)^2} - \frac{2(x-\mu)^2}{(1+(x-\mu)^2)^2}\\ &=\frac{1-(x-\mu)^2}{(1+(x-\mu)^2)^2} \end{align} $$

The M.L.E. is obviously given by $\hat\mu=x$; note also the inflection points in the log likelihood at $x\pm 1$ & the corresponding minimum & maximum of the score.

Plot of likelihood, score, & 2nd derivative of the log likelihood for x=1.33

For a test of $H_0: \mu = \mu_0$ vs $H_1: \mu = \mu_1 = \mu_0 + k, k>0$, as any observation $x\gg k$ is only marginally more probable under the null than the alternative, the log likelihood ratio $$\ell(\mu_1;x) - \ell(\mu_0;x)$$ as a function of $x$ increases to a maximum & then decreases asymptotically to zero. But as $k\rightarrow 0$ a limit is approached, proportional to the score.

enter image description here

Therefore there's no uniformly most powerful test of $H_0: \mu = \mu_0$ vs $H_1: \mu > \mu_0$, & a locally most-powerful test might be what's wanted—trading off power against distant alternatives for power against near ones.

In other cases, say i.i.d. observations following a Poisson distribution, the score & likelihood ratio will order the sufficient statistic identically (for one sided tests at any rate), so the exact tests will be equivalent. If you're relying on an asymptotic approximation to the distribution then you'll get somewhat different results with the two as kjetil's answer points out.


† By the Neyman–Pearson Lemma, the most powerful test of a point null $H_0: \theta= \theta_0$ against a point alternative $H_1: \theta= \theta_0 + \delta$ is given by the log likelihood ratio

$$\ell(\theta_0 +\delta;x) - \ell(\theta_0;x)$$

A Taylor expansion of the log likelihood under the alternative around $\theta_0$ gives

$$\ell(\theta_0 +\delta;x) \approx \ell(\theta_0;x) + \delta \cdot\left.\frac{\operatorname{d}\ell(\theta;x)}{\operatorname{d}\theta}\right|_{\theta=\theta_0}$$

& so for small $\delta$ the log likelihood ratio becomes proportional to the score.

"When in reality, the MLE is far away from the parameter value assuming the null hypothesis"—if distance of the M.L.E. from the null is your measure of discrepancy with the null then you can use it as your test statistic. The point of the score test is to maximize power against alternatives close to the null (when the M.L.E oughtn't to be too far away).

Consider, say, a single observation $x$ from a Cauchy distribution with unknown location parameter.The log likelihood, score, & the 2nd derivative of the log likelihood are given by $$ \begin{align} \ell(\mu;x) &= -\log(1+(x-\mu)^2)\\ \frac{\operatorname{d}\ell(\mu;x)}{\operatorname{d}\mu} &= \frac{2(x-\mu)}{1+(x-\mu)^2}\\ \frac{\operatorname{d}^2\ell(\mu;x)}{(\operatorname{d}\mu)^2} &= \frac{1}{1+(x-\mu)^2} - \frac{2(x-\mu)^2}{(1+(x-\mu)^2)^2}\\ &=\frac{1-(x-\mu)^2}{(1+(x-\mu)^2)^2} \end{align} $$

The M.L.E. is obviously given by $\hat\mu=x$; note also the inflection points in the log likelihood at $x\pm 1$ & the corresponding minimum & maximum of the score.

Plot of likelihood, score, & 2nd derivative of the log likelihood for x=1.33

For a test of $H_0: \mu = \mu_0$ vs $H_1: \mu = \mu_1 = \mu_0 + k, k>0$, as any observation $x\gg k$ is only marginally more probable under the null than the alternative, the log likelihood ratio $\ell(\mu_1;x) - \ell(\mu_0;x)$ as a function of $x$ increases to a maximum & then decreases asymptotically to zero. But as $k\rightarrow 0$ a limit is approached, proportional to the score.

enter image description here

Therefore there's no uniformly most powerful test of $H_0: \mu = \mu_0$ vs $H_1: \mu > \mu_0$, & a locally most-powerful test might be what's wanted—trading off power against distant alternatives for power against near ones.

In other cases, say i.i.d. observations following a Poisson distribution, the score & likelihood ratio will order the sufficient statistic identically (for one sided tests at any rate), so the exact tests will be equivalent. If you're relying on an asymptotic approximation to the distribution then you'll get somewhat different results with the two as kjetil's answer points out.


† By the Neyman–Pearson Lemma, the most powerful test of a point null $H_0: \theta= \theta_0$ against a point alternative $H_1: \theta= \theta_0 + \delta$ is given by the log likelihood ratio

$$\ell(\theta_0 +\delta;x) - \ell(\theta_0;x)$$

A Taylor expansion of the log likelihood under the alternative around $\theta_0$ gives

$$\ell(\theta_0 +\delta;x) \approx \ell(\theta_0;x) + \delta \cdot\left.\frac{\operatorname{d}\ell(\theta;x)}{\operatorname{d}\theta}\right|_{\theta=\theta_0}$$

& so for small $\delta$ the log likelihood ratio becomes proportional to the score.

added 304 characters in body
Source Link
Scortchi
  • 31.6k
  • 8
  • 102
  • 281
Loading
added 722 characters in body
Source Link
Scortchi
  • 31.6k
  • 8
  • 102
  • 281
Loading
added 1 character in body
Source Link
Scortchi
  • 31.6k
  • 8
  • 102
  • 281
Loading
Added derivation of score test in footnote
Source Link
Scortchi
  • 31.6k
  • 8
  • 102
  • 281
Loading
Source Link
Scortchi
  • 31.6k
  • 8
  • 102
  • 281
Loading