Given our existing work on confidence intervals, hypothesis testing will be relatively easy to develop.

Hypothesis testing is concerned with making decisions using data.

A null hypothesis is specified that represents the status quo, usually labeled \(H_0\)

The null hypothesis is assumed true and statistical evidence is required to reject it in favor of a research or alternative hypothesis.

Example

Hypothesis testing

TRUTH DECIDE RESULT
\(H_0\) \(H_0\) Correctly accept null
\(H_0\) \(H_a\) Type I error
\(H_a\) \(H_a\) Correctly reject null
\(H_a\) \(H_0\) Type II error

Discussion

The Type I error and the Type II error are related in the sense that as the Type I error rate increases, the Type II error decreases, and vice versa.

Here, rejecting the null hypothesis is to convict the defendant.

If we set a very low standard, i.e., we don’t require much in evidence to convict people, then we’re going to increase the percentage of innocent people convicted, Type I errors in this case. However, we would also increase the percentage of guilty people convicted, which would be correctly rejecting the null hypothesis.

If we set a very high standard, basically a person has to have a smoking gun in their hand, to convict them, then we would increase the percentage of innocent people, a good thing, correctly accepting the null. But we would also increase the percentage of guilty people let free, or so called, Type II errors.

Of course ideally, what you would like is to get better evidence for a given standard. That’s the idea of doing things like increasing the sample size.