Skip to content

Shapiro–Wilk Test

A statistical normality test whose statistic measures how closely ordered sample values align with expected order statistics from a normal population.

Version
v2 · 2026-11-14 · History
Domain-specific #
12006
Domain group
Formal Sciences
Origin domain
Experimental Design & Statistics
Subdomains
Normality Tests, Hypothesis Testing → Experimental Design & Statistics

Core Idea

The Shapiro–Wilk test is a univariate iid normality test comparing ordered sample values with expected normal order statistics through a calibrated W statistic. Shapiro–Wilk tests whether an iid sample is compatible with a normal population by comparing ordered observations with expected normal order statistics. W is calibrated by sample size; a small p-value rejects at the chosen α, while a large p-value does not prove normality. Power changes with n, so tiny departures can be significant in large samples. Dependence, ties, censoring, transformation, and residual/model context require separate treatment.

How would you explain it like I'm…

Bell-Shape Checker

Some piles of numbers make a bell shape when you line them up: lots in the middle, few at the ends. The Shapiro–Wilk test checks whether your numbers could have come from a bell shape. If it says "no," they probably didn't. If it doesn't say no, that doesn't prove they did; it just didn't catch a problem.

The Bell-Curve Check

Many kinds of data follow a 'normal' pattern: a bell-shaped curve with most values near the middle and fewer far away on both sides. The Shapiro–Wilk test checks whether a set of numbers could have come from that pattern. It lines the numbers up from smallest to largest and compares them with how normal data would line up. If the match is poor, that is evidence the data is not normal. If the match seems fine, it might be normal, or the sample might just be too small to tell, so you should also look at a graph.

Normality Test via Order Statistics

The Shapiro–Wilk test checks whether a sample of independent measurements of one variable is consistent with coming from a normal (bell-curve) population. It sorts the observations and computes a statistic called W, which compares that ordered pattern to what would be expected from normal data, adjusted for the sample size. A small p-value is evidence against normality at your chosen significance level. A large p-value does not prove normality: the data may be normal, or the test may simply lack the power to detect a difference, especially with few observations. Good practice pairs the test with graphs and with thinking about whether non-normality would actually matter for your analysis.

 

The Shapiro–Wilk test is a hypothesis test of whether an iid univariate sample is compatible with a normal population. Its statistic W compares the ordered sample values with the structure expected of normal order statistics, essentially measuring how well the sorted data line up with normal expectations, and its null distribution is calibrated for sample size. The null hypothesis is normality. A small p-value is evidence against normality at significance level α. Nonrejection is weak evidence: it is consistent with normality but can also reflect low power, so it should not be read as confirmation. Responsible use pairs the test with graphical checks, such as normal Q–Q plots, and with analysis of how much any departure from normality would affect downstream conclusions. The iid and univariate assumptions are part of what the test presupposes.

Scope of Application

The concept applies in statistical diagnostics and related work when its scope and evidence are explicit. Use it with the actual assumption target, iid basis, n, transformation, ties/censoring, W, p, α, graphics, power, and downstream consequence explicit; nonrejection does not prove normality.

  • Statistical diagnostics. Checks distributional assumptions.
  • Regression. Can assess residuals under model conditions.
  • Quality control. Screens process distributions.
  • Experimental analysis. Guides transformation/model choice.
  • Simulation validation. Checks generated marginals.

Clarity

Report data unit, independence basis, n, transformations, W, p, α, ties/censoring, graphical diagnostics, and practical impact. Do not test raw outcomes when the model assumes normal residuals. The closest near miss sets the boundary: Shapiro–Francia is the closest miss because it also uses ordered normal scores but a different statistic/weighting approximation.

Manages Complexity

The test compresses an entire order-pattern comparison into W and p, gaining reproducibility while losing detail about which tail, skew, or mixture caused rejection. The Shapiro–Wilk statistic compares ordered sample values with the pattern expected from normal order statistics. Values of W near one generally indicate close alignment, but inference uses sample-size-specific null calibration rather than a universal distance threshold. Rejecting normality at chosen α supplies evidence against the null; failing to reject does not prove normality. Small samples can miss meaningful deviations, while large samples can flag negligible departures. Estimated parameters, ties, discreteness, dependence, censoring, and prior data transformation can invalidate routine calibration or change interpretation. The test addresses marginal normality of an iid sample, not normal residuals, multivariate normality, or whether a downstream method is robust enough. Graphical diagnostics and substantive consequences should accompany the p-value. The central sensitivity–practical importance tradeoff is this: Large n detects tiny harmless departures.

Abstract Reasoning

Use three linked moves: identify the actual normality assumption; check iid/univariate applicability; compute ordered values and W with validated software. As a collapse test, identity collapses when the order-statistic weighting or normal-null calibration is replaced.

Knowledge Transfer

Order-statistic goodness-of-fit reasoning transfers to other distributions/tests, but Shapiro–Wilk requires its normal weights and calibration. No canonical parent prime is currently asserted; broader structural comparisons remain related-prime analogies until separately adjudicated in the DAG. Shapiro–Wilk is a named normality test: it evaluates an iid sample against a normal null, while W's ordered-value alignment supplies the narrower method.

Relationships to Other Abstractions

Local relationship map for Shapiro–Wilk TestParents appear above the current abstraction, mutual partners to the right, and children below. Node labels state whether each abstraction is prime or domain-specific; colors identify relation types.Shapiro–Wilk TestDOMAINDomain-specific abstraction: Normality test — is a kind ofNormality testDOMAIN

Current abstraction Shapiro–Wilk Test Domain-specific

Parents (1) — outgoing typed relations

  • Shapiro–Wilk Test is a kind of Normality test Domain-specific

    Shapiro–Wilk is a strict kind of Normality Test: it tests an iid sample against a normal null using W and expected normal order statistics.

Hierarchy paths (3) — routes to 3 parentless roots

Neighborhood in Abstraction Space

Shapiro–Wilk Test sits in a crowded region of the domain-specific corpus (34th percentile for distinctiveness): several abstractions share nearly its structure, so a description that fits it tends to fit its neighbors too.

Family — Empirical Measurement & Statistical Inference Methods (54 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-11-14