Hypothesis testing is a statistical method used to make inferences about a population parameter based on a sample. It involves formulating a null hypothesis \(H_0\) and an alternative hypothesis \(H_A\), then using a statistical test to determine whether to reject \(H_0\).
Hypothesis tests are used to assess whether a difference between two samples represents a real difference between the populations from which the samples were taken. A null hypothesis of ‘no difference’ is taken as a starting point, and we calculate the probability that both sets of data came from the same population.