Independent samples t-test in jamovi

Compare the means of two groups, check the assumptions, and report the result with an effect size and confidence interval.

  • Beginner
  • 4 min read
  • Updated

In jamoviAnalysesT-TestsIndependent Samples T-Test

Short answer

Choose Analyses → T-Tests → Independent Samples T-Test. Put the outcome (for example exam_score) in Dependent Variables and the two-group factor (method) in Grouping Variable. Tick Welch’s, Effect size, Mean difference with Confidence interval, Descriptives, and the Homogeneity and Normality assumption checks. In the practice data, spaced practice scored 7.83 points higher: t(58) = 2.57, p = .013, d = 0.66.

QUICK VISUAL GUIDEIndependent samples t-testSimplified diagram, not a screenshot of the jamovi interface.
  1. 1Analyses → T-Tests
  2. 2Choose Independent Samples
  3. 3Dependent: exam_score
  4. 4Group: method
  5. 5Review Welch and effect size

When to use it

Use an independent samples t-test when you have:

  • one continuous outcome (exam score, reaction time, blood pressure), and
  • two separate groups — each person belongs to one group only (two teaching methods, treatment vs. control).

If the same people are measured twice (before and after), use the Paired Samples T-Test instead. To compare one sample mean with a fixed value, use the One Sample T-Test. Both sit in the same T-Tests menu. For three or more groups, use ANOVA.

Before you start

study-habits.csvSynthetic · 60 rows

60 simulated students: study method, hours studied, sleep, test anxiety and exam score. Columns: participant, method, hours_studied, sleep_hours, test_anxiety, exam_score.

CSV

Make sure method is Nominal with exactly two levels and exam_score is Continuous. The question: do students who used spaced practice score differently from those who re-read their notes?

Step-by-step in jamovi

  1. Go to AnalysesT-TestsIndependent Samples T-Test.
  2. Drag exam_score into Dependent Variables and method into Grouping Variable. A results table appears immediately, using Student’s t by default.
  3. Under Tests, also tick Welch’s. (Mann-Whitney U is the rank-based alternative — tick it if you are worried about non-normal data or outliers.)
  4. Keep Hypothesis at Group 1 ≠ Group 2 unless you registered a one-directional prediction in advance.
  5. Under Additional Statistics, tick Mean difference, Confidence interval (95%), Effect size, Descriptives and Descriptives plots.
  6. Under Assumption Checks, tick Homogeneity test, Normality test and Q-Q plot.

Reading the output

Group descriptives

Group N Mean SD
Spaced practice 30 73.23 13.30
Re-reading 30 65.40 10.06

The test

Reference values computed from study-habits.csv. Signs depend on which group jamovi treats as Group 1 (see note below).
Test Statistic df p Mean difference 95% CI Cohen’s d
Student’s t 2.57 58 .013 7.83 1.74 to 13.93 0.66
Welch’s t 2.57 54.0 .013 7.83 — —
Mann-Whitney U — — .007 — — —

Assumption checks

  • Homogeneity of variances (Levene’s test): F(1, 58) = 1.53, p = .222. No evidence that the group variances differ, so Student’s and Welch’s t agree. With equal group sizes, as here, they always give the same t.
  • Normality (Shapiro-Wilk): not significant here, and the Q-Q plot points lie close to the line. With 30 per group the t-test is fairly robust to modest non-normality anyway.

Interpreting the result

The mean difference of 7.83 points is the headline. The 95% confidence interval runs from 1.74 to 13.93: the data are compatible with a true advantage for spaced practice anywhere from fairly small to quite large. Because the interval excludes zero, p is below .05. Cohen’s d = 0.66 is a medium-sized difference by Cohen’s widely used, if rough, benchmarks (0.2 small, 0.5 medium, 0.8 large).

Remember these are simulated observational data: students chose their methods, so the test shows a difference, not that the method caused it. See interpreting results for more on p-values and effect sizes.

Reporting example (APA style)

Students who used spaced practice (M = 73.23, SD = 13.30) scored higher than students who re-read their notes (M = 65.40, SD = 10.06), t(58) = 2.57, p = .013, mean difference = 7.83, 95% CI [1.74, 13.93], d = 0.66.

Many methodologists recommend reporting Welch’s t by default because it does not assume equal variances and loses little when they are equal. If you do, report Welch’s degrees of freedom (54.0).

Common mistakes

  • Using an independent test on paired data. Before/after scores from the same people need the paired test.
  • Grouping variable with more than two levels. jamovi will warn you; filter to two groups or use ANOVA.
  • Choosing the test after seeing the results. Decide between Student’s, Welch’s and Mann-Whitney in advance, and don’t switch to whichever gives the smallest p.
  • Reporting p alone. Always include the means, the difference or its confidence interval, and an effect size.
  • Reading p > .05 as “no difference”. It means the data are not precise enough to rule out zero — look at the confidence interval.

Troubleshooting

  • The grouping variable is greyed out or will not drop in: it is probably Continuous. Set it to Nominal.
  • “Grouping variable must have exactly two levels”: an extra level exists, often from a typo such as re-reading vs Re-reading. Check the levels in the variable setup and recode.
  • Different numbers from a classmate: check you are using the same file and the same test (Student’s vs. Welch’s).

Sources and further reading

Enter full results · Esc close