What is Hypothesis testing?
A statistical method for judging, on the basis of data, whether to reject a hypothesis such as "there is no difference". The hypothesis to be refuted is set up as the null hypothesis, and the probability of obtaining a result equal to or more extreme than the one observed, assuming it is true (the p-value), is calculated. If the p-value is smaller than a significance level decided in advance (such as 5%), the null hypothesis is rejected. There are type I errors, rejecting a true null hypothesis, and type II errors, failing to reject a false one.
Japanese name: 仮説検定
Hypothesis testing appears in 2 practice questions across 1 topic, including Probability, Statistics and Queueing.
Field: Probability, Statistics and Queueing
Steps of a test
First, a null hypothesis such as "the yield does not change under the new conditions" and an alternative hypothesis, "it changes", are set up. Next, the significance level α (such as 5% or 1%) is decided before looking at the data. The test statistic and p-value are calculated from the data; if the p-value is smaller than α, the null hypothesis is rejected and the difference is judged "significant", and otherwise it is not rejected.
FAQ
If the p-value is larger than 0.05, can we say there is no difference?
No. It only means that "these data did not provide enough evidence to judge that there is a difference". To examine a difference, plan the sample size so that the necessary power is obtained, or show the range of the size of the difference with a confidence interval.
How is the significance level decided?
5% is often used, but it is not a rule. If wrongly concluding that there is a difference would be costly, a smaller level such as 1% is used; if missing a difference would be costly, more weight is put on power. In either case, the level is decided before the test, not chosen after looking at the data to suit the result.