Assumptions of statistical tests
Normality, equal variances and independence: how to check them and what to do when they fail.
7 min read
Parametric tests such as t-tests, ANOVA and regression give trustworthy results when the data meet certain assumptions. Lucidstat checks them automatically and shows the result as coloured chips:
- Green: passed.
- Amber: a problem worth acting on, with advice on what to do instead.
- Red: a problem that makes the result unusable or needs a data fix first.
- Grey: background information, not a problem.
1. Independence
Each person's data must not depend on anyone else's: one person, one questionnaire. This cannot be tested statistically; it comes from your research design.
- Measuring the same people twice (pre and post) makes the data dependent. Use the paired t-test, not the independent t-test.
- Students in the same class may be more alike than students in different classes. If your data are nested, consult a specialist about multilevel models.
2. Normality
t-tests and ANOVA assume that the data in each group (or the paired differences, or the regression residuals) come from a normally distributed population.
Lucidstat uses the Shapiro–Wilk test (Royston, 1995), which works for 3 to 5,000 cases.
- p ≥ .05: approximately normal.
- p < .05: not normally distributed.
If normality fails, look at the sample size:
- A group of 30 or more: by the central limit theorem, the distribution of the mean is close to normal, so t-tests and ANOVA are fairly robust. Lucidstat shows a grey note explaining this.
- A group of fewer than 30: Lucidstat shows an amber chip and suggests a non-parametric test, with a one-click switch.
3. Equal variances (homogeneity of variance)
The standard independent t-test and ANOVA assume every group has the same variance. Lucidstat checks this with median-centred Levene's test (Brown–Forsythe), as in R car::leveneTest, and picks the right result for you:
| Levene's test | Independent t-test | One-way ANOVA |
|---|---|---|
| p ≥ .05 (equal variances) | Student's t | Standard F-test + Tukey HSD |
| p < .05 (unequal variances) | Welch's t | Welch's ANOVA + Games–Howell |
4. Assumptions specific to regression and chi-square
- Multiple regression checks residual normality, independence of residuals (Durbin–Watson between 1.5 and 2.5) and multicollinearity (VIF should not exceed 5). See Multiple regression.
- Chi-square: no more than 20% of cells should have expected counts below 5 (Cochran, 1954). See Chi-square.
When an assumption fails
| Parametric test | Non-parametric alternative |
|---|---|
| Independent t-test | Mann–Whitney U test |
| Paired t-test | Wilcoxon signed-rank test |
| One-way ANOVA | Kruskal–Wallis test |
| Pearson correlation | Spearman's ρ |
Non-parametric tests work on ranks instead of raw values, so they do not assume normality. They have slightly less power when the data really are normal, and they test a slightly different hypothesis (distributions or ranks rather than means).
References
- Brown, M. B., & Forsythe, A. B. (1974). Robust tests for the equality of variances. Journal of the American Statistical Association, 69(346), 364–367.
- Cochran, W. G. (1954). Some methods for strengthening the common χ² tests. Biometrics, 10(4), 417–451.
- Royston, P. (1995). Remark AS R94: A remark on algorithm AS 181: The W-test for normality. Journal of the Royal Statistical Society: Series C, 44(4), 547–551.