One-Sided Test vs Two-Sided 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.
One-sided test
Hypothesis testing
A one-sided test has an alternative hypothesis using < or >, so only departures from the null in one direction count as evidence.
You choose the direction before you look at the data, based on the claim being investigated, and the p-value is then the area in that single tail of the null distribution. In AP Statistics the null hypothesis is tested at the boundary of equality even when the alternative points one way. For example, with and a test statistic of , the p-value is . A one-sided test detects a given effect more easily than a two-sided test, but only when the effect runs in the hypothesized direction, which is exactly why picking the direction after seeing the data is cheating.
Two-sided test
Hypothesis testing
A two-sided test has an alternative hypothesis using a not-equal sign, so a departure from the null in either direction counts as evidence.
Use a two-sided alternative when you want to detect any change rather than a change in a specific direction, which fits most research questions. Because both tails count, the p-value is twice the one-tail area whenever the null distribution is symmetric. For example, a test statistic of gives a p-value of , against 0.0401 for the matching one-sided test. A two-sided test at (alpha, the significance level) usually agrees with the 95% confidence interval, though for proportions the two can disagree in close cases because they use different standard errors.