Skip to content Skip to navigation

Connexions

You are here: Home » Content » Hypothesis Testing: Two Population Means and Two Population Proportions: Matched or Paired Samples

Navigation

Content Actions

  • Download module PDF
  • Add to ...
    Add the module to:
    • My Favorites
    • A lens
    • An external social bookmarking service
    • My Favorites (What is 'My Favorites'?)
      'My Favorites' is a special kind of lens which you can use to bookmark modules and collections directly in Connexions. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need a Connexions account to use 'My Favorites'.
    • A lens (What is a lens?)

      Definition of a lens

      Lenses

      A lens is a custom view of Connexions content. You can think of it as a fancy kind of list that will let you see Connexions through the eyes of organizations and people you trust.

      What is in a lens?

      Lens makers point to Connexions materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

      Who can create a lens?

      Any individual Connexions member, a community, or a respected organization.

    • External bookmarks
  • E-mail the authors

Lenses

What is a lens?

Definition of a lens

Lenses

A lens is a custom view of Connexions content. You can think of it as a fancy kind of list that will let you see Connexions through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to Connexions materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual Connexions member, a community, or a respected organization.

This content is ...

In these lenses

  • CCOTP

    This module is included inLens: CCOTP Lens
    By: Tahiya MaromeAs a part of collection:"Collaborative Statistics"

    Comments:

    "Part of the Books featured on Community College Open Textbook Project"

    Click the "CCOTP" link to see all content selected in this lens.

  • Bio 502 at CSUDH

    This module is included inLens: Bio 502
    By: Terrence McGlynnAs a part of collection:"Collaborative Statistics"

    Comments:

    "This is the course textbook for Biology 502 at CSU Dominguez Hills"

    Click the "Bio 502 at CSUDH" link to see all content selected in this lens.

Recently Viewed

This feature requires Javascript to be enabled.

Tags

(What is a tag?)

These tags come from the endorsement, affiliation, and other lenses that include this content.

Hypothesis Testing: Two Population Means and Two Population Proportions: Matched or Paired Samples

Module by: Susan Dean, Dr. Barbara Illowsky

Summary: This module provides an overview of Hypothesis Testing: Matched or Paired Samples as a part of Collaborative Statistics collection (col10522) by Barbara Illowsky and Susan Dean.

  1. Simple random sampling is used.
  2. Differences are calculated from the matched or paired samples.
  3. The matched pairs have differences that either come from a population that is normal or the number of differences is greater than 30 or both.

In a hypothesis test for matched or paired samples, subjects are matched in pairs and differences are calculated. The differences are the data. The population mean for the differences, μ d μ d , is then tested using a Student-t test for a single population mean with n-1n-1 degrees of freedom where nn is the number of differences.

The test statistic (t-score) is:

t = x d ¯ μ d ( s d n ) t= x d ¯ μ d ( s d n ) (1)

Example 1: Matched or paired samples

A study was conducted to investigate the effectiveness of hypnotism in reducing pain. Results for randomly selected subjects are shown in the table. The "before" value is matched to an "after" value.

Subject: A B C D E F G H
Before 6.6 6.5 9.0 10.3 11.3 8.1 6.3 11.6
After 6.8 2.5 7.4 8.5 8.1 6.1 3.4 2.0

Problem 1

Are the sensory measurements, on average, lower after hypnotism? Test at a 5% significance level.

Solution 1

Corresponding "before" and "after" values form matched pairs.

After Data Before Data Difference
6.8 6.6 0.2
2.4 6.5 -4.1
7.4 9 -1.6
8.5 10.3 -1.8
8.1 11.3 -3.2
6.1 8.1 -2
3.4 6.3 -2.9
2 11.6 -9.6

The data for the test are the differences: {0.2, -4.1, -1.6, -1.8, -3.2, -2, -2.9, -9.6}

The sample mean and sample standard deviation of the differences are: x d ¯ = -3.13 x d =-3.13 and s d = 2.91 s d =2.91 Verify these values.

Let μ d μ d be the population mean for the differences. We use the subscript dd to denote "differences."

Random Variable: X d ¯ X d = the average difference of the sensory measurements

H o : μ d 0 H o : μ d 0 (2)
There is no improvement. ( μ d μ d is the population mean of the differences.)

H a : μ d < 0 H a : μ d <0 (3)
There is improvement. The score should be lower after hypnotism so the difference ought to be negative to indicate improvement.

Distribution for the test: The distribution is a student-t with df = n - 1 = 8 - 1 = 7 df=n-1=8-1=7. Use t 7 t 7 . (Notice that the test is for a single population mean.)

Calculate the p-value using the Student-t distribution: p-value = 0.0095p-value=0.0095

Graph:

Figure 1
Normal distribution curve of the average difference of sensory measurements with values of -3.13 and 0. A vertical upward line extends from -3.13 to the curve, and the p-value is indicated in the area to the left of this value.

X¯ d X d is the random variable for the differences.

The sample mean and sample standard deviation of the differences are:

x¯ d = -3.13 x d =-3.13

s¯ d = 2.91 s d =2.91

Compare αα and the p-value: α = 0.05α=0.05 and p-value = 0.0095 p-value=0.0095. α > p-valueα>p-value.

Make a decision: Since α> p-valueα>p-value, reject H o H o .

This means that μ d < 0 μ d <0 and there is improvement.

Conclusion: At a 5% level of significance, from the sample data, there is sufficient evidence to conclude that the sensory measurements, on average, are lower after hypnotism. Hypnotism appears to be effective in reducing pain.

Note:

For the TI-83+ and TI-84 calculators, you can either calculate the differences ahead of time (after - before) and put the differences into a list or you can put the after data into a first list and the before data into a second list. Then go to a third list and arrow up to the name. Enter 1st list name - 2nd list name. The calculator will do the subtraction and you will have the differences in the third list.

Note:

TI-83+ and TI-84: Use your list of differences as the data. Press STAT and arrow over to TESTS. Press 2:T-Test. Arrow over to Data and press ENTER. Arrow down and enter 0 for μ0μ0, the name of the list where you put the data, and 1 for Freq:. Arrow down to μ: and arrow over to < μ0μ0. Press ENTER. Arrow down to Calculate and press ENTER. The p-value is 0.0094 and the test statistic is -3.04. Do these instructions again except arrow to Draw (instead of Calculate). Press ENTER.

Example 2

A college football coach was interested in whether the college's strength development class increased his players' maximum lift (in pounds) on the bench press exercise. He asked 4 of his players to participate in a study. The amount of weight they could each lift was recorded before they took the strength development class. After completing the class, the amount of weight they could each lift was again measured. The data are as follows:

Weight (in pounds) Player 1 Player 2 Player 3 Player 4
Amount of weighted lifted prior to the class 205 241 338 368
Amount of weight lifted after the class 295 252 330 360

The coach wants to know if the strength development class makes his players stronger, on average.

Problem 1

Record the differences data. Calculate the differences by subtracting the amount of weight lifted prior to the class from the weight lifted after completing the class. The data for the differences are: {90, 11, -8, -8}

Using the differences data, calculate the sample mean and the sample standard deviation.

x¯ d = 21.3 s d = 46.7 x d =21.3 s d =46.7

Using the difference data, this becomes a test of a single __________ (fill in the blank).

Define the random variable: X¯ d = X d = average difference in the maximum lift per player.

The distribution for the hypothesis test is t 3 t 3 .

H o : μ d 0 H a : μ d > 0 H o :μd0 H a : μ d >0

Graph:

Figure 2
Normal distribution curve with values of 0 and 21.3. A vertical upward line extends from 21.3 to the curve and the p-value is indicated in the area to the right of this value.

Calculate the p-value: The p-value is 0.2150

Decision: If the level of significance is 5%, the decision is to not reject the null hypothesis because α < p-value α<p-value.

What is the conclusion?

Solution 1

means; At a 5% level of significance, from the sample data, there is not sufficient evidence to conclude that the strength development class helped to make the players stronger, on average.

Example 3

Seven eighth graders at Kennedy Middle School measured how far they could push the shot-put with their dominant (writing) hand and their weaker (non-writing) hand. They thought that they could push equal distances with either hand. The following data was collected.

Distance (in feet) using Student 1 Student 2 Student 3 Student 4 Student 5 Student 6 Student 7
Dominant Hand 30 26 34 17 19 26 20
Weaker Hand 28 14 27 18 17 26 16

Problem 1

Conduct a hypothesis test to determine whether the differences in distances between the children's dominant versus weaker hands is significant.

hint:

use a t-test on the difference data.

Check:

The test statistic is 2.18 and the p-value is 0.0716.

What is your conclusion?

Solution 1

H0H0: μdμd equals 0; HaHa: μdμd does not equal 0; Do not reject the null; At a 5% significance level, from the sample data, there is not sufficient evidence to conclude that the differences in distances between the children's dominant versus weaker hands is significant (there is not sufficient evidence to show that the children could push the shot-put further with their dominant hand). Alpha and the p-value are close so the test is not strong.

Comments, questions, feedback, criticisms?

Send feedback