Bivariate Analysis : Difference of Means

Doing T Test in SPSS


The following working examples refer to the dataset from the US General Social Survey 1993 .

1. Analyze ->  Compare Means -> Independent-Samples T Test
2. Select and put interval (or ratio) scale variable in " Test Variable(s)" box

3. Select and put categorical variable in "Grouping Variable" box





4. SPSS Output for T-Test

4.1 We want to know whether mean age of those who voted was differnet from those who did not vote in the 1992 election

T-Test

Group Statistics

VOTE92 Voting in 1992 Election N Mean Std. Deviation Std. Error Mean
AGE Age of Respondent 1 voted 1028 47.85 16.953 .529
2 did not vote 420 42.71 18.010 .879






4.2 Test for significance of difference



Independent Samples Test

Levene's Test for Equality of Variances t-test for Equality of Means
F Sig. t df Sig. (2-tailed) Mean Difference Std. Error Difference 95% Confidence Interval of the Difference
Lower Upper
AGE Age of Respondent Equal variances assumed 1.631 .202 5.141 1446 .000 5.14 1.000 3.179 7.102
Equal variances not assumed

5.012 737.803 .000 5.14 1.026 3.127 7.154