Quick answer: An independent-samples t-test compares the means of two separate groups. In SPSS, inspect Group Statistics, choose the appropriate test row, and report the mean difference, confidence interval, t statistic, degrees of freedom, and two-sided p-value. This worked example uses Welch’s test and shows why p = .085 does not prove that the groups are equal.
This is an original fictional teaching dataset, not client work or a real study. The summary tables below were independently calculated in Python and are not screenshots of SPSS output. Run the supplied syntax to reproduce the analysis in SPSS; labels and display precision may differ by version.
Suppose two separate groups of ten students have practice scores out of 100. Does the population mean score differ between Group A and Group B? Each student contributes one score to one group. We use a two-sided test with α = .05, chosen before looking at the result. H₀: μA − μB = 0; H₁: μA − μB ≠ 0. Here μ means a population mean.
If the same ten students took both tests, these would be paired observations and this analysis would not fit. Start with the statistical test selection quiz if you are unsure which design applies.
Enter two numeric columns named group and score. Code Group A as 1 and Group B as 2. The code below creates the complete dataset, so you do not need to enter the values manually. It creates a new working dataset; save any current SPSS work first.
Open a new Syntax window, paste the following commands, select them, and run the selection. The GROUPS setting specifies the two group codes; VARIABLES names the outcome; CI(.95) requests a 95% confidence interval. Check that no unintended case filter, weighting, or Split File setting is active.
* Fictional Statskan teaching data; not client or research results.
DATA LIST FREE /group score.
BEGIN DATA
1 62
1 68
1 70
1 71
1 73
1 75
1 78
1 79
1 82
1 84
2 64
2 70
2 74
2 78
2 80
2 83
2 85
2 89
2 94
2 99
END DATA.
VARIABLE LABELS group 'Practice group' score 'Practice score out of 100'.
VALUE LABELS group 1 'Group A' 2 'Group B'.
VARIABLE LEVEL group (NOMINAL) score (SCALE).
T-TEST GROUPS=group(1 2)
/VARIABLES=score
/MISSING=ANALYSIS
/CRITERIA=CI(.95).
Alternatively, use Analyze → Compare Means → Independent-Samples T Test (menu wording can vary). Put score in the test-variable box, group in the grouping-variable box, and define the groups as 1 and 2. Request a 95% confidence interval. Review distributions and outliers by group before interpreting the test.
| Group | N | Mean | Sample SD |
|---|---|---|---|
| A (1) | 10 | 74.20 | 6.76 |
| B (2) | 10 | 81.60 | 10.76 |
Group B has a higher observed mean. The reported difference uses Group A minus Group B: 74.20 − 81.60 = −7.40 points. The negative sign describes group ordering; it is not an error. If your N or means differ, check data entry, group codes, missing values, filters, and weights before reading the p-value.
SPSS reports an equal-variances-assumed row and an equal-variances-not-assumed row. The latter is Welch’s test. For this example, we selected Welch’s test in advance because it does not require equal population variances. Use all the statistics from that row together.
Levene’s test assesses evidence against equal population variances. Its mean-centered result for these data is approximately F = 1.773, p = .200. That does not prove equal variances. If your course explicitly requires a Levene-based row-selection rule, follow and explain that rule. Do not select whichever row gives the smaller p-value.
Welch’s standard error is SE = √(sA²/nA + sB²/nB). Here s is a sample standard deviation and n is the group size. Using unrounded values, SE = √(45.7333/10 + 115.8222/10) = 4.0194. The test statistic is t = (74.20 − 81.60)/4.0194 = −1.8411. Welch’s approximate degrees of freedom are 15.1488, which need not be a whole number.
| Welch result | Value |
|---|---|
| Mean difference, A − B | −7.40 points |
| t | −1.841 |
| Degrees of freedom | 15.149 |
| Two-sided p-value | .0853 |
| 95% CI for A − B | [−15.96, 1.16] points |
The interval is the mean difference plus or minus the appropriate t critical value times its standard error. It includes zero, consistent with the two-sided p-value exceeding .05. Keep full precision during calculation and round at the reporting stage. You can also cross-check the summaries with the t-test calculator, using the Welch independent-samples option.
Example report: “Group A (M = 74.20, SD = 6.76, n = 10) had a lower observed mean practice score than Group B (M = 81.60, SD = 10.76, n = 10). A two-sided Welch independent-samples t-test did not provide sufficient evidence of a population mean difference at α = .05, t(15.15) = −1.84, p = .085. The estimated difference, A minus B, was −7.40 points, 95% CI [−15.96, 1.16].”
The data are compatible with a range of population differences, including zero. Do not write “the groups are identical,” “there is definitely no effect,” or “the null hypothesis is true.” The fictional design also gives no basis for a claim that group membership caused the difference.
Independence comes from how observations were collected, not from a software test. With only ten observations per group, inspect within-group plots for marked skewness and influential outliers; Welch’s test addresses unequal variances, not dependence or every distribution problem. These invented numbers cannot establish that a real sampling design is representative. For actual coursework, explain the design, missing-data decisions, and relevant diagnostics.
If you get t = −1.841 but p ≈ .082, you may be reading the pooled equal-variances row, which has 18 degrees of freedom. In this equal-sample-size example, the two rows share the same t statistic but have different degrees of freedom and p-values. If the sign reverses, check which group SPSS subtracts first.
Use the SPSS output interpretation guide for other tests. If your own analysis differs, SPSS homework guidance can help you trace the group coding, assumptions, calculations, and reporting. Focused guidance starts at $15 USD; live statistics tutoring starts at $35 USD per hour. Scope, availability, and price are confirmed before work begins. Share your attempt and the specific step you want to understand, with personal information removed.
IBM: Independent-Samples T Test documents the procedure and output. NIST: t-test formulas provides the equal- and unequal-variance calculations. This page’s dataset and numerical example are original Statskan teaching material.
Share your question, what you have tried, and your deadline. We’ll confirm the scope, availability, and price before work begins.
Request Statistics Guidance →