At a master's thesis defence, the researcher presented a table comparing length of hospital stay between two treatment groups using an independent t-test, and wrote in the table: “mean 6.5 days, standard deviation 8.2 days”.
One of the examiners stopped on a direct question: “If the standard deviation is larger than the mean for a variable that cannot take negative values, your data are heavily skewed. So why did you use the mean and a t-test?”
Choosing between parametric and non-parametric tests is not a matter of personal preference. It is an honest reflection of the shape of your data’s distribution.
What “Statistical Assumptions” Actually Mean
Every statistical test is built on a mathematical model used to calculate the p-value.
- Parametric tests: assume the data are drawn from a probability distribution with known parameters, most often the normal distribution, and base their calculations on the mean and the standard deviation (SD).
- Non-parametric tests: do not require the original variable to follow a normal distribution. They convert the raw values to ranks and compare the distribution of those ranks, or the median, between groups, which makes them less affected by extreme values and heavy skewness.
When the assumptions of a parametric test are seriously violated in a small sample, the resulting p-value loses accuracy: you may miss a real relationship because the standard deviation is inflated, or obtain an inaccurate significance level.
How to Check Normality, and Why the Shapiro–Wilk Test Alone Is Not Enough
Many researchers rely on a single mechanical rule: run the Shapiro–Wilk test, treat the distribution as normal if p > 0.05, and switch straight to non-parametric tests if p < 0.05. This mechanical rule ignores two important limitations:
1. In Very Small Samples (n < 15)
The Shapiro–Wilk test has low statistical power. It may miss clear skewness in the data and give you p = 0.12 even though the distribution is asymmetric.
2. In Large Samples (n > 200)
The test becomes extremely sensitive to any slight departure that has no practical importance. It may reject normality (p = 0.01) merely because of mild kurtosis that has no practical effect on the validity of a t-test.
The balanced methodological solution: always combine visual inspection with a normal probability plot (Q-Q plot) and a histogram, measures of skewness, and the Shapiro–Wilk result, taking the sample size into account. In a Q-Q plot, if the points line up close to the straight diagonal line without sharp curvature or long deviations at the tails, the distribution is practically close to normal.
When Is the t-Test Robust, Thanks to the Central Limit Theorem?
There is a statistical fact that is often overlooked: the t-test and analysis of variance (ANOVA) care less about the distribution of individual observations than about the sampling distribution of the mean.
The Central Limit Theorem (CLT) states that as the sample size grows (n ≥ 30 or n ≥ 50 per group is usually cited as a rule of thumb when there is no severe skewness), the sampling distribution of the mean approaches the normal distribution, even if the individual data are moderately non-normal.
However, this reliance breaks down in two cases:
- When the variable is heavily skewed (such as treatment costs, length of stay in intensive care, or concentrations of some biomarkers) and extreme values pull the mean far from the true centre of the data. The mean then no longer describes the typical patient, and it is better to move to the median and a non-parametric test.
- When the variable is ordinal by nature, such as a pain scale from 1 to 5.
The Matching Pairs Table: Every Parametric Test Has a Non-Parametric Alternative
To make the decision easier, here is the direct correspondence between the two families:
| Comparison goal | Parametric test | Non-parametric alternative |
|---|---|---|
| Compare two independent groups | Independent t-test | Mann–Whitney U test |
| Compare two measurements on the same individuals (before/after) | Paired t-test | Wilcoxon signed-rank test |
| Compare 3 or more independent groups | One-way ANOVA | Kruskal–Wallis test |
| Compare 3 or more repeated measurements on the same individuals | Repeated-measures ANOVA | Friedman test |
| Measure the association between two variables | Pearson’s r | Spearman’s ρ |
A Worked Numerical Example: Why the Mean Misleads You When Data Are Skewed
Suppose we recorded the length of hospital stay (in days) for seven patients after a particular surgical procedure, sorted in ascending order: 2, 3, 3, 4, 4, 5, 28 (the seventh patient had complications that required a 28-day stay).
First: The Parametric Calculation, Mean and Standard Deviation (SD)
- Sum of values: 2 + 3 + 3 + 4 + 4 + 5 + 28 = 49.
- Mean (x̄): 49 / 7 = 7.0 days.
- Deviations from the mean (xᵢ - 7): -5, -4, -4, -3, -3, -2, +21.
- Squared deviations: 25, 16, 16, 9, 9, 4, 441.
- Sum of squared deviations: 25 + 16 + 16 + 9 + 9 + 4 + 441 = 520.
- Sample variance (s² = 520/(7 - 1) = 520/6 ≈ 86.67).
- Standard deviation (s = √(86.67) ≈ 9.31 days).
If you wrote in your paper that the length of stay was 7.0 ± 9.31 days, it would look as though the typical patient stays a week, even though 6 of the 7 patients were discharged within 5 days or fewer!
Second: The Non-Parametric Calculation, Median and Interquartile Range (IQR)
The sorted data (n = 7): 2, 3, 3, 4, 4, 5, 28.
- Position of the median: observation number (7 + 1) / 2 = 4, whose value is 4 days.
- Quartiles: excluding the median from both halves (which gives the same result as the default method in SPSS here), the lower half is (2, 3, 3) and its middle value is the first quartile Q₁ = 3 days. (Note: software packages differ in how they compute quartiles. The default method in R, for example, gives Q₃ = 4.5 for these data, so state which software you used.)
- The upper half above the median is (4, 5, 28) and its middle value is the third quartile Q₃ = 5 days.
- Interquartile range (IQR = Q₃ - Q₁ = 5 - 3 = 2 days).
When you report the result as median and interquartile range, 4.0 days (IQR: 3.0–5.0), the clinician and researcher read an accurate, honest picture of the typical patient in this sample, not one blurred by a single extreme case.
The Golden Consistency Rule in Scientific Tables
A frequent mistake in theses is mixing the two schools on the same line: for example, the researcher runs a Mann–Whitney U test because the data are not normal, and then puts the mean and standard deviation in the table!
- If you used a parametric test (such as a t-test or ANOVA), present the mean and standard deviation (Mean ± SD).
- If you used a non-parametric test (such as Mann–Whitney or Kruskal–Wallis), present the median and interquartile range, Median (IQR), either by writing the quartile limits (Q1–Q3) or the difference between them, and explain the method in a table footnote.
How to Write It Up in Your Research
You can phrase your decision in the statistical methods and results sections as follows:
Sample reporting sentence (APA 7th edition style):
“Normality of continuous variables was assessed using the Shapiro–Wilk test and visual inspection of Q-Q plots. Normally distributed variables were summarized as mean ± standard deviation (SD) and compared using the independent-samples t-test, whereas non-normally distributed variables were reported as median and interquartile range (IQR; Q1–Q3) and compared using the Mann–Whitney U test. Length of hospital stay was significantly shorter in the intervention group (median = 4.0 days, IQR: 3.0–5.0) than in the control group (median = 6.0 days, IQR: 4.5–8.0; U = 842.5, p = .008).”
To apply this to your own data, try it on analysez.ai.