Colorado State University — Pueblo; Fall 2016
Math 156, Introduction to Statistics
Summary of Hypothesis Testing
We shall do hypothesis testing in essentially the same way in all cases we can
handle. This page outlines that common approach and emphasizes the features
that all solutions to hypothesis testing must contain.
- Formalize the problem: Starting with a description of the issue
to be investigated, figure out — and clearly explain in your work
— the following
- the population under investigation
- the variable of interest for that population
- the population parameter of interest about that RV [which
can only be, for us in this class, either the population mean
$\mu$ or population proportion $p$]
- the null hypothesis $H_0$ for this test, which is of the
form
$H_0:\ \ $param = param0
where param is the parameter of interest and
param0 is a specific number
- the alternative hypothesis $H_a$ for this test, which is one
of the following:
$H_a:\ \ $param < param0
$H_a:\ \ $param > param0
$H_a:\ \ $param ≠ param0
where param is that parameter of interest and
param0 is that same specific number as in
$H_0$.
- Collect sample data: Now, collect data for a SRS of size
$n$. From this, compute the sample mean $\overline{X}$, if the
parameter param of interest is $\mu$, or the
sample proportion $\widehat{p}$, if param is $p$.
- Compute the test statistic: Compute:
- if param is $\mu$ and the
population standard deviation $\sigma$ is known, then
the test statistic is $$z=\frac{\overline{X}-\mu_0}{\sigma/\sqrt{n}}$$
where $\mu_0$=param0
- if param is $\mu$ and the $\sigma$ is unknown, then
the test statistic is $$t=\frac{\overline{X}-\mu_0}{s/\sqrt{n}}$$
where $\mu_0$=param0 and $s$ is the sample
standard deviation
- if param is $p$ then the test statistic is
$$z=\frac{\widehat{p}-p_0}{\sqrt{p_0(1-p_0)/n}}\ .$$
where $p_0$=param0
- Compute the $p$-value:
- if param is $\mu$ and the
population standard deviation $\sigma$ is known, then
- if $H_a$ is param < param0
the the $p$-value is $p=P(Z<z)$ where $Z$ is the standard
Normal RV
- if $H_a$ is param > param0
the the $p$-value is $p=P(Z>z)$ where $Z$ is the standard
Normal RV
- if $H_a$ is param ≠ param0
the the $p$-value is $p=2P(Z>|z|)$ where $Z$ is the
standard Normal RV
- if param is $\mu$ and the population standard deviation
is unknown, then you can use an online $t$-distribution calculator
such as this one to help in the following:
- if $H_a$ is param < param0
the the $p$-value is $p=P(T<t)$ where $T$ is Student's
$t$-distribution with $df=n-1$ degrees of freedom.
- if $H_a$ is param > param0
the the $p$-value is $p=P(T>t)$ where $T$ is Student's
$t$-distribution with $df=n-1$ degrees of freedom.
- if $H_a$ is param ≠ param0
the the $p$-value is $p=2P(T>|t|)$ where $T$ is Student's
$t$-distribution with $df=n-1$ degrees of freedom.
- if param is the population proportion, then
- if $H_a$ is param < param0
the the $p$-value is $p=P(Z<z)$ where $Z$ is the standard
Normal RV
- if $H_a$ is param > param0
the the $p$-value is $p=P(Z>z)$ where $Z$ is the standard
Normal RV
- if $H_a$ is param ≠ param0
the the $p$-value is $p=2P(Z>|z|)$ where $Z$ is the
standard Normal RV
- Draw the statistical conclusion: If the $p$-value is sufficiently
small (as determined by the context), then you say
We reject the null hypothesis; if the $p$-value is too large, you
say We fail reject the null hypothesis. If a
significance level $\alpha$ is given, then "sufficiently small" for
the $p$-value means "less than $\alpha$."
- Restate the conclusion in the original terms: Finish by restating
what it means to reject $H_0$ or to fail to reject $H_0$,
depending upon whichever was just chosen, in the terminology of the original
problem statement. Typically, this looks like one of the following
- "There is strong statistical evidence to reject
the null hypothesis [stated without statistical terminology or
notation] in favor of the alternative hypothesis [stated
without statistical terminology or notation] ($p=$value)."
if the $p$-value $p$ is small.
- "There is insufficient statistical evidence to reject
the null hypothesis [stated without statistical terminology or
notation] in favor of the alternative hypothesis [stated
without statistical terminology or notation] ($p=$value)."
if the $p$-value $p$ is large.
- "We reject the null hypothesis [stated without statistical
terminology or notation] in favor of the alternative
hypothesis [stated without statistical terminology or notation]
at significance level $\alpha$." if the $p$-value satisfies
$p<\alpha$.
- "We fail to reject the null hypothesis [stated without statistical
terminology or notation] in favor of the alternative
hypothesis [stated without statistical terminology or notation]
at significance level $\alpha$." if the $p$-value satisfies
$p≥\alpha$.