Features Validation Compare Pricing Blog Cite Download

The t-test is the workhorse of comparing means. But “the t-test” is really three related tests, and picking the wrong one is one of the most common mistakes in student and early-career research.

Here is the decision framework and the reporting standards.

The three t-tests

One-sample t-test. Compares one group’s mean to a known reference value. Example: are the students in this sample scoring above the national average of 100?

Independent-samples t-test. Compares the means of two different groups. Example: do men and women differ in exam scores?

Paired-samples t-test. Compares two measurements from the same subjects (or matched pairs). Example: did the students’ scores change from pre-test to post-test?

Using the wrong one inflates or deflates the Type I error rate. An independent test on paired data throws away statistical power; a paired test on independent data is simply invalid.

Decision tree

Assumptions

All t-tests assume:

The independent-samples t-test additionally assumes equal variances between groups (homogeneity). When that is violated, use Welch’s t-test — most modern statistical software defaults to Welch’s for exactly this reason. It costs nothing when variances are equal and works correctly when they are not.

Effect size — report it, always

A p-value tells you whether a difference exists. Cohen’s d tells you how big it is.

A study with n = 1,000 might return p < .001 for d = 0.05 — statistically significant, practically meaningless. Always report d alongside its 95% confidence interval.

Three common mistakes

1. Running pairwise t-tests on three or more groups. Three groups A, B, C tested with three t-tests (A vs B, A vs C, B vs C), each at α = 0.05, gives a family-wise error rate of roughly 14%. Use ANOVA followed by a post-hoc test (Tukey’s HSD, Bonferroni) instead.

2. Ignoring Welch’s t-test. When group variances differ notably (Levene’s test p < 0.05), the classical Student’s t-test is biased. Welch’s has no such assumption. Modern journals expect Welch’s by default when variances are unequal.

3. One-tailed tests without prior justification. A one-tailed test doubles statistical power on one side, but requires you to have committed to a direction before looking at the data. Post-hoc one-tailed tests are a form of p-hacking. Report two-tailed by default unless you have a preregistered directional hypothesis.

What to report

For an independent-samples t-test, a defensible modern report:

“The intervention group scored significantly higher than the control group, t(48) = 3.21, p = .002, d = 0.91, 95% CI for d [0.34, 1.48].”

Components:

Doing this in AnalyVa

The workflow is almost identical for all three t-test variants — the only real decision point is which one you pick from the menu in Step 4. This walkthrough uses an Independent Samples t-test as the worked example, and calls out at each step how the other two variants diverge.

Step 1 — Click Import. Launch AnalyVa on an empty canvas. Click the Import button in the top toolbar.

The Import button in the top toolbar

Step 2 — The import dialog opens. An overlay appears asking for a file (.xlsx, .csv, or .tsv).

The Import Tabular Data dialog waiting for a file

Step 3 — Load and preview. Drop your dataset. AnalyVa reports the shape and shows the first rows so you can confirm it parsed correctly. Click Import.

Your dataset needs to include:

The Import dialog showing a preview of the data

Step 4 — Pick the right t-test from Analyze → Compare Means. This is the only decision that changes. Open the Analyze menu → Compare Means. The submenu lists all three t-tests explicitly:

If your design matches multiple items, re-read the decision tree earlier in this post — only one of them is appropriate for any given research question.

The Analyze → Compare Means submenu showing all three t-test options

Step 5 — The test dialog opens with defaults. Pick Independent Samples t-test and AnalyVa opens a dialog with sensible defaults filled in. Here it auto-detected Gender as the grouping variable and mapped its two levels (Group A = 1, n = 234; Group B = 2, n = 343). The two group sample sizes appear as a one-line summary so you can catch obvious data errors immediately.

For the other two variants the dialog looks slightly different:

The Independent Samples t-test dialog with defaults

Step 6 — Choose the test variable. Open the Test variable dropdown and pick the numeric outcome you want to compare across the two groups. In this example: Teaching_Exp.

The Test variable dropdown open with Teaching_Exp highlighted

Step 7 — Click Run. The dialog now shows your chosen test variable, grouping variable, and both group sizes. Click the red Run button.

The t-test dialog with Teaching_Exp selected and the Run button highlighted

Step 8 — Read the results panel. The right pane switches to Results and shows everything a defensible t-test report needs, in one view:

For a paired t-test the same output appears with an extra Correlation between paired scores row and the mean of the differences instead of the mean difference between groups. For a one-sample test, Levene disappears (only one group) and the results compare the group mean to the reference value you specified.

Every table has Copy, APA, HTML, and CSV buttons. Click APA on the t-test Results table and it copies a ready-to-paste sentence like:

“t(575) = -0.58, p = .560, d = -0.05”

into your clipboard, ready to drop into the manuscript.

Independent Samples t-test results panel showing group descriptives, Levene, t-test values, Cohen's d, and a box plot

Further reading

Get one guide like this a week

Plus the free PLS-SEM Reporting Checklist as a welcome gift. Unsubscribe anytime.

One email at a time. Unsubscribe in one click. No spam, ever.

← All posts