1. Home
  2. Explore
  3. Statistics
  4. Hypothesis Testing

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Hypothesis Testing

Speaker 1Speaker 2

Hypothesis Testing

9:02
0:00-9:02
  1. Hope

    Let’s build the chapter’s big idea from the ground up: hypothesis testing starts with an assumption about a population. We take a random sample intended to represent that population, apply a treatment, and ask whether the result gives us convincing evidence that the treatment changed something.

  2. Maria

    And the starting assumption is that it didn’t change anything, right? That gives us a baseline to compare the sample result against.

  3. Hope

    Exactly. That starting point is called the null hypothesis, written H-zero, or H₀. For a test about a mean, it often says the population mean equals a specified value—for example, μ = 45. The treatment is assumed to have no effect on that quantity unless the data provide strong evidence against that assumption.

  4. Maria

    So we’re looking for a result that would be very unusual if H₀ were true. It’s a little like proof by contradiction: begin with an assumption and see whether the evidence makes it hard to maintain.

  5. Hope

    That’s a useful analogy, with one important caution: statistics doesn’t usually give us a perfectly certain yes-or-no boundary. A very unusual result can justify rejecting H₀, but it doesn’t tell us the exact true population mean, and failing to reject H₀ doesn’t prove it’s true.

  6. Maria

    Before collecting or analyzing the data, we also need an alternative hypothesis, H₁—sometimes written Hₐ. That states what pattern we plan to look for if the no-effect assumption isn’t right.

  7. Hope

    For a mean, the general two-tailed alternative is μ ≠ the hypothesized value. It allows for a change in either direction. A directional, one-tailed alternative might instead say μ is greater than the value or μ is less than the value.

  8. Maria

    And we have to choose that direction in advance. If we look at the data first and then pick whichever direction makes the result look strongest, we’re no longer testing a genuinely pre-planned expectation.

  9. Hope

    Right. A two-tailed test is appropriate when either an increase or a decrease would matter. A one-tailed test is appropriate when there’s a clear, justified prediction in one direction before the data are examined. The choice matters because the two approaches use different tail probabilities and can lead to different decisions.

  10. Maria

    The chapter describes two ways to make the decision. One is to compare the test statistic with a critical value; the other is to compare the p-value with alpha, the chosen significance level.

  11. Hope

    Alpha is the threshold we set for calling a result unlikely enough to count as statistically significant. For example, alpha = .05 means we’re using five percent as that cutoff. In the critical-value method, alpha determines the boundary, and we check whether our test statistic falls beyond it in the direction—or directions—specified by H₁.

  12. Maria

    So, for a two-tailed z-test at alpha .05, the critical z-values are about −1.96 and +1.96. The two tails together contain five percent of the standard normal distribution—2.5 percent in each tail—and the central region contains the rest.

  13. Hope

    For a two-tailed test, the chapter also gives approximately ±2.58 at alpha .01 and ±3.30 at alpha .001. Smaller alpha means a more extreme result is needed before we reject H₀.

  14. Maria

    For a one-tailed test at alpha .05, the cutoff is about 1.645 for an upper-tail test, or −1.645 for a lower-tail test. At alpha .01, the corresponding cutoffs are about +2.33 or −2.33.

  15. Hope

    The direction comes from the alternative hypothesis. If H₁ says the mean is greater than the hypothesized value, look in the upper tail; if it says the mean is less, look in the lower tail. A handy reminder from the lesson is that the inequality in the alternative points toward the tail we’re testing.

  16. Maria

    The other decision method uses the p-value. That’s the probability, assuming the null hypothesis is true, of getting the observed test statistic or one at least as extreme in the direction or directions of the alternative.

  17. Hope

    Then compare it with alpha. If the p-value is less than alpha, the result meets the chosen significance threshold, and we reject H₀. If it isn’t less than alpha, we don’t reject H₀; that still doesn’t establish that the null hypothesis is true.

  18. Maria

    Alpha is also connected to Type I error: falsely rejecting a null hypothesis that is actually true. Setting alpha at .05 means accepting a five-percent Type I error rate as the threshold for this testing procedure.

  19. Hope

    That’s why a p-value of .02 would be below a .05 threshold: the observed result, or something more extreme, would be unusual under H₀, so we would reject H₀ at that level. But the cutoff should fit the consequences and standards of the field. The lesson contrasts settings where five or even ten percent may be acceptable with highly precise manufacturing settings where a much smaller threshold might be required.

  20. Maria

    Let’s apply those ideas to the example. Researchers gave an antioxidant treatment to 16 elderly people and measured their cognitive test scores. The sample mean after treatment was 50.2, while prior information gave a population mean of 45 and a population standard deviation of 9.

  21. Hope

    For the two-tailed test, the hypotheses are H₀: μ = 45 and H₁: μ ≠ 45. That alternative is chosen because the question is whether scores changed, not just whether they increased. Even though the observed sample mean is higher, choosing an increase-only alternative after seeing the result would be choosing the direction after the fact.

  22. Maria

    To calculate the z statistic for the sample mean, subtract the hypothesized mean from the observed mean and divide by the standard error. The standard error is the population standard deviation divided by the square root of the sample size.

  23. Hope

    So here, z equals (50.2 − 45) divided by (9 divided by the square root of 16). The standard error is 9 divided by 4, or 2.25, and the resulting z is about 2.311. In other words, the sample mean is about 2.311 standard errors above the hypothesized mean.

  24. Maria

    For the upper tail, the probability of a z-value at least 2.311 is about .0104. But because H₁ is two-tailed, we also count results just as extreme in the lower direction.

  25. Hope

    The two-tailed p-value is therefore about twice .0104, which is .0208. That’s approximately 2.08 percent—not 2.8 percent—under the null model. It is less than .05, so we reject H₀ at the five-percent significance level, in favor of the conclusion that the mean is not 45.

  26. Maria

    But the decision depends on alpha. A p-value of .0208 is not below .01, so this result would not meet a one-percent significance threshold. Reporting the p-value lets readers compare the evidence with the threshold that makes sense for their setting.

  27. Hope

    And rejecting H₀ doesn’t tell us exactly what the population mean is, or by itself establish every detail about the treatment. The lesson suggests repeating the experiment; if a greater mean is the planned question in a future study, that directional alternative should be specified before collecting the new data.

  28. Maria

    There’s one more chapter 8 idea: Cohen’s d, a measure of effect size. Unlike the z calculation here, it describes the difference between the means in standard-deviation units, rather than dividing by the standard error, so it doesn’t scale the difference by sample size.

  29. Hope

    For this example, Cohen’s d is (50.2 − 45) divided by 9, which is about 0.58. That summarizes the observed difference relative to the population standard deviation, while the hypothesis test and its p-value address how unusual the sample result would be under the null assumption.

  30. Maria

    So the full workflow is: state H₀ and a pre-planned H₁, choose a significance level and one- or two-tailed test, calculate the statistic and p-value—or compare with the critical value—and make a careful decision without treating it as proof of certainty.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent