Understand the idea
Every hypothesis test starts with two competing statements: a null hypothesis (usually the 'no effect' or 'no difference' claim, though it can name any specific value) and an alternative hypothesis (the claim you suspect might be true instead: a difference, a relationship, an effect). The test never proves the alternative; it only asks whether the data would be surprising if the null, and the test's assumptions, were true.
The recipe is always the same shape: state the null and alternative before looking at the result, choose a significance threshold (alpha, conventionally 0.05) in advance, compute a test statistic from the data, and compare the resulting p-value to alpha. If p is smaller than alpha, reject the null; otherwise, the data do not give enough evidence to do so.
The choice of WHICH test to run (a t-test, a chi-square test, ANOVA, and so on) depends on the type of outcome (numeric or categorical), how many groups are being compared, and whether the assumptions of a given test hold for your data, not on which one happens to give the answer you were hoping for.
A hypothesis test is also called a significance test, or a test of significance, because it ends by asking whether the result is statistically significant.
Practitioner explanation
The Neyman-Pearson framework fixes alpha in advance as the long-run Type I error rate the analyst is willing to tolerate, and the test statistic's distribution UNDER THE NULL is what calibrates the p-value; a test is only as trustworthy as the assumptions that justify that null distribution (independence, the relevant variance/normality conditions, correct specification of what is being compared).
A confidence set obtained by inverting a matching family of tests gives the values those tests do not reject. A matched two-sided test and 95% interval correspond at alpha 0.05 subject to boundary conventions. Different methods or tails can disagree; availability varies by card.
Unadjusted choices after seeing data, such as selecting a favorable test or stopping rule, can invalidate nominal error rates. Valid sequential procedures and appropriately adjusted exploratory analyses are possible; disclose the design and selection.
When to use it
Consider it when
Whenever a specific, falsifiable claim about a population parameter needs to be weighed against sample evidence, with the decision rule fixed before the data are examined.
Use caution when
As a tool for open-ended exploration where many possible comparisons are tried until one is significant; that use requires a multiple-comparisons correction or should be reframed as exploratory rather than confirmatory.
Common misconceptions
Misconception
Failing to reject the null hypothesis means the null hypothesis has been proven.
Correction
A hypothesis test can provide evidence against the null; it never provides positive proof for it. Not rejecting means the data are compatible with the null, which also happens routinely when a study is underpowered.
References
- NIST/SEMATECH e-Handbook of Statistical Methods, §1.3.5 Quantitative Techniques, NIST/SEMATECH (2012), §1.3.5, Hypothesis Tests.
- STAT 415: Hypothesis Tests (Part I), Penn State Eberly College of Science, Lesson 9.
