Professional Documents
Culture Documents
RELATED SAMPLES
PA 303
Ramy Lloyd L. Lotilla, EDD
The paired sample t-test, sometimes called the
dependent sample t-test, is a statistical procedure
used to determine whether the mean difference
between two sets of observations is zero.
PA 303
The Paired Samples t Test compares the means of two
measurements taken from the same individual, object, or
related units. These "paired" measurements can represent things
like:
A measurement taken at two different times (e.g., pre-test
and post-test score with an intervention administered
between the two time points)
PA 303
This test is also known as:
Dependent t Test
Paired t Test
Repeated Measures t Test
PA 303
Common Uses
The Paired Samples t Test is commonly used to test the following:
PA 303
Data Requirements
PA 303
Hypotheses
The hypotheses can be expressed in two different ways that express the same
idea and are mathematically equivalent:
where
µ1 is the population mean of variable 1, and
µ2 is the population mean of variable 2.
PA 303
Test Statistic
The test statistic for the Paired Samples t Test, denoted t, follows the same formula as
the one sample t test.
or
The calculated t value is then compared to the critical t value with df = n - 1 from
the t distribution table for a chosen confidence level. If the calculated t value is greater
than the critical t value, then we reject the null hypothesis (and conclude that the
means are significantly different).
x¯diff = Sample mean of the differences
n= Sample size (i.e., number of observations)
sdiff= Sample standard deviation of the differences
sx¯ = PA 303Estimated standard error of the mean (s/sqrt(n))
Data Set-Up
PA 303
HOW TO RUN A
PAIRED SAMPLES T TEST
IN SPSS?
PA 303
To Run a Paired Samples t Test in SPSS
PA 303
To Run a Paired Samples t Test in SPSS
The Paired-Samples T Test window opens where you will
specify the variables to be used in the analysis. All of the
variables in your dataset appear in the list on the left side.
Move variables to the right by selecting them in the list and
clicking the blue arrow buttons. You will specify the paired
variables in the Paired Variables area.
A Pair: The “Pair” column represents the number of Paired
Samples t Tests to run. You may choose to run multiple Paired
Samples t Tests simultaneously by selecting multiple sets of
matched variables. Each new pair will appear on a new line.
B Variable1: The first variable, representing the first group
of matched values. Move the variable that represents the
first group to the right where it will be listed beneath the
“Variable1” column.
C Variable2: The second variable, representing the
second group of matched values. Move the variable that
represents the second group to the right where it will be
listed beneath the “Variable2” column.
D Options: Clicking Options will open a window where you
can specify the Confidence Interval Percentage and how
the analysis will address Missing Values (i.e., Exclude cases
analysis by analysis or Exclude cases listwise).
Click Continue when you are finished making specifications.
PA 303
To Run a Paired Samples t Test in SPSS
•Setting the confidence interval percentage does not have any impact on the calculation
of the p-value.
•If you are only running one paired samples t test, the two "missing values" settings will
produce the same results. There will only be differences if you are running 2 or more
paired samples t tests. (This would look like having two or more rows in the main Paired
Samples T Test dialog window.)
PA 303
Step 1: State the null and Alternative means is equal to 0")
Hypotheses H1: µ1 - µ2 ≠ 0 ("the difference
Ho: There is no significant difference between the paired population
in the perceived friendliness for means is not 0")
attractive and unattractive
pictures of people. Step 2: Identity the test procedure
Ha: There is a significant difference in Test Procedure: Paired Sample t-test
the perceived friendliness for
attractive and unattractive Step 3: Identify the level of significance
pictures of people. a= 0.05
H0: µ1 = µ2 ("the paired population
means are equal") Step 4: Write the Decision Rule
H1: µ1 ≠ µ2 ("the paired population
means are not equal") Reject Ho if the sig < a; Otherwise, fail
OR to reject Ho.
H0: µ1 - µ2 = 0 ("the difference
between
PA 303 the paired population Step 5: Solve
RUNNING THE TEST
Click Analyze > Compare Means > Paired-Samples T Test... on the top menu, as shown
below:
PA 303
Transfer the variables into the Paired Variables: box. There are two ways to do this: (a) click
on both variables whilst holding down the shift key (which highlights them) and then pressing
the Right arrow button; or (b) drag-and-drop each variable separately into the boxes. You
will end up with a screen similar to the one shown below:
Note:
button shifts the pair of variables you
have highlighted down one level.
PA 303
If you need to change the confidence level limits or exclude cases, click on the Options
button. You will be presented with the Paired-Samples T Test: Options dialogue box, as
shown below:
Click on the button. You will be returned to the Paired-Samples T Test dialogue box.
PA 303
This tells us that for the mean friendliness rating for the attractive faces
is 7.100 (mean column and attractive row), the sample standard
deviation (s) is 1.663, and the standard error of the means (sM) is
0.5265 (which should and does equal s / √N = 1.663 / √10). Likewise,
this tells us that for the unattractive faces there were 10 scores (in the
N column of the unattractive row), that the sample mean (𝑋 ) is 5.900
(mean column and the unattractive row), the sample standard
deviation (s) is 1.969, and the standard error of the means (sm) is
0.623 (which should and does equal s / √N = 1.969 / √10).
PA 303
OUTPUT OF PAIRED SAMPLE T-TEST IN SPSS
The second table in the SPSS output is Paired Samples Correlations tells us how
the two conditions relate to one another. This table is not necessary for the
interpretation of the t-test results, so feel free to ignore it at this point!
PA 303
OUTPUT OF PAIRED SAMPLE T-TEST IN SPSS
Paired Samples Test Table
The third table in the SPSS output Paired Samples Test table is where the results of the
dependent t-test are presented. A lot of information is presented here and it is important to
remember that this information refers to the differences between the two jumps (the subtitle
reads "Paired Differences"). As such, the columns of the table labelled "Mean", "Std.
Deviation", "Std. Error Mean" and "95% Confidence Interval of the Difference" refer to the
mean difference between the two jumps and the standard deviation, standard error and 95%
confidence interval of this mean difference, respectively. The last three columns express the
results of the dependent t-test, namely the t-value ("t"), the degrees of freedom ("df") and the
significance level ("Sig. (2-tailed)").
PA 303
OUTPUT OF PAIRED SAMPLE T-TEST IN SPSS
Reading from left to right:
The third table is Paired Samples Test gives the 1. First column: The pair of variables
hypothesis test results. being tested, and the order the
subtraction was carried out. (If you
have specified more than one variable
pair, this table will have multiple rows.)
3 5
6
7
8 6. t: The test statistic (denoted t) for the
2 4
paired T test.
1
7. df: The degrees of freedom for this
test.
PA 303
There are two types of significance to consider when interpreting the results of a paired
sample t-test, statistical significance and practical significance.
Statistical Significance
To determine whether the difference between the population means is statistically
significant, compare the p-value to the significance level. Usually, a significance level
(denoted as α or alpha) of 0.05 works well. A significance level of 0.05 indicates a 5% risk of
concluding that a difference exists when there is no actual difference.
P-value ≤ α: The difference between the means is statistically significant (Reject Ho)
If the p-value is less than or equal to the significance level, the decision is to reject the null
hypothesis. Use your specialized knowledge to determine whether the difference is practically
significant.
P-value > α: The difference between the means is not statistically significant (Fail to reject
Ho) If the p-value is greater than the significance level, the decision is to fail to reject the
null hypothesis. You do not have enough evidence to conclude that the difference
between the population means is statistically significant. You should make sure that your
test has enough power to detect a difference that is practically significant.
Practical Significance
Practical significance depends on the subject matter. It is not uncommon, especially with
large sample sizes, to observe a result that is statistically significant but not practically
significant. In most cases, both types of significance are required in order to draw meaningful
conclusions.
PA 303
Reporting the Output of the Paired T-Test
PA 303
Example # 2
Research question: Is there a difference in marks following a teaching intervention?
The marks for a group of students before(pre) and after(post) a teaching intervention are
recorded below:
Student Before mark After mark
1 18 22
2 21 25
3 16 17
4 22 24
5 19 16
6 24 29
7 17 20
8 21 23
9 23 19
10 18 20
11 14 15
12 16 15
13 16 18
14 19 26
15 18 18
16 20 24
17 12 18
18 22 25
PA 303
19 15 19
20 17 16
Step 1: State the null and Alternative Hypotheses
Ho: There is no significant difference in means of
Research question: Is there a difference in
before and after marks
marks following a teaching intervention?
Ha: There is a significant difference in means of
The marks for a group of students before and after marks
before(pre) and after(post) a teaching
intervention are recorded below: Step 2: Identity the test procedure
Student Before mark After mark Test Procedure: Paired Sample T-test
1 18 22
2 21 25
3 16 17 Step 3: Identify the level of significance
4 22 24 a= 0.05
5 19 16
6 24 29
7 17 20
8 21 23 Step 4: Write the Decision Rule
9 23 19
10 18 20 Reject Ho if the sig < a; Otherwise, fail to reject
11 14 15
12 16 15 Ho.
13 16 18
14 19 26
15 18 18
16 20 24 Step 5: Solve
17 12 18
18 22 25
19 15 19
20 PA 303
17 16
Solving Using the SPSS Software
Procedure: Analyze > Compare Means > Paired Sample T-test
PA 303
Solving Using the SPSS Software
Click Ok
PA 303
Solving Using the SPSS Software
Decision: The null hypotheses is rejected, since p <0.05 (in fact p =0.004)
Conclusion: With t (19) = 3.3231, p < .05, there is a strong evidence that the teaching intervention improves
marks of the students.
PA 303 In this data set, it improved marks, on average, by approximately 2 points. Of course, if we
were to be take other sample marks , we could get a ‘mean paired difference’ in marks different from 2.05.
Activity 9
PA 303
Activity 10
A researcher is interested in infants' attention to their mothers' voices. The Day 1 Day 7
research wants to know if the infant's attention increases to the mother's voice
after spending the first week of life with the mother. The researcher selects 10 5 8
full-term infants with normal health who experienced uncomplicated 6 9
deliveries and tested the number of seconds that the infant oriented in the
direction of the mother's voice on Day 1 and on Day 7 after delivery. These
fictional data appear below. Use an α=0.01
2 7
State the null and alternative hypothesis
7 8
Identify the test procedure 6 9
Identify the level of significance 5 8
Write the decision rule 8 7
Solve (show paired samples statistics, paired samples correlations, paired 3 9
samples test)
Write the decision
6 10
Write the conclusion 7 6
PA 303
Wilcoxon Signed Rank
Test
Ramy Lloyd Lotilla, EDD
PA 303
Wilcoxon Signed Rank Test (Non-parametric
equivalent to paired t-test)
PA 303
Wilcoxon Paired Signed-Rank Test in
SPSS
Exercise 1: Twelve adult males were put on a liquid diet in a weight-reducing
plan. Weights were recorded before and after the diet. The data are shown
in the table below. Use the Wilcoxon Signed-Rank Test to ascertain if the plan
was successful. Use α=0.05.
PA 303
Research question: Is the weight-reducing
plan successful, that is, is there a reduction in
the weights of the participants following a
weight-reducing plan? Step 2: Identity the test procedure
Test Procedure: Wilcoxon Signed
Rank Test
Step 1: State the null and alternative Hypotheses
Ho: There is no reduction in the weights of the
participants following the weight-reducing plan Step 3: Identify the level of significance
Ha: There is a reduction in the weights of the α = 0.05
participants following the weight-reducing plan
Step 4: Write the Decision Rule
Reject Ho if the sig < α; Otherwise, fail to reject
Ho.
Step 5: Solve
PA 303
Procedure: Analyze > Nonparametric Tests > Legacy Dialogs > 2 Related Samples
PA 303
Select your paired
variables.
Click Ok
PA 303
p-value = ½ Asymp.Sig (2-tailed) = ½(.6240) = .3120
[If the test were two-tailed, the p-value would be Asymp. Sig. (2-tailed).]
Decision: SincePAp303>0.05, we fail to reject the null hypothesis.
Conclusion: With Z = .490, p > .05, there is not enough evidence to conclude that the weight-reducing plan was
successful
Activity 11
PA 303
After 1
Before
Child Week of
Treatment
Treatment
1 85 75
2 70 50
3 40 50
4 65 40
5 80 20
6 75 65
7 55 40
8 20 25
PA 303
Activity 12
PA 303
Systolic Blood Systolic Blood
Pressure Pressure
Patient
Before Exercise After Exercise
Program Program
1 125 118
2 132 134
3 138 130
4 120 124
5 125 105
6 127 130
7 136 130
8 139 132
9 131 123
10 132 128
11 135 126
12 136 140
PA 303
13 128 135
14 127 126
Good luck!!!
PA 303