Understand the idea
It is very natural to check whether your raw data column 'looks normal' by plotting a histogram of it directly. But that is checking the wrong thing for most standard tests: the assumption is really about what is left over AFTER the model has explained what it can, not about the raw measurements themselves.
Comparing body mass between two very different species is a clean illustration: the pooled column of all body-mass measurements together can look distinctly two-humped (bimodal), simply because the species genuinely differ. That is not a violation of anything: it is exactly the signal the test is meant to detect. Subtract each animal's own group average, and the leftover residuals can be perfectly bell-shaped.
The correct check is always: fit the model first, THEN look at a histogram or Q-Q plot of the residuals, never a histogram of the raw outcome column in isolation, and never a residual check done before the systematic part of the model has been removed.
What the model assumes is residual normality, not raw data normality: the leftovers after the model, not the original column, should look bell-shaped. A bimodal response variable, with two humps, is often just two groups mixed together, and the residuals can be close to normal once the model includes the group.
Practitioner explanation
The formal requirement is on the distribution of the error term epsilon in y = f(x) + epsilon, not on the marginal distribution of y; a multimodal, skewed, or otherwise non-normal-looking response is entirely compatible with normal residuals once the model's systematic component (differing group means, a regression surface) is subtracted out.
This distinction matters most exactly where it is most often skipped: comparing groups with a large true separation (which mechanically produces a multimodal pooled histogram regardless of within-group normality) and regression with strong predictors (where the raw response can be highly skewed while the CONDITIONAL distribution, given the predictors, is close to normal).
KernelStats' regression and ANOVA cards run normality diagnostics (Shapiro-Wilk, Q-Q plot) on the RESIDUALS by construction, never on the raw response column, and the Learn More text for the normality assumption states this distinction explicitly because it is the single most common way this check is misapplied.
Worked example
Scenario
Comparing body mass between 151 Adelie and 123 Gentoo penguins, whose true means differ by nearly three pooled standard deviations.
Result
Shapiro-Wilk on the raw pooled column: W = 0.968, p < .001 (looks non-normal). On the within-group residuals: W = 0.988, p = .022 (much closer to normal).
Interpretation
Most of the raw column's apparent non-normality was simply the real species difference, exactly the signal the t-test is designed to find. The residual check, not the raw-column check, is the one that actually bears on whether the t-test's assumption holds.
Dataset: penguins.csv
Common misconceptions
Misconception
You should check whether the raw outcome variable itself looks normally distributed before running a t-test or ANOVA.
Correction
The assumption concerns the residuals, what remains after the model's systematic part (the group means, the regression fit) is removed, not the raw variable, which can legitimately be multimodal, skewed, or any other shape.
References
- NIST/SEMATECH e-Handbook of Statistical Methods, §1.3.5.11 Measures of skewness and kurtosis, NIST/SEMATECH (2012), §1.3.3.21.
