Sie sind auf Seite 1von 21

Dependent T-Test using SPSS

Statistics
Introduction
The dependent t-test (called the paired-samples t-test in SPSS Statistics) compares the
means between two related groups on the same continuous, dependent variable. For
example, you could use a dependent t-test to understand whether there was a
difference in smokers' daily cigarette consumption before and after a 6 week
hypnotherapy programme (i.e., your dependent variable would be "daily cigarette
consumption", and your two related groups would be the cigarette consumption values
"before" and "after" the hypnotherapy programme). If your dependent variable is
dichotomous, you should instead use McNemar's test.

o Dichotomous variables are nominal variables which have only two categories or levels.
For example, if we were looking at gender, we would most probably categorize
somebody as either "male" or "female". This is an example of a dichotomous variable
(and also a nominal variable). Another example might be if we asked a person if they
owned a mobile phone. Here, we may categorise mobile phone ownership as either "Yes"
or "No". In the real estate agent example, if type of property had been classified as either
residential or commercial then "type of property" would be a dichotomous variable.

This "quick start" guide shows you how to carry out a dependent t-test using SPSS
Statistics, as well as interpret and report the results from this test. However, before we
introduce you to this procedure, you need to understand the different assumptions that
your data must meet in order for a dependent t-test to give you a valid result. We
discuss these assumptions next.

Assumptions
When you choose to analyse your data using a dependent t-test, part of the process
involves checking to make sure that the data you want to analyse can actually be
analysed using a dependent t-test. You need to do this because it is only appropriate to
use a dependent t-test if your data "passes" four assumptions that are required for a
dependent t-test to give you a valid result. In practice, checking for these four
assumptions just adds a little bit more time to your analysis, requiring you to click a
few more buttons in SPSS Statistics when performing your analysis, as well as think a
little bit more about your data, but it is not a difficult task.

Before we introduce you to these four assumptions, do not be surprised if, when
analysing your own data using SPSS Statistics, one or more of these assumptions is
violated (i.e., is not met). This is not uncommon when working with real-world data
rather than textbook examples, which often only show you how to carry out a
dependent t-test when everything goes well! However, don't worry. Even when your
data fails certain assumptions, there is often a solution to overcome this. First, let's
take a look at these four assumptions:

o Assumption #1: Your dependent variable should be measured on


a continuous scale (i.e., it is measured at the interval or ratio level). Examples
of variables that meet this criterion include revision time (measured in hours),
intelligence (measured using IQ score), exam performance (measured from 0 to
100), weight (measured in kg), and so forth. You can learn more about
continuous variables in our article: Types of Variable.
o Assumption #2: Your independent variable should consist of two
categorical, "related groups" or "matched pairs". "Related groups" indicates
that the same subjects are present in both groups. The reason that it is possible
to have the same subjects in each group is because each subject has been
measured on two occasions on the same dependent variable. For example, you
might have measured 10 individuals' performance in a spelling test (the
dependent variable) before and after they underwent a new form of
computerised teaching method to improve spelling. You would like to know if
the computer training improved their spelling performance. The first related
group consists of the subjects at the beginning of (prior to) the computerised
spelling training and the second related group consists of the same subjects, but
now at the end of the computerised training. The dependent t-test can also be
used to compare different subjects, but this does not happen very often.
Nonetheless, to learn more about the different study designs that can be
analysed using a dependent t-test, see our enhanced dependent t-test guide.
o Assumption #3: There should be no significant outliers in
the differences between the two related groups. Outliers are simply single data
points within your data that do not follow the usual pattern (e.g., in a study of
100 students' IQ scores, where the mean score was 108 with only a small
variation between students, one student had a score of 156, which is very
unusual, and may even put her in the top 1% of IQ scores globally). The
problem with outliers is that they can have a negative effect on the dependent t-
test, reducing the validity of your results. In addition, they can affect the
statistical significance of the test. Fortunately, when using SPSS Statistics to
run a dependent t-test on your data, you can easily detect possible outliers. In
our enhanced dependent t-test guide, we (a) show you how to use SPSS
Statistics to compute the difference scores, (b) show you how to detect outliers
using SPSS Statistics, and (c) discuss some of the options you have in order to
deal with outliers.
o Assumption #4: The distribution of the differences in the dependent
variable between the two related groups should be approximately normally
distributed. We talk about the dependent t-test only
requiring approximately normal data because it is quite "robust" to violations
of normality, meaning that the assumption can be a little violated and still
provide valid results. You can test for normality using the Shapiro-Wilk test of
normality, which is easily tested for using SPSS Statistics. In addition to
showing you how to do this in our enhanced dependent t-test guide, we also
explain what you can do if your data fails this assumption (i.e., if it fails it more
than a little bit).
You can check assumptions #3 and #4 using SPSS Statistics. Before doing this, you
should make sure that your data meets assumptions #1 and #2, although you don't
need SPSS Statistics to do this. When moving on to assumptions #3 and #4, we
suggest testing them in this order because it represents an order where, if a violation to
the assumption is not correctable, you will no longer be able to use a dependent t-test
(although you may be able to run another statistical test on your data instead). Just
remember that if you do not run the statistical tests on these assumptions correctly, the
results you get when running a dependent t-test might not be valid. This is why we
dedicate a number of sections of our enhanced dependent t-test guide to help you get
this right. You can find out about our enhanced content as a whole here, or more
specifically, learn how we help with testing assumptions here.

In the section, Test Procedure in SPSS Statistics, we illustrate the SPSS Statistics
procedure required to perform a dependent t-test assuming that no assumptions have
been violated. First, we set out the example we use to explain the dependent t-test
procedure in SPSS Statistics.

Example
A group of Sports Science students (n = 20) are selected from the population to
investigate whether a 12-week plyometric-training programme improves their
standing long jump performance. In order to test whether this training improves
performance, the students are tested for their long jump performance before they
undertake a plyometric-training programme and then again at the end of the
programme (i.e., the dependent variable is "standing long jump performance", and the
two related groups are the standing long jump values "before" and "after" the 12-week
plyometric-training programme).

Test Procedure in SPSS Statistics


The six steps below show you how to analyse your data using a dependent t-test in
SPSS Statistics when the four assumptions in the previous section, Assumptions, have
not been violated. At the end of these six steps, we show you how to interpret the
results from this test. If you are looking for help to make sure your data meets
assumptions #3 and #4, which are required when using a dependent t-test, and can be
tested using SPSS Statistics, you can learn more in our enhanced guides here. We also
show you how to correctly enter your data into SPSS Statistics in order to run a
dependent t-test, as well as explaining how to deal with missing values (e.g., if a
participant completed a pre-test but failed to turn up to the post-test). However, in this
"quick start" guide, we focus on the six steps required to run the dependent t-test
procedure using SPSS Statistics.

 Click Analyze > Compare Means > Paired-Samples T Test... on the top menu, as
shown below:
 You will be presented with the Paired-Samples T Test dialogue box, as shown
below:

 Transfer the variables JUMP1 and JUMP2 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 button; or (b) drag-and-drop each variable
separately into the boxes. If you are using older versions of SPSS Statistics, you will
need to transfer the variables using the former method. 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.
button shifts the pair of variables you have highlighted up one level.
button shifts the order of the variables within a variable pair.

 If you need to change the confidence level limits or exclude cases, click on the button.
You will be presented with the Paired-Samples T Test: Options dialogue box, as shown below:

 Click the button. You will be returned to the Paired-Samples T Test dialogue box.
 Click the button.

Output of the Dependent T-Test in SPSS Statistics


SPSS Statistics generates three tables in the Output Viewer under the title "T-Test", but you
only need to look at two tables: the Paired Samples Statistics table and the Paired Samples
Test table. In addition, you will need to interpret the boxplots that you created to check for
outliers and the output from the Shapiro-Wilk test for normality, which you used to determine
whether the distribution of the differences in the dependent variable between the two related
groups were approximately normally distributed. This is explained in our enhanced guide.
However, in this "quick start" guide, we focus on the two main tables you need to understand if
your data has met all the necessary assumptions:

Paired Sample Statistics Table

The first table, titled Paired Samples Statistics, is where SPSS Statistics has generated
descriptive statistics for your variables. You could use the results here to describe the
characteristics of the first and second jumps in your write-up.

Paired Samples Test Table

The 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)").
You are essentially conducting a one-sample t-test on the differences between the groups.

Reporting the Output of the Dependent T-Test


You might report the statistics in the following format: t(degrees of freedom) = t-value, p =
significance level. In our case this would be: t(19) = -4.773, p < 0.0005. Due to the means of the
two jumps and the direction of the t-value, we can conclude that there was a statistically
significant improvement in jump distance following the plyometric-training programme from
2.48 ± 0.16 m to 2.52 ± 0.16 m (p < 0.0005); an improvement of 0.03 ± 0.03 m.

Note: SPSS Statistics can output the results to many decimal places, but you should understand
your measurement scale in order to know whether it is appropriate to report your results with
such precision.

In our enhanced dependent t-test guide, we show you how to write up the results from your
assumptions tests and dependent t-test procedure if you need to report this in a
dissertation/thesis, assignment or research report. We do this using the Harvard and APA styles.
It is also worth noting that in addition to reporting the results from your assumptions and
dependent t-test, you are increasingly expected to report effect sizes. Whilst there are many
different ways you can do this, we show you how to calculate effect sizes from your SPSS
Statistics results in our enhanced dependent t-test guide. Effect sizes are important because
whilst the dependent t-test tells you whether differences between group means are "real" (i.e.,
different in the population), it does not tell you the "size" of the difference. Providing the effect
size in your results helps to overcome this limitation.
Paired t tests are used to test if the means of two paired measurements, such
as pretest/posttest scores, are significantly different.

Paired Samples t Test

The Paired Samples t Test compares two means that are from the same
individual, object, or related units. The two means typically represent two
different times (e.g., pre-test and post-test with an intervention between the
two time points) or two different but related conditions or units (e.g., left and
right ears, twins). The purpose of the test is to determine whether there is
statistical evidence that the mean difference between paired observations on a
particular outcome is significantly different from zero. The Paired
Samples t Test is a parametric test.

This test is also known as:


 Dependent t Test
 Paired t Test
 Repeated Measures t Test

The variable used in this test is known as:


 Dependent variable, or test variable (continuous), measured at two
different times or for two related conditions or units
Common Uses

The Paired Samples t Test is commonly used to test the following:


 Statistical difference between two time points
 Statistical difference between two conditions
 Statistical difference between two measurements
 Statistical difference between a matched pair
Note: The Paired Samples t Test can only compare the means for two (and
only two) related (paired) units on a continuous outcome that is normally
distributed. The Paired Samples t Test is not appropriate for analyses
involving the following: 1) unpaired data; 2) comparisons between more than
two units/groups; 3) a continuous outcome that is not normally distributed;
and 4) an ordinal/ranked outcome.
 To compare unpaired means between two groups on a continuous
outcome that is normally distributed, choose the Independent
Samples t Test.
 To compare unpaired means between more than two groups on a
continuous outcome that is normally distributed, choose ANOVA.
 To compare paired means for continuous data that are not normally
distributed, choose the nonparametric Wilcoxon Signed-Ranks Test.
 To compare paired means for ranked data, choose the nonparametric
Wilcoxon Signed-Ranks Test.
Data Requirements

Your data must meet the following requirements:

1. Dependent variable that is continuous (i.e., interval or ratio level)


Note: The paired measurements must be recorded in two
separate variables.
2. Related samples/groups (i.e., dependent observations)
The subjects in each sample, or group, are the same. This means
that the subjects in the first group are also in the second group.
3. Random sample of data from the population
4. Normal distribution (approximately) of the difference between the
paired values
5. No outliers in the difference between the two related groups

Note: When testing assumptions related to normality and outliers, you must
use a variable that represents the difference between the paired values - not
the original variables themselves.
Note: When one or more of the assumptions for the Paired Samples t Test are
not met, you may want to run the nonparametric Wilcoxon Signed-Ranks Test
instead.

Hypotheses

The hypotheses can be expressed in two different ways that express the same
idea and are mathematically equivalent:

H0: µ1 = µ2 ("the paired population means are equal")


H1: µ1 ≠ µ2 ("the paired population means are not equal")

OR

H0: µ1 - µ2 = 0 ("the difference between the paired population means is equal to


0")
H1: µ1 - µ2 ≠ 0 ("the difference between the paired population means is not 0")

where
 µ1 is the population mean of variable 1, and
 µ2 is the population mean of variable 2.
Test Statistic

The test statistic for the Paired Samples t Test, denoted t, follows the same
formula as the one sample t test.

[Math Processing Error]t=x¯diff−0sx¯

where

[Math Processing Error]sx¯=sdiffn


where

[Math Processing Error]x¯diff = Sample mean of the differences


[Math Processing Error]n = Sample size (i.e., number of observations)
[Math Processing Error]sdiff= Sample standard deviation of the differences
[Math Processing Error]sx¯ = Estimated standard error of the mean
(s/sqrt(n))

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).

Data Set-Up

Your data should include two variables (represented in columns) that will be
used in the analysis. The two variables should represent the paired variables
for each subject (row). If your data are arranged differently (e.g., cases
represent repeated units/subjects), simply restructure the data to reflect this
format.

Run a Paired Samples t Test

To run a Paired Samples t Test in SPSS,


click Analyze > Compare Means > Paired-Samples T Test.
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 Variablesarea.

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 Percentageand 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.

Click OK to run the Paired Samples t Test.

Example

PROBLEM STATEMENT
The sample dataset has placement test scores (out of 100 points) for four
subject areas: English, Reading, Math, and Writing. Suppose we are
particularly interested in the English and Math sections, and want to
determine whether English or Math had higher test scores on average. We
could use a paired t test to test if there was a significant difference in the
average of the two tests.

BEFORE THE TEST


Variable English has a high of 101.95 and a low of 59.83, while variable Math
has a high of 93.78 and a low of 35.32 (Analyze > Descriptive Statistics >
Descriptives). The mean English score is much higher than the mean Math
score (82.79 versus 65.47). Additionally, there were 409 cases with non-
missing English scores, and 422 cases with non-missing Math scores, but only
398 cases with non-missing observations for both variables. (Recall that the
sample dataset has 435 cases in all.)

Let's create a comparative boxplot of these variables to help visualize these


numbers. Click Analyze > Descriptive Statistics > Explore. Add English
and Math to the Dependents box; then, change the Display option to Plots.
We'll also need to tell SPSS to put these two variables on the same chart. Click
the Plots button, and in the Boxplots area, change the selection
to Dependents Together. You can also uncheck Stem-and-leaf.
Click Continue. Then click OK to run the procedure.
We can see from the boxplot that the center of the English scores is much
higher than the center of the Math scores, and that there is slightly more
spread in the Math scores than in the English scores. Both variables appear to
be symmetrically distributed. It's quite possible that the paired samples t test
could come back significant.

RUNNING THE TEST


1. Click Analyze > Compare Means > Paired-Samples T Test.
2. Double-click on variable English to move it to the Variable1 slot in the
Paired Variables box. Then double-click on variable Math to move it to
the Variable2 slot in the Paired Variables box.
3. Click OK.

SYNTAX
T-TEST PAIRS=English WITH Math (PAIRED)
/CRITERIA=CI(.9500)
/MISSING=ANALYSIS.

OUTPUT
TABLES

There are three tables: Paired Samples Statistics, Paired Samples


Correlations, and Paired Samples Test. Paired Samples
Statistics gives univariate descriptive statistics (mean, sample size, standard
deviation, and standard error) for each variable entered. Notice that the
sample size here is 398; this is because the paired t-test can only use cases that
have non-missing values for both variables. Paired Samples
Correlations shows the bivariate Pearson correlation coefficient (with a two-
tailed test of significance) for each pair of variables entered. Paired Samples
Test gives the hypothesis test results.

The Paired Samples Statistics output repeats what we examined before we ran
the test. The Paired Samples Correlation table adds the information that
English and Math scores are significantly positively correlated (r = .243).

Why does SPSS report the correlation between the two variables when you run
a Paired t Test? Although our primary interest when we run a Paired t Test is
finding out if the means of the two variables are significantly different, it's also
important to consider how strongly the two variables are associated with one
another, especially when the variables being compared are pre-test/post-test
measures.
Reading from left to right:
 First column: The pair of variables 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.)
 Mean: The average difference between the two variables.
 Standard deviation: The standard deviation of the difference scores.
 Standard error mean: The standard error (standard deviation
divided by the square root of the sample size). Used in computing both
the test statistic and the upper and lower bounds of the confidence
interval.
 t: The paired T test statistic (denoted t).
 df: The degrees of freedom for this test.
 Sig. (2-tailed): The p-value corresponding to the given test statistic t.

DECISION AND CONCLUSIONS


From the results, we can say that:
 English and Math scores were weakly and positively correlated (r =
0.243, p < 0.001)
 There was a significant average difference between English and Math
scores (t397 = 36.313, p < 0.001)
 On average, English scores were 17 points higher than Math scores (95%
CI [16.36, 18.23])

Another Lecture:
Look at the Paired Samples Statistics Box

Take a look at this box. You can see each variable name in left most column.
If you have given your variables meaningful names, you should know exactly
which conditions these variable names represent. You can find out the
number of participants, mean and standard deviation for each condition by
reading across each of the two condition rows.

Example

In the Paired Samples Statistics Box, the mean for the caffeine condition
(CAFDTA) is 5.40. The mean for the no caffeine condition (NOCAFDTA) is
9.40. The standard deviation for the caffeine condition is 1.14 and for the no
caffeine condition, also 1.14. The number of participants in each condition (N)
is 5.

Paired Samples Test Box

This is the next box you will look at. It contains info about the paired samples
t-test that you conducted. You will be most interested in the value that is in the
final column of this table. Take a look at the Sig. (2-tailed) value.
Sig (2-Tailed) value

This value will tell you if the two condition Means are statistically different.
Often times, this value will be referred to as the p value. In this example, the
Sig (2-Tailed) value is 0.005.

If the Sig (2-Tailed) value is greater than 05…

You can conclude that there is no statistically significant difference between


your two conditions. You can conclude that the differences between condition
Means are likely due to chance and not likely due to the IV manipulation.

If the Sig (2-Tailed) value is less than or equal to .05…

You can conclude that there is a statistically significant difference between


your two conditions. You can conclude that the differences between condition
Means are not likely due to change and are probably due to the IV
manipulation.

Our Example

The Sig. (2-Tailed) value in our example is 0.005. This value is less than .05. Because
of this, we can conclude that there is a statistically significant difference between the
mean hours of sleep for the caffeine and no caffeine conditions. Since our Paired
Samples Statistics box revealed that the Mean number of hours slept for the no caffeine
condition was greater than the Mean for the caffeine condition, we can conclude that
participants in the no caffeine condition were able to sleep significantly more
hours than participants in the caffeine condition.

Das könnte Ihnen auch gefallen