3
$\begingroup$

This has always troubled me a bit. When I choose my hypothesis, do I define in some way the rejection region [RR], or, do I do that by choosing the test statistic I want to use?

By fixing the significance level, I'm in a way determining the area/volume of the RR.

In two different contexts(different null hypothesis), I've seen the same statistic being used with two different RR. In some books, the authors give the sense that once we decide the hypothesis, we've chosen the RR. Others, state explicitly that at least in some hypothesis, the RR is not completely defined, and we need other criteria... I would like to structure this as best as possible.

Any help would be appreciated

$\endgroup$
7
  • $\begingroup$ I would say that the RR depends on more than just your hypothesis. It also depends on the distribution of your X's, which test you are using (LRT, Bayesian tests, etc.), and - as you said - the level of the test. $\endgroup$
    – ogustavo
    Commented Jul 10, 2016 at 17:18
  • $\begingroup$ It is all about power, see if this can help: stats.stackexchange.com/questions/163957/… $\endgroup$
    – user83346
    Commented Jul 10, 2016 at 17:34
  • $\begingroup$ @Gus_est I think the distribution of the population is important inasmuch the distribution of the test statistic is determined by it... $\endgroup$ Commented Jul 10, 2016 at 17:43
  • 1
    $\begingroup$ You should choose the RR in the region where your alternative hypothesis occurs most likeliy, that is the region where you have the highest power $\endgroup$
    – user83346
    Commented Jul 10, 2016 at 17:44
  • $\begingroup$ Your edit to the title broadens the scope considerably, & perhaps too much. How to decide on a rejection region, or a test statistic indexing a set of rejection regions, is a chapter or two of an introductory book on theoretical statistics. The answers here already show that it involves more than a consideration of the null hypothesis. $\endgroup$ Commented Jul 12, 2016 at 13:22

2 Answers 2

1
$\begingroup$

For an explanation of the concept of power I refer to What follows if we fail to reject the null hypothesis?.

Assume the we want to test a one-sided hypothesis about the mean of a normal population, using a sample $x_1, x_2, \dots x_n$ and for simplicity assume that the standard deviation $\sigma$ is known, so we want to test $H_0: \mu \le \mu_0$ versus $H_1: \mu > \mu_0$. We choose a significance level $\alpha$.

The test statistic is $\bar{x}=\frac{1}{n}\sum_{i=1}^n x_i$. For another sample we will find another $\bar{x}$, so $\bar{x}$ is a random variable and it is known that it has a normal distribution with mean equal to the population mean $\mu$ and standard deviation equal to $\frac{\sigma}{\sqrt{n}}$.

We can choose infinitely many rejection regions such that the probability of a type I error (i.e. the probability mass above the rejection region) is $\alpha$. So the question is , which of these infinitely many rejection regions shall we choose ?

Obviously, it makes sense to chose that region that minimises the probability of a type II error (or equivalently, the region that maximises power). A type II error occurs when we accept $H_0$ in cases where $H_1$ is true, or in case where $\bar{x}$ falls outside the rejection region (i.e. accept $H_0$) when $H_1$ is true.

So we wish to choose the rejection region (RR) that minimises the probability that $\bar{x} \not \in RR$ when $H_1$ is true. i.e. find $RR$ such that $P(\bar{x} \not \in RR|_{H_1})$ is as small as possible.

So let us look at the cases where $H_1$ is true, i.e. $\mu > \mu_0$. Let us look at the picture below:

enter image description here

The green density is the one when $H_0$ is true, the rejection region is the one between the two vertical lines, so the surface under the green curve and between the two vertical lines is $\alpha$.

The red density is the one when $H_1$ is true (note that the mean of the red curve is larger than the one of the green curve to reflect $H_1: \mu > \mu_0$.

$P(\bar{x} \not \in RR|_{H_1})$ is the area under the red curve and outside of the two vertical lines. So we have to choose the two vertical lines such that under the green curve we have $\alpha$ between these two lines and such that the area under the red curve, outside of these two lines is as small as possible. Obviously this will happen when the vertial lines cover the right tail of the green distribution.

$\endgroup$
3
  • $\begingroup$ Thanks for your answer. I think it would be simpler to look at the power function and see that the said RR has greater power under $H_1$, than all the others. $\endgroup$ Commented Jul 11, 2016 at 18:24
  • 1
    $\begingroup$ @An old man in the sea: well could you elaborate on that ? because I can see how you can look at the power function for one RR, but how can you compare the power function for all possible RRs ? Moreover, the simplest thing in this case is to use the Karlin-Rubin theorem. $\endgroup$
    – user83346
    Commented Jul 11, 2016 at 18:29
  • $\begingroup$ I'm not saying we could compare the power function for all possible RR, but at least those of the type ]-Infty,a],[a,+Infty[ or [a,b], for a given level of significance... $\endgroup$ Commented Jul 11, 2016 at 21:45
2
$\begingroup$

@fcop's answer talks about the choice of a region such that the power is maximized. In this illustration, I want to point out that even when we have tests that are considered "the most powerful tests" (so, the power isn't an issue here), the rejection region depends on more than just the hypothesis.

I'll use the definition from the Neyman-Pearson Lemma to test $H_0: \theta = \theta_0$ vs. $H_1:\theta=\theta_1$. As pointed out by @fcop, this Lemma holds only in the case of simple hypothesis. However, my purpose is to provide examples to illustrate my point, so my answer is bounded to have a narrower scope.

From the Wikipedia article:

"(...) the likelihood-ratio test which rejects $H_0$ in favour of $H_1$ when

$$\frac {L(x\mid \theta _{0})}{L(x\mid \theta _{1})} \leq \eta$$

where

$$P(\Lambda (X)\leq \eta \mid H_{0})=\alpha$$

is the most powerful test at significance level $\alpha$ for a threshold $\eta$."

And in the proof of this lemma, we can see how the rejection region is defined for this specific case:

"Define the rejection region of the null hypothesis for the NP test as

$R_{NP}=\left\{x:{\frac {L(x\mid \theta _{0})}{L(x\mid \theta _{1})}}\leq \eta \right\}$ where $\eta$ is chosen so that $P(R_{{NP}},\theta _{0})=\alpha \,.$"


Example 1

Now, suppose we have that $X_1,\ldots,X_n \overset{iid}{\sim} \mathcal{N}(\theta,1)$, and we want to test $H_0: \theta = 3$ vs. $H_1:\theta=5$.

So, $$L(\mathbf{x} \mid \theta) = (2 \pi)^{-n/2} \exp \left\{-\frac{(\sum x_i - \theta)^2}{2} \right\} = (2 \pi)^{-n/2} \exp \left\{-\frac{(\sum x_i - \bar{x})^2 -n(\bar{x}-\theta)^2}{2} \right\}$$

And, calculating $\frac {L(\mathbf{x} \mid \theta _{0})}{L(\mathbf{x}\mid \theta _{1})}$ yields \begin{align} \frac {L(\mathbf{x} \mid \theta _{0})}{L(\mathbf{x}\mid \theta _{1})} = \frac {L(\mathbf{x} \mid 3)}{L(\mathbf{x}\mid 5)} &= \frac{(2 \pi)^{-n/2} \exp \left\{-\frac{(\sum x_i - \bar{x})^2 -n(\bar{x}-3)^2}{2} \right\}}{(2 \pi)^{-n/2} \exp \left\{-\frac{(\sum x_i - \bar{x})^2 -n(\bar{x}-5)^2}{2} \right\}} \\ &= \exp\left\{- n(\bar{x}-3)^2 +n(\bar{x}-5)^2 \right\} \\ &= \exp\left\{ -n(4 \bar{x}-16)\right\} \end{align}

Therefore, the rejection region is defined in terms of \begin{align} \frac {L(\mathbf{x} \mid \theta _{0})}{L(\mathbf{x}\mid \theta _{1})} = \exp\left\{ -n(4 \bar{x}-16)\right\} \leq \eta \end{align}

Simplifying it, we have that \begin{align} \exp \left\{ -n(4 \bar{x}-16)\right\} \leq \eta &\iff -n(4 \bar{x}-16) \leq \log(\eta) \\ &\iff \bar{x} \geq \underbrace{4 - \frac{\log(\eta)}{4 n}}_{\mbox{call this }\eta^{*}} \\ \\ &\iff \bar{x} \geq \eta^{*} \end{align}

So now we can define our rejection region in terms of the statistic $\bar{X}$:

$$R_{NP}=\left\{x:\bar{x} \geq \eta^{*} \right\}$$

where $\eta$ is chosen so that $P(\bar{X} \geq \eta^{*} \, | \theta_0)=\alpha.$

Now, under $H_0$ (or given $\theta_0=3$) we know that $\bar{X} \sim \mathcal{N}(3,1/n)$, to the above probability becomes:

\begin{align} \alpha &= P(\bar{X} \geq \eta^{*} \, | \theta_0) \\ &= P \left(\frac{\bar{X}-3}{1\ \sqrt{n}} \geq \frac{\eta^{*}-3}{1\ \sqrt{n}}\right) \\ &= P \left(Z \geq \frac{\eta^{*}-3}{1\ \sqrt{n}}\right) \, \mbox{where } Z\sim \mathcal{N}(0,1)\\ \end{align}

Therefore, $\eta^{*} = \frac{z_{1-\alpha/2}}{\sqrt{n}}+3$, and we $$\mbox{reject } H_0 \mbox{ iff } \bar{X} \geq \frac{z_{1-\alpha/2}}{\sqrt{n}}+3$$

So, in this case our rejection region depends on our test statistic ($\bar{X}$), the distribution associated to it (represented by $z_{1-\alpha/2}$, where $z$ is the critical value for a standard Normal), the sample size (n), and the value of our null hypothesis ($\theta=3$).


Example 2

Now, suppose we have the same setting from Example 1, but now $H_0: \theta = 4$ v.s. $H_1: \theta = 5$.

Using the same argument as above, we can see that $\eta^{*} = \frac{z_{1-\alpha/2}}{\sqrt{n}}+4$, and we $$\mbox{reject } H_0 \mbox{ iff } \bar{X} \geq \frac{z_{1-\alpha/2}}{\sqrt{n}}+4$$

We changed the value of our null hypothesis, but everything else remained the same. The same way, our rejection region depends on our test statistic ($\bar{X}$), the distribution associated to it (represented by $z_{1-\alpha/2}$, where $z$ is the critical value for a standard Normal), the sample size (n), and the value of our null hypothesis ($\theta=4$).


Example 3

Suppose now that $X_1,\ldots,X_n \overset{iid}{\sim} \mbox{Exp}(\theta)$, and we wish to test the hypothesis $H_0: \theta = 3$ vs. $H_1:\theta=5$. As pointed out by @Scortchi, this hypothesis is not the same as the previous one because on our first example we devised a test for the mean of our normal distribution, and now we are testing a value for the rate of our exponential distribution.

Using the same argument, one can show that we reject $H_0$ iff $\bar{X} \leq \eta^{*}$, where

$\eta^{*}$ is such that (under $H_0$) $$P(\bar{X} < \eta^{*})=\alpha, \, \, \mbox{with} \,\, \bar{X} \sim \mbox{Gamma}(n,3n)$$

In this case our rejection region depends on our test statistic ($\bar{X}$), the distribution associated to it (Gamma, in this case), the sample size (n), and the value of our null hypothesis ($\theta=3$).

$\endgroup$
9
  • 1
    $\begingroup$ More germane might be an example in which the null hypotheses are the same but the test statistics different. $\endgroup$ Commented Jul 11, 2016 at 11:37
  • $\begingroup$ @Scortchi and Gus_est Reading the Neyman Person lemma, and the answer below, it all points to choosing the RR which maximizes power. And this aspect seems absent in the entire answer. Also isn't the test statistic the LRT instead of the simple average $\bar X$? $\endgroup$ Commented Jul 11, 2016 at 18:26
  • 1
    $\begingroup$ @An old man in the sea Any test under the lemma "is the most powerful test at significance level $\alpha$ for a threshold $\eta$" (quote from Wikipedia's article about NP linked in my answer). Also, from the same article "one considers algebraic manipulation of the ratio to see if there are key statistics in it related to the size of the ratio". $\endgroup$
    – ogustavo
    Commented Jul 11, 2016 at 23:15
  • $\begingroup$ @Gus_est Yes, you're right, but it's something very implicit in your answer, and moreover it seemed as something secondary, whereas it's - by the answer of fcop - the principal motive to consider a specific a RR. $\endgroup$ Commented Jul 12, 2016 at 11:03
  • 1
    $\begingroup$ The Neyman-Pearson Lemma holds only in the case of ''simple'' $H_0$ and simple $H_1$. So only in very specific cases. $\endgroup$
    – user83346
    Commented Jul 12, 2016 at 15:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.