Hypothesis testing is a formal way of checking if a hypothesis about a population is true or not.
Hypothesis testing is a statistical method used to make decisions about a population parameter based on a sample. It involves the following steps:
The test statistic is used to decide the outcome of the hypothesis test.
The test statistic is a standardized value calculated from the sample.
Standardization means converting a statistic to a well known probability distribution.
The type of probability distribution depends on the type of test.
Common examples are:
Note: You will learn how to calculate the test statistic for each type of test in the following chapters.
There are two main approaches used for hypothesis tests:
If the test statistic is inside this rejection region, the null hypothesis is rejected. For example, if the test statistic is 2.3 and the critical value is 2 for a significance level (α=0.05):
The p-value approach checks if the p-value of the test statistic is smaller than the significance level ().
The p-value of the test statistic is the area of probability in the tails of the distribution from the value of the test statistic.
Here is a graphical illustration:
If the p-value is smaller than the significance level, the null hypothesis is rejected.
The p-value directly tells us the lowest significance level where we can reject the null hypothesis.
For example, if the p-value is 0.03:
Note: The two approaches are only different in how they present the conclusion.
The following steps are used for a hypothesis test:
One condition is that the sample is randomly selected from the population.
The other conditions depends on what type of parameter you are testing the hypothesis for.
Common parameters to test hypotheses are:
You will learn the steps for both types in the following pages.