Overview
Use a t test to check whether a sample mean differs from a value you expect, or whether two samples have different means — for example, comparing measurements from a treated and an untreated group, or before and after on the same subjects.
In a two-sample t test, statistiXL by default first checks whether the two variances differ with an F test, and uses a pooled variance when they don’t. You can also choose to assume equal or unequal variances, and set the alpha level for the F test.
For three or more groups, use analysis of variance instead of repeated t tests. The nonparametric equivalent of the paired t test is the Wilcoxon paired-sample test.
Methods
- Single-sample t test
- Two-sample t test
- Paired t test
- One- and two-tailed tests against a hypothesised difference
- Variance ratio (F) test for equal variances
- Single-sample multivariate (Hotelling's T²) test
- Two-sample multivariate (Hotelling's T²) test
Running the analysis
Click t Tests on the statistiXL ribbon and choose One Sample, Two Sample, Multivariate One Sample or Multivariate Two Sample. In the dialog, select your input ranges and output location, and set any options. For a paired test, use Two Sample and tick Datasets are Paired.


What the output includes
- Descriptive statistics for each sample (optional)
- Hypothesised and observed means, and the standard error
- t value, degrees of freedom and P value
- The variance ratio (F) test, for two-sample tests
- T² and F statistics, for multivariate tests
