How can you assess the normality of a dataset?
Instruction: Describe methods to determine whether a dataset follows a normal distribution.
Updated
Official answer
First identify which distribution the analysis assumes is normal. A regression may assume a conditional error distribution, not that every predictor or the pooled outcome is normal.
Inspect a normal Q–Q plot for systematic curvature and tail departures, supported by a histogram and context about mixtures or outliers. A sample from a normal population will not lie perfectly on a line.
Shapiro–Wilk tests a normal-population null. Small samples can lack power; large samples can detect departures too small to matter for the intended analysis. A nonsignificant result does not prove normality. Check implementation limits: SciPy warns that its Shapiro–Wilk p-value may be inaccurate above 5,000 observations.
An ordinary one-sample Kolmogorov–Smirnov reference distribution assumes a fully specified continuous distribution. Estimating the normal mean and variance from the same data requires a suitable adjustment or calibrated simulation; do not use the unadjusted test as a default workaround.
Assess whether departures materially affect inference, and consider justified robust or alternative models instead of mechanically transforming until a test passes.
References: SciPy Shapiro–Wilk, NIST K–S limitations.