Hypothesis Test vs Chi-Square Test

Both terms below come up in the same part of the course, and students mix them up. Here is each one defined on its own, side by side, so you can see where they part company.

Hypothesis test

Hypothesis testing

A hypothesis test uses sample data to weigh a null claim against an alternative, gauging how surprising the data would be if the null claim were true.

A significance test decides whether the evidence in a sample is strong enough to reject a default claim about a parameter. You state a null and an alternative hypothesis, compute a test statistic, and find its p-value under the null. For example, to test whether a coin is fair you compare the observed number of heads to what a fair coin predicts. If the p-value is at or below the significance level, you reject the null hypothesis; otherwise you fail to reject it.

Full entry for hypothesis test

Chi-square test

Hypothesis testing

A chi-square test compares observed counts of categorical data to the counts expected under a hypothesis, gauging how far the data stray from that model.

A chi-square test works with counts in categories rather than means, checking goodness of fit, independence, or homogeneity. It adds up the squared gaps between observed and expected counts, each scaled by the expected count, into one statistic. The formula is χ2=(OE)2E\chi^2 = \sum \frac{(O - E)^2}{E}, where OO is an observed count and EE an expected count. For example, rolling a die 60 times and comparing each face's tally to the expected 10 tests whether the die is fair, and a large χ2\chi^2 gives a small p-value.

Full entry for chi-square test

Where each one fits in the course