Hypothesis testing is a strategy of inference for determining whether a statement about the value of a population parameter should or should not be rejected. It involves stating a null hypothesis (
The null and alternative hypothesis typically take on one of the three following forms for a parameter
The hypotheses should always be formulated before viewing or analyzing the data.
A test procedure consists of several key components to evaluate the hypotheses.
The
Among the 3 forms of null and alternative hypothesizes the
The significance level, denoted as
Type I error is a type of error in hypothesis testing in which the null hypothesis is incorrectly rejected even though it is correct. In terms of the courtroom example, a type I error corresponds to convicting an innocent defendant.
Where
Type II error is a type of error in hypothesis testing in which the null hypothesis is incorrectly accepted even though it is incorrect. In terms of the courtroom example, a type II error corresponds to acquitting a criminal.
Where
| Not Rejected |
Correct inference (true negative) | Type II error (false negative) |
| Rejected |
Type I error (false positive) | Correct inference (true positive) |
The test statistic is a function of the data whose sampling distribution under the null hypothesis is known. It measures the discrepancy between the observed data and what would be expected if
A Z-statistic is a test statistic for the population mean used when the population standard deviation is known or the sample size is large.
Where:
A t-statistic is a test statistic for the population mean used when the population standard deviation is unknown and the sample size is small.
Where:
A chi-squared statistic is a test statistic used to test hypotheses about the population variance.
Where: