How to find the critical value such that P(Type I error)=P(Type II error)?

323 Views Asked by At

A sample of size $100$ is taken from a normal population with unknown mean µ and known variance $36$. An investigator wishes to test the hypotheses Null hypothesis: $µ=65$, Alternative hypothesis: $µ>65$. He decides on the following criteria:

Accept the Null hypothesis if the sample mean $x$ bar is smaller or equal to $66.5$.

Reject the Null hypothesis if $x$ bar is greater than $66.5$.

The probability that he makes a Type I error is $0.0062097...$

If he uses $µ=67.9$ for the alternative hypothesis, the probability that he makes a Type II error is $0.0098153...$

On which critical value should he decide for the sample mean if he wants P(Type I error)=P(Type II error)?

2

There are 2 best solutions below

0
On BEST ANSWER

The test statistic for the hypothesis test $H_0:\mu =65$ versus $H_a:\mu>65$ is the $z-$score $Z=\frac{\bar{X}-65}{\sqrt{36/100}}$. We will reject $H_0$ if and only if $Z>z_{\alpha}$ if and only if $\bar{X}>z_{\alpha}\sqrt{36/100}+65$. Otherwise we won't reject $H_0$. So if $\mu=\mu_a \neq 65$ is the true population mean, then $$P(\text{Type II Error})=P(\bar{X} \leq z_{\alpha}\sqrt{36/100}+65|\mu=\mu_a)=P\bigg(Z<z_{\alpha}+\frac{65-\mu_a}{\sqrt{36/100}}\bigg)=\phi\Bigg(z_{\alpha}+\frac{65-\mu_a}{\sqrt{36/100}}\Bigg)$$ where $\phi(x)=\int_{-\infty}^{x}\frac{1}{\sqrt{2\pi}}e^{-t^2/2}dt$ and $Z\sim N(0,1)$. Similarly to before, $$\phi\Bigg(z_{\alpha}+\frac{65-\mu_a}{\sqrt{36/100}}\Bigg)=\alpha \iff z_{\alpha}+\frac{65-\mu_a}{\sqrt{36/100}}=-z_{\alpha}\iff 6z_{\alpha}=5\mu_a-325$$ Finally, if $\mu_a=67.9$, then $z_{\alpha}=29/12$ which induces the decision rule $$\text{Reject } H_0 \iff \bar{X}\in (66.45,\infty)$$ $$\text{Don't Reject } H_0 \iff \bar{X}\in (-\infty, 66.45]$$

0
On

Suppose $\mu = \mu_a \neq 65$ is the true population mean. Then

$$P(\text{Type II Error})=P(\bar{X} <66.5|\mu = \mu_a)=P\Bigg(Z<\frac{66.5-\mu_a}{\sqrt{36/100}}\Bigg)=\phi\Bigg(\frac{66.5-\mu_a}{\sqrt{36/100}}\Bigg)$$ where $Z \sim N(0,1)$ and $\phi(x):=\int_{-\infty}^{x}\frac{1}{\sqrt{2\pi}}e^{-t^2/2}dt$. In order to find the value of $\mu_a$ so that we get $P(\text{Type I Error})=P(\text{Type II Error})$ we need to solve the equation $$\phi\bigg(\frac{66.5-\mu_a}{\sqrt{36/100}}\bigg)=0.0062097$$ for $\mu_a$. We get $$\frac{66.5-\mu_a}{\sqrt{36/100}}=\phi^{-1}(0.0062097)=-2.5\iff \mu_a=68$$