Course contentsShow
← Data Science
Lesson 375 of 2,14510. Hypothesis Tests for MeansFree lesson

Paired t-Test vs Two-Sample t-Test

Compare the power advantage of pairing and when each test design is appropriate.

Paired t-Test vs Two-Sample t-Test

You'll learn: When to choose a paired t-test over a two-sample t-test and why pairing increases statistical power.

The Core Difference

Both tests compare two means, but they handle the data differently:

  • Two-Sample t-Test: Compares means from two independent groups (e.g., treatment group vs control group with different people)
  • Paired t-Test: Compares means from matched observations (e.g., same people measured before and after treatment)

Why Pairing Matters: The Power Advantage

Imagine measuring blood pressure for 20 patients before and after medication. People naturally have different baseline blood pressures—some run high, others low. This variability adds "noise" to your data.

With a two-sample t-test, all that person-to-person variation becomes part of the error. You're comparing two groups while fighting against natural individual differences.

With a paired t-test, you focus on each person's change. The baseline differences cancel out because you're looking at before-minus-after for the same individual. This dramatically reduces noise and increases your ability to detect real treatment effects—that's statistical power.

When to Use Each Design

Use Paired t-Test when:

  • Same subjects measured twice (before/after)
  • Naturally matched pairs (twins, left/right measurements)
  • You can control the pairing structure

Use Two-Sample t-Test when:

  • Groups are truly independent
  • Pairing isn't possible or meaningful
  • Different subjects in each group

Key Takeaway: The paired t-test is more powerful than the two-sample t-test when you have matched observations, because it removes between-subject variability and focuses on within-subject changes—but you must have a meaningful pairing structure to use it.