# Shapiro-Wilk, Anderson-Darling and Lilliefors Normality Tutor

Run the three workhorse normality tests (Shapiro-Wilk AS R94, Anderson-Darling, Lilliefors) with a Q-Q plot and a Monte-Carlo power comparison.

> Canonical page: https://elysiatools.com/en/tools/shapiro-wilk-anderson-darling-lilliefors-normality-tutor

- **Category:** Science & Education

- **Keywords:** shapiro wilk calculator, normality test online, anderson darling p value, lilliefors test calculator, qq plot normal, test power simulation

## Overview

Exact ports of the reference implementations: R’s swilk.c for Shapiro-Wilk, nortest’s ad.test and lillie.test for the other two, validated digit-for-digit against scipy. Includes Blom Q-Q plotting and seeded power simulations across five alternative shapes.

## Inputs

- **Numeric sample (comma / space / newline separated)** (textarea): 4.53 5.12 4.87 … or one value per line
- **Significance level α** (select)
- **Draw the Q-Q plot** (checkbox)
- **Power-curve alternative distribution** (select)
- **Run the Monte-Carlo power comparison** (checkbox)

## When to use

- Checking normality assumptions prior to running parametric analyses such as t-tests, ANOVA, or linear regression.
- Evaluating dataset tails, asymmetry, and potential outliers using quantitative tests alongside a Blom Q-Q plot.
- Comparing statistical power and detection sensitivity across different non-normal distribution alternatives.

## How it works

- Paste numeric observations separated by commas, spaces, or line breaks into the input field.
- Select your target significance level (α = 0.01, 0.05, or 0.10) and enable the optional Blom Q-Q plot.
- Choose an alternative distribution profile (such as exponential, bimodal, uniform, or Student t3) to run Monte-Carlo power simulations.
- Review the resulting HTML report containing test statistics (W, A², D), exact p-values, descriptive metrics, and decision summaries.

## Use cases

- Validating experimental assay residuals in laboratory and clinical research datasets.
- Demonstrating normality test mechanics and power trade-offs in statistics and data science courses.
- Verifying process distribution shapes for statistical quality control in manufacturing workflows.

## Frequently asked questions

### Which normality test is best for general use?

Shapiro-Wilk is generally recommended as the most powerful omnibus test, while Anderson-Darling provides superior sensitivity to tail departures.

### How are the p-values and test statistics calculated?

Calculations use exact ports of standard R implementations: swilk.c (AS R94) for Shapiro-Wilk, and nortest for Anderson-Darling and Lilliefors, validated against SciPy.

### What formula is used to plot the Q-Q line?

The Q-Q plot uses Blom plotting positions to calculate empirical quantiles against theoretical normal quantiles with a robust quartile reference line.

### What does the Monte-Carlo power simulation represent?

It simulates empirical rejection rates across various sample sizes to show how effectively each test detects departures from normality for a chosen alternative distribution.

### What data formats are accepted?

The tool accepts numeric samples entered as raw values separated by spaces, commas, or standard line breaks.

## Related tools

- [Snell's Law Calculator](https://elysiatools.com/en/tools/snell-law-calculator): n₁·sinθ₁ = n₂·sinθ₂ for either angle, with the total-internal-reflection regime and critical angle when sinθ exceeds 1.
- [Heisenberg Uncertainty Principle Calculator](https://elysiatools.com/en/tools/uncertainty-principle-calculator): Δx·Δp ≥ ℏ/2: minimum Δp from Δx, minimum Δx from Δp, or a pair check with satisfaction ratio. Units m–pm and kg·m/s / g·cm/s / eV/c; optional mass derives Δv.
- [Rapidity Calculator](https://elysiatools.com/en/tools/rapidity-calculator): φ = artanh(β) with γ = cosh φ, γβ = sinh φ, the e^φ Doppler factor, and the tanh(2φ) additivity check — where boosts just add.
- [Physics Kinematics Problem Solver](https://elysiatools.com/en/tools/physics-kinematics-problem-solver): Solve 1D constant-acceleration kinematics problems and 2D projectile motion, with a full step-by-step derivation. Enter any 3 of the 5 quantities (displacement, initial velocity, final velocity, acceleration, time) and the solver finds the other two, showing each formula, the substitution, and the result. For projectiles, enter launch speed/angle/height to get range, time of flight, and max height.
- [Arrhenius Equation Calculator](https://elysiatools.com/en/tools/arrhenius-equation-calculator): k = A·e^(−Ea/RT) solved for k, A, or Ea (two-point form), with Ea in kJ/mol and kcal/mol.
- [Battery Capacity Calculator](https://elysiatools.com/en/tools/battery-capacity-calculator): C = I·t both ways — runtime from capacity or capacity from runtime — with optional voltage for Wh and W.
- [Beer-Lambert Law Calculator](https://elysiatools.com/en/tools/beer-lambert-law-calculator): A = ε·c·l both ways, with T = 10⁻ᴬ, %T, unit selectors, and the 0.05–1.0 working-range check.
- [Boiling Point Elevation](https://elysiatools.com/en/tools/boiling-point-elevation): ΔT_b = K_b·m·i from a solvent preset table with van't Hoff factor support and custom solvents.

## Samples

- [Web Image Processing Python Samples](https://elysiatools.com/en/samples/web-image-processing-python): Web Python image processing examples using PIL/Pillow including reading, saving, resizing, and format conversion
- [Android Image Processing Java Samples](https://elysiatools.com/en/samples/android-image-processing-java): Android Java image processing examples including reading/saving images, scaling, and format conversion
- [Android Image Processing Kotlin Samples](https://elysiatools.com/en/samples/android-image-processing-kotlin): Android Kotlin image processing examples including reading/saving images, scaling, and format conversion
- [Web Image Processing Rust Samples](https://elysiatools.com/en/samples/web-image-processing-rust): Web Rust image processing examples including image read/save, scaling, and format conversion
