Test assumptions and how to check them
A statistical test is only as trustworthy as its assumptions. They’re the conditions under which the maths behind the p-value holds. This lesson collects the common assumptions in one place, with how to check each and what to do when one fails.
The core assumptions
1. Independence of observations
Each observation shouldn’t be influenced by any other. This is violated by repeated measurements of the same person treated as separate cases, pupils clustered in classes, or time series. It’s the most damaging violation, because standard errors become too small and false positives multiply. It’s decided by your design: use paired or repeated-measures tests, mixed models or clustered standard errors when observations are linked.
2. Normality
t-tests, ANOVA and linear regression assume roughly normal residuals: values within each group, or errors around the regression line. The raw outcome doesn’t need to be normal overall. The assumption matters most in small samples, and less in large ones (the central limit theorem). Check it with histograms, Q-Q plots and normality tests.
3. Equal variances (homogeneity of variance)
Independent t-tests and classic ANOVA assume groups have similar spreads. Check with Levene’s or Brown-Forsythe’s test. If variances differ, use Welch’s t-test or Welch’s ANOVA, which don’t need this assumption. See homogeneity of variance.
4. Linearity
Pearson correlation and linear regression assume a straight-line relationship. Check with a scatterplot or a residual plot. If the relationship curves, add a curved term, transform a variable, or use Spearman’s correlation.
5. Adequate expected counts
Chi-square tests need expected counts of at least 5 in each cell. Otherwise use Fisher’s exact test.
6. Measurement level
Tests of means assume an interval or ratio outcome. Ordinal outcomes, such as single rating items, call for rank-based tests. See levels of measurement.
Assumptions by test
| Test | Main assumptions | If violated |
|---|---|---|
| Independent t-test | Independence, normal residuals, equal variances | Welch’s t-test or Mann-Whitney U |
| Paired t-test | Normal differences | Wilcoxon signed-rank |
| One-way ANOVA | Independence, normal residuals, equal variances | Welch’s ANOVA or Kruskal-Wallis |
| Repeated measures ANOVA | Normal residuals, sphericity | Greenhouse-Geisser correction, or Friedman |
| Pearson correlation | Linearity, approximate normality, no dominating outliers | Spearman’s ρ |
| Chi-square | Independence, expected counts ≥ 5 | Fisher’s exact test |
| Linear regression | Linearity, independence, constant variance, normal residuals, low multicollinearity | See regression assumptions |
Check first, then choose
The order matters. If you run a t-test first and check its assumptions afterwards, you’re tempted to overlook a violation when the result looks good, or to switch tests until one gives p < .05. Checking first and letting the checks decide the test removes that temptation.
This is the rule Analytika enforces. Before choosing a test, it runs the checks on your current data:
- normality of the within-group residuals, at α = .01;
- equal variances, with the Brown-Forsythe test;
- group sizes, needing at least 20 per group for a parametric test;
- expected cell counts;
- linearity, for correlations.
The results decide the test, and the reason is shown with the result. If you ask for a specific test that the checks rule out, it explains why it used the safer one.
Formal tests vs looking at the data
Formal assumption tests have a catch. With small samples they lack power and miss real problems. With large samples they flag trivial departures that don’t matter. Use them together with plots and judgement. That’s why Analytika uses a strict α = .01 for its normality pre-check: it switches tests on strong evidence of a problem, not on every small wobble.
Reporting
Say what you checked, how, and what you did:
Levene’s test indicated unequal variances (p < .001), so Welch’s t-test was used.
More in Choosing a test
Try it with the free tools
Run this on your own data
Upload a dataset and ask your question in plain English. Analytika checks the assumptions, picks the test, runs it, and writes the results up in APA format.