Matched pairs t-test

    Understanding Matched Pairs t-Test

    The matched pairs t-test is a specific type of one-sample t-test used when data are collected in pairs. This design is crucial for eliminating variability that is not due to the treatment or condition being studied. Instead of comparing two independent groups, we are interested in the differences within each pair. This typically occurs in before-and-after studies, or when two different treatments are applied to the same experimental unit, or when units are naturally paired (e.g., twins, husband/wife, left/right hand).

    When to Use a Matched Pairs t-Test

    You should consider a matched pairs design when:

    • You have two measurements on the same individual (e.g., blood pressure before and after medication).
    • You have measurements on two individuals who are related or naturally paired (e.g., comparing the academic performance of identical twins).
    • You are trying to control for extraneous variables that might otherwise obscure the effect of interest. By pairing, you reduce the impact of individual variability.

    The key is that the two observations in each pair are dependent.

    Hypotheses for Matched Pairs t-Test

    Let \(\mu_d\) represent the true mean difference between the paired observations. The hypotheses are typically formulated as follows:

    • Null Hypothesis (H₀): There is no true mean difference between the paired observations. \(H_0: \mu_d = 0\)
    • Alternative Hypothesis (Hₐ): There is a true mean difference. This can be one-sided or two-sided:
      • \(H_a: \mu_d \neq 0\) (two-sided)
      • \(H_a: \mu_d > 0\) (one-sided, positive difference)
      • \(H_a: \mu_d < 0\) (one-sided, negative difference)

    It's important to define the order of subtraction (e.g., Before - After or After - Before) and stick to it consistently.

    Conditions for Inference

    Before performing a matched pairs t-test, certain conditions must be met:

    • Random: The pairs must be a random sample from the population of interest, or the treatments must be randomly assigned within pairs.
    • 10% Condition: When sampling without replacement, the number of pairs sampled (n) should be no more than 10% of the population of pairs.
    • Normal/Large Sample: The distribution of the differences must be approximately normal, or the sample size of pairs (n) must be large enough (typically \(n \ge 30\)) for the Central Limit Theorem to apply to the distribution of the sample mean difference. This can be checked by plotting the differences.

    Test Statistic and P-value

    Once the differences (\(d_i\)) for each pair are calculated, the matched pairs t-test essentially becomes a one-sample t-test on these differences. The test statistic is calculated as:

    \(t = \frac{\bar{d} - \mu_{d0}}{s_d / \sqrt{n}}\) where:

    • \(\bar{d}\) is the sample mean of the differences.
    • \(\mu_{d0}\) is the hypothesized mean difference under \(H_0\) (usually 0).
    • \(s_d\) is the sample standard deviation of the differences.
    • \(n\) is the number of pairs.

    The degrees of freedom for this t-distribution are \(df = n - 1\). The P-value is then found using this t-statistic and degrees of freedom, similar to a one-sample t-test.

    Example Application

    Consider a study testing a new fertilizer. Ten plots of land are divided in half; one half receives the new fertilizer, the other a control. The yield from each half-plot is measured. Here, each plot is a pair, and we'd analyze the difference in yield (New Fertilizer - Control) for each plot.

    Practice questions

    1

    When is a matched pairs t-test the appropriate statistical procedure to use?

    2

    What is the primary benefit of using a matched pairs design over an independent samples design?

    3

    What is the null hypothesis for a matched pairs t-test typically stated as?

    4

    What assumption about the population distribution of the differences is required for a matched pairs t-test?

    Practice more free →

    Free AP4U account — unlimited practice, AI grader, and progress tracking.

    Canonical: https://apforu.com/ap/statistics/unit-7-inference-for-quantitative-data-means/matched-pairs-t-test