The main idea of a hypothesis test is to use the data as evidence to disprove the null and thus prove that the alternative is true. The idea behind a hypothesis test for the population mean is as follows:
Collect from the population a simple random sample: and calculate the sample mean . Our “evidence” stems from the discrepancy between the point estimate and the hypothesized population mean .
Reject the null hypothesis if the sample mean does not support the null . That is, we should reject if is too extreme. The word “extreme” means contradicting the null in favour of the alternative .
In order to quantify how the data (our evidence) contradict the null hypothesis, we first assume the null hypothesis is true and calculate the chance of observing a sample mean at least as extreme as the observed . Reject the null if the chance is small; otherwise, fail to reject . Recall that for a normal population or a large sample size, the sample mean and distribution with We call the variables or the test statistics. We should reject the null hypothesis if the observed test statistic or is too extreme.