Group A averages 4.1, group B averages 5.3. Is B genuinely higher, or did the samples just fall that way? The t-test answers by weighing the gap between means against the spread within each group.
Note
Three Flavors
| Type | Compares |
|---|---|
| One-sample | A group's mean against a known value |
| Independent (two-sample) | The means of two separate groups |
| Paired | Before vs after on the same subjects |
Use the paired test whenever the two measurements come from the same people or items — it removes person-to-person variation and is far more powerful.
Assumptions
- The data is roughly normal (or the sample is large enough for the mean to be)
- Independent observations (except the paired test, which pairs them by design)
- For the two-sample test, similar variances — or use Welch's correction
Watch out
Reading the Result
The test returns a t-statistic and a p-value. A p-value below your threshold (usually 0.05) means the difference is unlikely to be chance. Always report the effect size too — with a big sample, even a trivial gap turns "significant."
The t-test in the SKARI Statistical Lab
The Statistical Lab runs the right t-test for you: pick the groups, and SKARI checks normality and variance, chooses one-sample, independent, or paired, and reports the statistic, p-value, and effect size in plain language.
- Automatic assumption checks (normality, equal variance)
- One-sample, independent, and paired tests
- Effect size and interpretation alongside the p-value
Takeaway
Frequently Asked Questions
Paired or independent?
Paired when the two measurements are on the same subjects (before/after); independent when the groups are separate.
What if variances differ?
Use Welch's t-test, which doesn't assume equal variances. It's a safe default for two-sample comparisons.
t-test or ANOVA?
Two groups → t-test. Three or more → ANOVA, so you don't inflate false positives with many pairwise tests.
Conclusion
The t-test is the workhorse for comparing two means. Pick the right flavor, mind the assumptions, and read significance alongside effect size.
Takeaway
ANOVA
When you have three or more groups
Hypothesis Testing Basics
The framework behind the test
Nonparametric Tests
When the data isn't normal