Skip to main content
Statistics LibreTexts

11.3: Dependent Sampling – Matched Pairs t‐test

  • Page ID
    20915
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    The independent models shown above compared samples that were not related. However, it is often advantageous to have related samples that are paired up – two measurements from a single population. The model we will consider here is called the matched pairs \(t\)‐test also known as the paired difference \(t\)‐test. The advantage of this design is that we can eliminate variability because other factors are not being studied, increasing the power of the design.

    In this model we take the difference of each pair and create a new population of differences, so if effect, the hypothesis test is a one population test of mean that we already covered in the prior section.

    Matched pairs \(t\)‐test to compare the means for two dependent populations

    Model Assumptions

    • Dependent Sampling
    • \(X_{d}=X_{1}-X_{2}\)
    • \(\overline{X}_{d}=\overline{X}_{1}-\overline{X}_{2}\) approximately Normal

    Test Statistic

    • \(t=\dfrac{\overline{X}_{d}-\mu_{d}}{s_{d} / \sqrt{n}}\)
    • \(d f=n-1\)

    Example: Rental cars

    An independent testing agency is comparing the daily rental cost for renting a compact car from Hertz and Avis.   

    clipboard_e7932122021c14e748922d7c3df58e948.png

    A random sample of 15 cities is obtained and the following rental information obtained.   

    clipboard_e3864ae1455184ed92a227db8ae460063.png

    At the .05 significance level can the testing agency conclude that there is a difference in the rental charged?

    Notice in this example that cities are the single population being sampled and that two measurements (Hertz and Avis) are being taken from each city. Using the matched pair design, we can eliminate the variability due to cities being differently priced (Honolulu is cheap because you can’t drive very far on Oahu!)

    Solution

    Design

    Research Hypotheses:  

    \(H_o: \mu_{1}=\mu_{2}\) (Hertz and Avis have the same mean price for compact cars.)

    \(H_a: \mu_{1} \neq \mu_{2}\) (Hertz and Avis do not have the same mean price for compact cars.)

    Model will be matched pair t‐test and these hypotheses can be restated as: \(Ho: \mu_{d}=0 \quad Ha: \mu_{d} \neq 0\)

    The test will be run at a level of significance (\(\alpha\)) of 5%.

    Model is two‐tailed matched pairs \(t\)‐test with 14 degrees of freedom. Reject \(H_o\) if \(t < ‐2.145\) or \(t >2.145\)

    Data/Results

    clipboard_e3170763f0a1ddba188ba37221a736cc7.png

    We take the difference for each pair and find the sample mean and standard deviation.

    \(\begin{aligned}
    \overline{X}_{d}&=1.80 \\
    s_{d}& = 2.513\\
    n &= 15\\
    t&=\dfrac{1.80-0}{2.513/\sqrt{15}}=2.77
    \end{aligned}\)

    clipboard_ed30171c8caf4351437af4c53b97207f7.png

    Reject \(H_o\) under either the critical value or p‐value method.

    Conclusion

    There is a difference in mean price for compact cars between Hertz and Avis. Avis has lower mean prices.

    The advantage of the matched pair design is clear in this example. The sample standard deviation for the Hertz prices is $5.23 and for Avis it is $5.62. Much of this variability is due to the cities, and the matched pairs design dramatically reduces the standard deviation to $2.51, meaning the matched pairs t‐test has significantly more power in this example.

     


    This page titled 11.3: Dependent Sampling – Matched Pairs t‐test is shared under a CC BY-SA 4.0 license and was authored, remixed, and/or curated by Maurice A. Geraghty via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.