Hypothesis Tests
- You are expected to know all of the intro stats-level material about hypothesis testing, including but not limited to:
- setting up the null and alternative hypotheses for a claim
- under a given pair of hypotheses, stating the meaning of a Type I or Type II Error
- defining the Type I and Type II Error Rates of a test
- defining the power of a test
- performing a given hypothesis test using:
- a rejection region
- a confidence interval
- a \(P\)-value
- Define the size of a hypothesis test.
- Explain what it means for a hypothesis test to have (significance) level \(\alpha\).
Nonparametric Hypothesis Tests
- Explain what it means for a distribution to be parametric.
- Give examples of parametric distributions and state their parameters.
- Explain the advantages of a nonparametric hypothesis test compared to a parametric hypothesis test.
The One-sample Sign Test
- State the null and alternative hypotheses for the one-sample sign test.
- State the test statistic for the one-sample sign test and its sampling distribution under the null hypothesis.
- Give the rationale for the test statistic for the one-sample sign test.
- Perform a one-sample sign test using
SignTest()
from the DescTools
package.
- Explain why there are a discrete set of \(P\)-values for the one-sample sign test.
- Describe the general shape of the sampling distribution of \(P\)-values for a one-sample sign test when the null hypothesis is true.
Simulation
Statistical Characteristics of Hypothesis Tests
- Given a population distribution and its mean, simulate a one-sample \(t\)-test from that population under the null or alternative hypothesis using
t.test()
.
- Given a population distribution and its median, simulate a one-sample sign test from that population under the null or alternative hypothesis using
SignTest()
from the DescTools
package.
- Use
replicate()
to simulate many \(P\)-values for a one-sample \(t\)-test or sign test under the null or alternative hypotheses.
- Use
ecdf()
to approximate either the Type I Error Rate or Power of a hypothesis test from the simulated \(P\)-values.
- Explain what the sampling distribution of \(P\)-values should look like under a point null hypothesis \(H_{0} : \theta = \theta_{0}\) when the null hypothesis is true.
- Explain what the sampling distribution of \(P\)-values should look like under a point null hypothesis \(H_{0} : \theta = \theta_{0}\) when the null hypothesis is false.