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 assesses whether an iid univariate sample is compatible with a normal population.

W compares ordered observations with expected normal order-statistic structure and is calibrated for sample size.

A small p-value is evidence against normality at α; nonrejection can reflect normality or low power and should be paired with graphics and consequence analysis.

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.

Structural Signature

Sig role-phrases:

  • iid sample. Supplies univariate observations. Constitutive input. If altered: Dependence changes calibration.
  • ordered values. Expose sample quantile pattern. Constitutive transform. If altered: Raw order labels are irrelevant.
  • normal order-statistic weights. Encode expected normal spacing/covariance. Constitutive reference. If altered: Different weights define another test.
  • W statistic. Normalizes weighted order alignment by sample spread. Constitutive measure. If altered: W alone needs n-specific calibration.
  • null calibration/p-value. Connects W and sample size to evidence. Inferential role. If altered: No universal W cutoff exists.
  • alpha/context consequence. Sets rejection and practical relevance. Decision frame. If altered: Failure to reject is not proof.

What It Is Not

  • Not proof of normality. Nonrejection is limited evidence.
  • Not multivariate. The standard test is univariate.
  • Not a robustness test. A method may tolerate deviations.
  • Not sample-size invariant. Power/calibration change with n.

Scope of Application

The concept applies in statistical diagnostics and related work when its scope and evidence are explicit.

  • 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.

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.

Abstract Reasoning

  1. Identify the actual normality assumption.
  2. Check iid/univariate applicability.
  3. Compute ordered values and W with validated software.
  4. Use n-appropriate calibration.
  5. Interpret with QQ plot, power, and downstream robustness.

Knowledge Transfer

Order-statistic goodness-of-fit reasoning transfers to other distributions/tests, but Shapiro–Wilk requires its normal weights and calibration.

Examples

Canonical

An iid sample is sorted, W is computed from normal-order-statistic weights, and the p-value is compared with a preregistered α without calling nonrejection proof.

Mapped back: iid sample → independent observations; ordered values → x(1)…x(n); normal order-statistic weights → Shapiro–Wilk coefficients; W statistic → computed W; null calibration/p-value → n-specific p; alpha/context consequence → bounded decision.

Applied / In Practice

A regression analyst tests model residuals, not raw skewed outcomes, and combines W with a QQ plot and a sensitivity analysis showing whether inference changes under a robust method.

Mapped back: iid sample → model residuals with dependence caveat; ordered values → ordered residuals; normal order-statistic weights → software implementation; W statistic → reported; null calibration/p-value → reported; alpha/context consequence → practical robustness.

Structural Tensions

T1: sensitivity vs. practical importance. Large n detects tiny harmless departures. Diagnostic: Does the deviation affect the intended analysis?

T2: power vs. assurance. Small n nonrejection may be weak evidence. Diagnostic: What deviations could the test detect?

Structural–Framed Character

Shapiro–Wilk is structural-measured with inferential framing. Individuation is statistic-specific; analyst agency selects data/alpha; statistical norms govern interpretation; temporality is absent unless data dependence enters; robustness depends on assumptions. Its portable test skeleton is supplied by Normality test. Its character: normal-order alignment summarized into a calibrated rejection test.

Structural Core vs. Domain Accent

Skeletal core. Observed values are compared with a calibrated normal-reference pattern to test a normality null.

Domain-bound accent. W's order-statistic coefficients, sample-size calibration, and named implementation distinguish Shapiro–Wilk from other normality tests.

Why not prime. The broader Normality Test parent supplies the genus; Shapiro–Wilk adds one statistic-specific differentia.

This entry is a kind of Normality test.

  • Strict parent — Normality test. 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.
  • Related — QQ plot. It shows deviations that W compresses.

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

Not to Be Confused With

  • QQ plot. Tell: Graphical diagnosis or formal test?
  • Shapiro–Francia. Tell: Approximate/different weights?
  • Kolmogorov–Smirnov. Tell: CDF distance or order-correlation statistic?
  • Robustness analysis. Tell: Assumption truth or consequence?

References

  • Frozen Wikipedia discovery revision: https://en.wikipedia.org/wiki/Shapiro%E2%80%93Wilk_test (revision 1362068790).