Understand the idea
A two-sided test's alternative hypothesis is 'the groups are different'; it does not commit in advance to which group is higher. A one-sided test's alternative is a directional claim decided BEFORE seeing the data: 'the new process produces MORE defects' rather than merely 'a different number of defects'.
The practical consequence: a one-sided test puts the entire rejection region in one tail, so for the same alpha it is easier to reach significance in the predicted direction, but it becomes impossible to detect a real effect in the opposite direction, however large. If the new process actually produced far FEWER defects, a one-sided test aimed the other way would report no significant result at all.
Two-sided is the default and the safer choice whenever there is genuine uncertainty about direction, which is almost always. A one-sided test is only legitimate when the direction was committed to for a substantive reason BEFORE the data were seen, not chosen afterward because it makes a borderline result significant.
A one-sided test is also called a one-tailed test, and a two-sided test a two-tailed test, because the rejection region sits in one tail or in both tails of the distribution. The claim a one-sided test checks is called a directional hypothesis, because it names which way the difference goes. A one-sided p-value counts only results at least as extreme in the predicted direction; when the estimate falls in that direction and the test's distribution is symmetric, it is half the two-sided p-value.
Practitioner explanation
For the usual symmetric two-sided test at level alpha, the critical region is split between both tails (each at alpha/2); a one-sided test places the full alpha in one tail. For the same alpha this shifts the critical value inward on that side (1.645 instead of 1.96 for a z-test at alpha = .05) and can increase power in the chosen direction; the amount depends on the design and effect. The test cannot establish an effect in the opposite direction, although sampling variation can produce an incorrect rejection in the chosen direction even when the true effect is opposite.
Switching from two-sided to one-sided AFTER seeing that a two-sided p-value narrowly missed significance is a documented form of p-hacking (it may reduce the reported p-value with no new information), and reviewers and pre-registration protocols treat an undisclosed post hoc switch as a serious violation of the stated analysis plan.
For methods with directional alternatives, inspect the method's available sidedness options and report the alternative actually used. Omnibus ANOVA, chi-square and normality tests use their own reference distributions and tails; not every method offers a one-sided or two-sided choice. A reader needs to know which test and alternative were pre-specified.
When to use it
Consider it when
A one-sided test is defensible only when a result in the 'wrong' direction would be treated identically to no effect at all (e.g. a one-directional safety threshold), and the direction was fixed before the data were collected.
Use caution when
Never choose one-sided vs. two-sided after looking at which one produces a smaller p-value; that decision must be made, and stated, before the analysis.
Common misconceptions
Misconception
A one-sided test is always more rigorous because it is 'more specific'.
Correction
A one-sided test is a weaker overall claim, not a stronger one: it trades the ability to detect an effect in the unexpected direction for greater power in the predicted direction, and is only valid when that trade was decided in advance.
References
- NIST/SEMATECH e-Handbook of Statistical Methods, §1.3.5.2 Confidence Limits for the Mean, NIST/SEMATECH (2012), §1.3.5.2.
