<p>The model is</p>

<p>$$y_t = \beta +u_t,\;\; u_t\sim N(0, \sigma^2),\; t=1,...,n$$</p>

<p>and the sample is independent. The estimator is</p>

<p>$$\hat \beta = \frac1n\sum_{t=1}^n y_t = \frac1n\sum_{t=1}^n (\beta +u_t) = \beta + \frac1n\sum_{t=1}^n u_t$$</p>

<p>If $\beta = \beta_1$ (where $\beta_1$ is some value different than the $\beta_0$ we set as the null hypothesis), then the authors set $\frac1n\sum_{t=1}^n u_t \equiv \hat \gamma$ and so they write that under the alternative we have</p>

<p>$$\hat \beta = \beta_1 +\hat \gamma$$</p>

<p>Since the $u'$ are i.i.d normal their sum/average is also normal. Then the distribution of the estimator is</p>

<p>$$\hat \beta \sim N(\beta, \sigma^2/n)$$</p>

<p>Assume we set as our null hypothesis that $H_0:\beta = \beta_0$. and the alternative $H_1:\beta \neq \beta_0$.</p>

<p>Then we form the statistic (which is a function of the estimator, not the estimator itself)</p>

<p>$$z = \frac{\hat \beta - \beta_0}{\sigma/ \sqrt{n}}$$</p>

<p>The distribution of this statistic is (<em>before</em> specifying any hypothesis to test)</p>

<p>$$z \sim N\left(\frac{\beta - \beta_0}{\sigma /\sqrt{n}},1\right)$$</p>

<p>Assume that we pose as our null hypothesis that $H_0: \beta = \beta_0$. Then if the null hypothesis is true we get</p>

<p>$$z|_{H_0} \sim N\left(0,1\right)$$</p>

<p>If the alternative is true then we substitute for $\hat \beta$ to get</p>

<p>$$z|_{H_1} = \frac{\beta_1 +\hat \gamma - \beta_0}{\sigma /\sqrt{n}} = \frac{\beta_1 - \beta_0}{\sigma \sqrt{n}}+\frac{\hat \gamma }{\sigma /\sqrt{n}}$$</p>

<p>The first term is a constant, the second term is a standard normal r.v. (remember what $\hat \gamma$ stands for). So the distribution of the statistic <em>under the alternative</em> is</p>

<p>$$z|_{H_1} \sim N\left(\frac{\beta_1 - \beta_0}{\sigma /\sqrt{n}},1\right)$$</p>

<p>and the authors write</p>

<p>$$\lambda \equiv \frac{\beta_1 - \beta_0}{\sigma /\sqrt{n}}$$</p>

CC BY-SA 3.0
2016-05-16T17:36:28.340Z
2016-05-16T17:36:28.340Z
Alecos Papadopoulos
<p>Reading the book, $z=\frac{\hat\beta-\beta_0}{(\sigma^2/n)^{(1/2)}}$</p>

<p>The distribution of $z$ under $H_0$ will determine the critical values for a given level of significance $\alpha$, i.e. it will determine the probability of Type I errors (prob of rejecting the null, when null is true).</p>

<p>The distribution of $z$ under $H_1$ (4.04) will define the probability of Type II errors(not rejecting null when alternative is the true hypothesis). </p>

<p>The closer - the averages are close - the distributions of z under the null and the alternative are, the higher is the probability of Type II errors.
In the picture below, we have several pdf for normal distributions. In blue, the distribution has zero mean; in red mean 1; and in yellow mean 2. </p>

<p><a href="https://i.sstatic.net/YC6nL.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/YC6nL.png" alt="enter image description here"></a></p>

<p>At the usual critical values of $1.96$ and $-1.96$ (for an $\alpha=0.05$), we can see a vertical line. When we're on the blue curve, i.e. under the null, we can calculate the prob of type I error, as the area to the right of the rightmost vertical line, to the left of the leftmost vertical line and below the blue line. </p>

<p>To calculate the type II error, we check in the interval between the vertical lines(not rejecting $H_0$ area), under the red or yellow curve, depending on the values that $\beta$ really takes.
Notice that the area below such a curve will increase the closer the curve is to the one under the null distribution. In this case, the prob of type II error is greatest is when the alternative is the true model and the mean of the distribution is 1.</p>

<p>By deducing the distribution of z under the alternative, the authors want to give an idea of the type of rejection region one will get, when doing inference in this setting.</p>

CC BY-SA 3.0
2016-05-16T16:17:47.797Z
2016-05-16T16:37:18.187Z
2016-05-16T16:37:18.187Z
An old man in the sea.
<p>I have been reading Davidson's Econometric theory and methods and I cannot understand one particular paragraph about the distribution of a test statistic.In the paragraph below he says that under the alternative hypothesis if the true $\beta$ is equal to $\beta_1$ then $\hat b= \beta_1+\hat\gamma$. Then he defines $z=(\beta_1+\hat\gamma-\beta_0)/(\sigma^2/\nu)$ and finds the mean and variance as given by 4.04. Why is he doing that? I understand how he gets the mean and variance but I don't get why is he doing that because at the end we dont get a standard normal variable but a variable with mean $\lambda$ and variance 1.<a href="https://i.sstatic.net/r8wtR.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/r8wtR.png" alt="enter image description here"></a></p>

<p>I have been stuck here for a while so any help would be highly appreciated.</p>

CC BY-SA 3.0
2016-05-16T07:59:18.473Z
Without (4.01) not much can be said about what you posted.
MathUser
CC BY-SA 3.0
2016-05-16T15:54:51.100Z
@Ronaldo777, Are you sure that z is as define here? I've edited you post, but the original doesn't seem to be correct either...
An old man in the sea.
<econometrics>
Distrubtion of a test statistic under the alternative hypothesis
Ronaldo777
# Distrubtion of a test statistic under the alternative hypothesis

(Asked by: username_0 on 2016-05-14)

I have been reading Davidson's Econometric theory and methods and I cannot understand one particular paragraph about the distribution of a test statistic.In the paragraph below he says that under the alternative hypothesis if the true $\beta$ is equal to $\beta\_1$ then $\hat b= \beta\_1+\hat\gamma$. Then he defines $z=(\beta\_1+\hat\gamma-\beta\_0)/(\sigma^2/\nu)$ and finds the mean and variance as given by 4.04. Why is he doing that? I understand how he gets the mean and variance but I don't get why is he doing that because at the end we dont get a standard normal variable but a variable with mean $\lambda$ and variance 1.[![enter image description here](https://i.sstatic.net/r8wtR.png)](https://i.sstatic.net/r8wtR.png)

I have been stuck here for a while so any help would be highly appreciated.

**Tags:** econometrics

> **Comments:**
> **username_1**: Without (4.01) not much can be said about what you posted.  
> **username_2**: @username_0, Are you sure that z is as define here? I've edited you post, but the original doesn't seem to be correct either...  

---

## 2 answers

### Answer by username_3 on 2016-05-16. Score: 1

The model is

$$y\_t = \beta +u\_t,\;\; u\_t\sim N(0, \sigma^2),\; t=1,...,n$$

and the sample is independent. The estimator is

$$\hat \beta = \frac1n\sum\_{t=1}^n y\_t = \frac1n\sum\_{t=1}^n (\beta +u\_t) = \beta + \frac1n\sum\_{t=1}^n u\_t$$

If $\beta = \beta\_1$ (where $\beta\_1$ is some value different than the $\beta\_0$ we set as the null hypothesis), then the authors set $\frac1n\sum\_{t=1}^n u\_t \equiv \hat \gamma$ and so they write that under the alternative we have

$$\hat \beta = \beta\_1 +\hat \gamma$$

Since the $u'$ are i.i.d normal their sum/average is also normal. Then the distribution of the estimator is

$$\hat \beta \sim N(\beta, \sigma^2/n)$$

Assume we set as our null hypothesis that $H\_0:\beta = \beta\_0$. and the alternative $H\_1:\beta \neq \beta\_0$.

Then we form the statistic (which is a function of the estimator, not the estimator itself)

$$z = \frac{\hat \beta - \beta\_0}{\sigma/ \sqrt{n}}$$

The distribution of this statistic is (*before* specifying any hypothesis to test)

$$z \sim N\left(\frac{\beta - \beta\_0}{\sigma /\sqrt{n}},1\right)$$

Assume that we pose as our null hypothesis that $H\_0: \beta = \beta\_0$. Then if the null hypothesis is true we get

$$z|\_{H\_0} \sim N\left(0,1\right)$$

If the alternative is true then we substitute for $\hat \beta$ to get

$$z|\_{H\_1} = \frac{\beta\_1 +\hat \gamma - \beta\_0}{\sigma /\sqrt{n}} = \frac{\beta\_1 - \beta\_0}{\sigma \sqrt{n}}+\frac{\hat \gamma }{\sigma /\sqrt{n}}$$

The first term is a constant, the second term is a standard normal r.v. (remember what $\hat \gamma$ stands for). So the distribution of the statistic *under the alternative* is

$$z|\_{H\_1} \sim N\left(\frac{\beta\_1 - \beta\_0}{\sigma /\sqrt{n}},1\right)$$

and the authors write

$$\lambda \equiv \frac{\beta\_1 - \beta\_0}{\sigma /\sqrt{n}}$$


---

### Answer by username_2 on 2016-05-16. Score: 1

Reading the book, $z=\frac{\hat\beta-\beta\_0}{(\sigma^2/n)^{(1/2)}}$

The distribution of $z$ under $H\_0$ will determine the critical values for a given level of significance $\alpha$, i.e. it will determine the probability of Type I errors (prob of rejecting the null, when null is true).

The distribution of $z$ under $H\_1$ (4.04) will define the probability of Type II errors(not rejecting null when alternative is the true hypothesis).

The closer - the averages are close - the distributions of z under the null and the alternative are, the higher is the probability of Type II errors.
In the picture below, we have several pdf for normal distributions. In blue, the distribution has zero mean; in red mean 1; and in yellow mean 2.

[![enter image description here](https://i.sstatic.net/YC6nL.png)](https://i.sstatic.net/YC6nL.png)

At the usual critical values of $1.96$ and $-1.96$ (for an $\alpha=0.05$), we can see a vertical line. When we're on the blue curve, i.e. under the null, we can calculate the prob of type I error, as the area to the right of the rightmost vertical line, to the left of the leftmost vertical line and below the blue line.

To calculate the type II error, we check in the interval between the vertical lines(not rejecting $H\_0$ area), under the red or yellow curve, depending on the values that $\beta$ really takes.
Notice that the area below such a curve will increase the closer the curve is to the one under the null distribution. In this case, the prob of type II error is greatest is when the alternative is the true model and the mean of the distribution is 1.

By deducing the distribution of z under the alternative, the authors want to give an idea of the type of rejection region one will get, when doing inference in this setting.


---

