STA260 Lecture 20
- Note
- If we're asked to find the most powerful (
-level) test. We use Neyman-Pearson's Lemma.
- If we're asked to find the most powerful (
- Example on Slide 26:
is known. - This means that
- This means that
- The
terms cancel - #tk
- The
- The only random component is
- Everything else is just a constant.
- For everything to be
, it's equivalent to - Aside:
- We want
- When
we have this.
- We want
is our simplified criteria - As
- The only random component is
- Example a probability of a type 1 error.
- We know that rejecting
is when we have - We know that
- The probability of
- We can also call
is our threshold for rejecting
- We want to find
such that area to the right is just - If we leave it in terms of
, then we look at instead of the original one. - So we reject
if we have that . This is the most powerful test.
- Exercise:
- What is the most power level
test for the same and if is not known? - t-test, we standardize the variable differently, that's it.
- The probability of
- Then we get
- What is the most power level
- Section 9.3
- Duality of Confidence Intervals and Hypothesis Tests.
- Theorem 1:
: is our observed data. : parameter of interest. : set of all possible values of . : where is the parameter space. : Acceptance region for testing . - Do not reject null if
.
- Do not reject null if
- Confidence interval for
.
- Confidence interval for
: is the set of parameter values of , which the test does not reject at - Suppose for every
in ( is a set) there is a test at level where . The acceptance region is . - This means that given some acceptance region,
is the confidence region for . - Moving from a hypothesis test to a confidence interval
- Theorem 2:
- The other way around from Theorem 1.
- Moving from a confidence interval to a hypothesis test.
: is a confidence region for . - For a fixed
: - The acceptance region:
- For testing the null hypothesis
, we reject if .
- This means you can move between the two, via these theorems.
- Example:
is known. - Before we had
, but now we have , so it's a two-sided test. - Now we have:
or - So
- For acceptance, the test fails to reject
when . - So
- By theorem 1, the set of values of
where is not rejected is: - Application of Theorem 2:
- Generalized Likelihood Ratio Test:
- The rejection region is
- Likelihood ratio test statistic.
: parameter space under : parameter space under : parameter space for , so for null and alternative, so . - Test rejects the null for
. is our threshold. - Example:
- Find the appropriate likelihood ratio test.
- Identify
- Under
: - Under
: