A null hypothesis (H0) states that two treatments are equally effective (and is hence negatively phrased). A significance test uses the sample data to assess how likely the null hypothesis is to be correct.

For example:

The alternative hypothesis (H1) is the opposite of the null hypothesis, i.e. There is a difference between the two treatments

The p value is the probability of obtaining a result by chance at least as extreme as the one that was actually observed, assuming that the null hypothesis is true. It is therefore equal to the chance of making a type I error (see below).

Two types of errors may occur when testing the null hypothesis

Study accepts H0 Study rejects H0
Reality H0 Type 1 error (alpha)
Reality H1 Type 2 error (beta) Power (1 - beta)

The power of a study is the probability of (correctly) rejecting the null hypothesis when it is false, i.e. the probability of detecting a statistically significant difference

Sample Size and Statistical Power

In general, larger sample sizes have higher statistical power than smaller sample sizes. However, sample size and statistical power are affected by a number of parameters, including the magnitude of the expected effect size (size of expected difference between the groups) and the level of statistical significance adopted in the study.

ExampleQ:

A group of researchers is designing a study to investigate the role of a new diet in treating patients with mild hypertension. The researchers are using the following parameters to calculate the sample size required for the study: