SPSS paired samples t-test is a procedure for testing whether the means of two metric variables are equal in some population. Both variables have been measured on the same cases. Although “paired samples” suggests that multiple samples are involved, there's really only one sample and two variables. The screenshot below illustrates the basic idea.

## SPSS Paired Samples T-Test Example

A behavioral scientist wants to know whether drinking a single glass of beer affects reaction times. She has 30 participants perform some tasks before and after having a beer and records their reaction times. For each participant she calculates the average reaction time over tasks both before and after the beer, resulting in reaction_times.sav. Can we conclude from these data that a single beer affects reaction time? We'll first open the data by running the syntax below.

***1. Set default directory.**

cd 'd:downloaded'. /*or wherever data file is located.

***2. Open data.**

get file "reaction_times.sav".

## Quick Data Check

We first just want to know what the data look like. We could do so by taking a look at the histograms of the two variables. However, a nice alternative for two variables measured on the same respondents is a scatter plot. The screenshots below walk you through.

We first navigate to

We then move `reac_1`

and `reac_2`

to and . Clicking results in the syntax below.

***Run scatter plot.**

GRAPH

/SCATTERPLOT(BIVAR)=reac_2 WITH reac_1

/MISSING=LISTWISE.

Normal reactions times are between 800 and 1500 ms (= milliseconds). Neither variable has any values that are way out of this normal range so the data seem plausible.

We also see a substantial positive correlation between the variables; respondents who were fast on the first task tend to be fast on the second task as well. The graph seems to suggest that the mean reaction time before a beer is somewhere near 1100 ms (vertical axis) and after a beer perhaps 1300 ms (horizontal axis).

One respondent (right top corner, denoted “outlier”) is remarkably slow compared to the others. However, we decide that its scores are not extreme enough to justify removing it from the data.

## 2. Assumptions Paired Samples T-Test

SPSS will happily provide us with test results but we can only take those seriously insofar as the assumptions for our test are met. For the paired samples t-test, these are

**independent observations**or, more precisely, independent and identically distributed variables;- the difference scores between the two variables must be
**normally distributed**in our population.

The first assumption is often satisfied if each case (row of data values) holds a distinct person or other unit of analysis. The normality assumption is mostly relevant for small sample sizes (say N < 30). If it's violated, consider a Wilcoxon signed-ranks test instead of a t-test. However, our data seems to meet both assumptions so we'll proceed to the t-test.

## 3. Run SPSS Paired Samples T-Test

We'll first navigate to

.
Select both variables and

move them into the box.

Clicking results in the syntax below.

***Run paired samples t-test.**

T-TEST PAIRS=reac_1 WITH reac_2 (PAIRED)

/CRITERIA=CI(.9500)

/MISSING=ANALYSIS.

## 4. SPSS Paired Samples T-Test Output

The first table (“**Paired Samples Statistics**”) presents the descriptive statistics we'll report. (Do not use the `DESCRIPTIVES`

command for obtaining these.The reason for this is that the significance test is (necessarily) limited to cases without any missing values on the test variables. Cases with a missing value on one of the test variables should therefore be excluded from the descriptives as well. This holds for the descriptives from the paired samples t-test but not for `DESCRIPTIVES`

.)

Since N = 30, we don't have any missing values on the test variables and

as expected, the mean reaction time before a beer (1166 ms) is lower than after a beer (1288 ms).

On average, respondents slow down some 122 ms. We could have calculated this from the first table ourselves.

The p-value denoted by “Sig. (2-tailed)” is 0. (If we double-click it, we'll see it's precisely 0.000083, meaning a .0083 % chance.) So if the population means are equal, there's a 0% chance of finding this result. We therefore reject the null hypothesis. Even a single beer slows people down on the given tasks.

Note that the p-value is **two-sided**. This means that the p-value consists of a .00415% chance of finding a difference < -122 ms and another .00415% chance of finding a difference > 122 ms.

## 5.Reporting a Paired Samples T-Test

As we mentioned before, we'll always report the descriptive statistics obtained from the paired samples t-test. For the significance test, we may write something like ** “Participants became slower after drinking a single beer, t(29) = -4.6, p = 0.00”**.

## This tutorial has 10 comments

## By Rabil Ilyas on April 6th, 2017

Useful piece. Thanks

## By Ruben Geert van den Berg on April 1st, 2017

Hi Katie!

First off, you commented on SPSS Paired Samples T Test but your question refers to a SPSS Independent Samples T Test. If you're not sure about what that means, take a quick look at Simple Overview Statistical Comparison Tests.

Regarding your question: p-values and confidence intervals for this t-test are never adjusted. So it doesn't matter whether you throw 10 variables into 1 command or use 10 separate commands: the results will be identical. For this test, there's no Bonferroni adjustment available in SPSS.

The easiest way around is to compare the SPSS p-values to (0.05 / number of tests). So

for 4 tests, "Sig." being smaller than (0.05 / 4 =) 0.0125 indicates statistical significance.Hope that helps!

## By Katie on April 1st, 2017

Hi,

I have a question about Bonferroni correcting. If the experimenter was also interested in other shopping habits between sexes, let's say... hours spent shopping online and hours spent shopping on the highstreet... the syntax might look like the below:

T-TEST GROUPS=gender(0 1)

/MISSING=ANALYSIS

/VARIABLES=amount_spent hours_online hours_highstreet

/CRITERIA=CI(.95).

Will SPSS automatically adjust the alpha level as there are now 3 t-tests (e.g. .05/3)? If not, what line of syntax can I include to ensure a bonferroni adjustment is made?

## By Ya on March 22nd, 2017

Thanks very much. The explanation is very clear, even better than that on my textbook.

## By Ruben Geert van den Berg on September 28th, 2016

Well, I'd start by looking up repeated measures ANOVA with the 7 observations as the within-subjects factor and the sample as between-subjects factor. There's a nice overview of statistical comparison tests coming up in a few days but it's not entirely finished yet.