Anderson-Darling Test Calculator

Inputs

p-value0.0267
Adjusted A-squared (Stephens)0.8635
Critical value at 5%0.787
Verdict at the 5% levelReject normality at 5%
How this was calculated
  1. Inputs: Anderson-Darling A-squared 0.8500 from a sample of 50.
  2. Stephens' small-sample adjustment: A* = A-squared x (1 + 0.75/n + 2.25/n^2) = 0.8635.
  3. The adjusted statistic is read against Stephens' piecewise p-value approximation for the case of estimated mean and variance.
  4. The p-value is 0.0267: reject normality at 5%.

Most normality tests look hardest where departures matter least. The Anderson-Darling test weights the tails of the distribution, where a normal model that is wrong does its damage - in risk estimates, in control limits, in the extreme percentiles that decisions actually use. It compares the sample's empirical distribution function with the fitted normal through an integral that emphasises the ends, and this calculator applies Stephens' small-sample adjustment and his piecewise p-value approximation to the A-squared you supply.

Worked examples

Moderate departure from normality

(0.85 · 50)

p-value0.0267
Adjusted A-squared (Stephens)0.8635
Critical value at 5%0.787
Verdict at the 5% levelReject normality at 5%

Consistent with normality

(0.32 · 120)

p-value0.5286
Adjusted A-squared (Stephens)0.3221
Critical value at 5%0.787
Verdict at the 5% levelDo not reject normality at 5%

Strong rejection

(2.4 · 30)

p-value<0.0001
Adjusted A-squared (Stephens)2.4660
Critical value at 5%0.787
Verdict at the 5% levelReject normality at 5%

Why weight the tails

The statistic integrates the squared gap between the empirical and theoretical distribution functions, weighted by the inverse variance of the empirical function at each point. That weight explodes in the tails, which is the formal way of saying: a discrepancy at the 99th percentile counts for far more than the same discrepancy at the median. For the uses normality is usually assumed for - tail probabilities - that is the right accounting.

The Kolmogorov-Smirnov test, by contrast, takes the single largest gap wherever it occurs, which is usually mid-distribution where the data are densest and the model least consequential. The two tests are siblings, both built on the empirical distribution function, but they answer to different anxieties, and on genuinely heavy-tailed data Anderson-Darling rejects long after Kolmogorov-Smirnov has shrugged.

  • Built on the empirical distribution function
  • Weighting emphasises both tails over the centre
  • Mean and variance are estimated from the sample
  • Stephens' adjustment corrects the small-sample bias

Stephens' adjustment and p-value

Because the normal's parameters are estimated from the same data being tested, the raw A-squared runs small, and Stephens' correction inflates it by the factor (1 + 0.75/n + 2.25/n^2). At the first worked example's n of 50 the factor is modest - A-squared of 0.85 becomes 0.8635 - and at the third example's n of 30 it matters more, lifting 2.4 to 2.4660. The p-value then comes from Stephens' piecewise approximation, a different polynomial in each range of the adjusted statistic, fitted to the test's simulated distribution.

The approximation's piecewise form is worth knowing about: it is an interpolation of simulation results, not an exact distribution, and near its joins small discontinuities are possible. For verdicts at conventional levels it is more than accurate enough - the first example's p-value of 0.0267 and the second's 0.5286 are nowhere near a join - and it is the form implemented in standard software, which keeps results comparable across tools.

Worked examples

Example 1: Anderson-Darling A-squared statistic 0.85; Sample size n 50. p-value = 0.0267. Supporting values: Adjusted A-squared (Stephens) 0.8635; Critical value at 5% 0.787; Verdict at the 5% level Reject normality at 5%. Inputs: Anderson-Darling A-squared 0.8500 from a sample of 50. Stephens' small-sample adjustment: A* = A-squared x (1 + 0.75/n + 2.25/n^2) = 0.8635. The adjusted statistic is read against Stephens' piecewise p-value approximation for the case of estimated mean and variance. The p-value is 0.0267: reject normality at 5%.

Example 2: Anderson-Darling A-squared statistic 0.32; Sample size n 120. p-value = 0.5286. Supporting values: Adjusted A-squared (Stephens) 0.3221; Critical value at 5% 0.787; Verdict at the 5% level Do not reject normality at 5%. Inputs: Anderson-Darling A-squared 0.3200 from a sample of 120. Stephens' small-sample adjustment: A* = A-squared x (1 + 0.75/n + 2.25/n^2) = 0.3221. The adjusted statistic is read against Stephens' piecewise p-value approximation for the case of estimated mean and variance. The p-value is 0.5286: do not reject normality at 5%.

Example 3: Anderson-Darling A-squared statistic 2.4; Sample size n 30. p-value = <0.0001. Supporting values: Adjusted A-squared (Stephens) 2.4660; Critical value at 5% 0.787; Verdict at the 5% level Reject normality at 5%. Inputs: Anderson-Darling A-squared 2.4000 from a sample of 30. Stephens' small-sample adjustment: A* = A-squared x (1 + 0.75/n + 2.25/n^2) = 2.4660. The adjusted statistic is read against Stephens' piecewise p-value approximation for the case of estimated mean and variance. The p-value is <0.0001: reject normality at 5%.

The critical values

For the estimated-parameter case the traditional critical values are tabulated against the adjusted statistic, with 0.787 the 5% point - the value this calculator reports beside every result. The first example's adjusted 0.8635 clears it, matching its p-value's rejection; the second example's 0.3221 falls far short, matching its acquittal. Two routes to the same verdict is not redundancy: the critical value is the quick screen, the p-value the graded evidence.

A warning that travels with the table: those critical values belong to the case where mean and variance are both estimated. Testing against a fully specified normal - parameters fixed in advance - uses a different, larger set of values, and mixing the two cases manufactures verdicts. This page is the estimated-parameter case throughout, which is the situation applied work is almost always in.

AD vs Shapiro-Wilk and Kolmogorov-Smirnov

Shapiro-Wilk is the stronger test at small samples for general departures, and it is the right default below n of about 50 when the raw data are in hand. Anderson-Darling earns its place when the question is specifically about tail behaviour, when the sample is larger, and when the same statistic must serve for distributions beyond the normal - the A-squared machinery generalises to exponential, Weibull and other families with their own tables, which Shapiro-Wilk does not.

There is also a division of labour by input. Shapiro-Wilk needs the ordered raw sample; Anderson-Darling is often encountered, as here, when another program has already produced the A-squared and what is needed is the adjusted statistic, the critical comparison and the p-value - the interpretive half of the test, done carefully.

What rejection does and does not say

Rejection says the tails, chiefly, are inconsistent with the fitted normal at the stated level. It does not say the departure matters for the purpose at hand - at large n the test rejects for deviations no application would feel, which is why the second example's clean acquittal at n of 120 is informative and why a rejection at very large n should be followed by asking how large the departure is, not just whether it exists.

Non-rejection, symmetrically, is not a certificate of normality; it is the absence of detectable tail evidence at this sample size. The three examples are chosen to show the instrument at its three settings - clear rejection at 0.0267, clear acquittal at 0.5286, and the overwhelming case below 0.0001 - and most real datasets land, less conveniently, in between.

The test's tail weighting has a practical consequence for how its verdicts should be sequenced with remedial action. A rejection driven by one tail - a long right tail in income data, a fat left tail in returns - points at the transformation or model that addresses that tail specifically, and the statistic's construction means the other tail may be perfectly normal. Analysts who follow an Anderson-Darling rejection by inspecting which tail carries the discrepancy get a diagnosis; those who stop at the p-value get only an alarm. The second example's acquittal, at a p-value of 0.5286, is the complementary case: no tail is misbehaving detectably, and the normal model can be used with a clear account of what was checked.

There is a final comparison worth making with the chi-square goodness-of-fit test, the oldest instrument in this family. Binning continuous data to run it destroys exactly the tail resolution the Anderson-Darling statistic exists to preserve, and the verdict becomes a function of the bins chosen. The EDF tests displaced the binned test for continuous distributions for that reason. Between them, Anderson-Darling is the member of the family that spends its sensitivity where continuous data carry their risks - in the extremes - which is why it, rather than its cousins, is the normality check embedded in so many validation pipelines.

The statistic also has a second career outside normality, and it explains the form of the p-value machinery. The same A-squared construction tests fit to any fully specified continuous distribution, and with estimated parameters it adapts - with different adjustments - to the exponential, Weibull, logistic and extreme-value families. Stephens' body of work, from which this page's adjustment and critical values come, is largely the tabulation of those adaptations. A user who meets A-squared in a Weibull reliability study is meeting the same instrument in different dress, and the reading skills transfer: adjusted statistic, family-specific critical values, piecewise p-value.

A closing note on reporting: give the adjusted statistic, the sample size and the p-value band together. A-squared values are not comparable across sample sizes in the way a correlation is, and a bare 'A2* = 0.799, reject' without the n of 30 that produced it withholds the context a reader needs to judge whether the rejection was earned by the tails or by a large sample's power to detect trivia.

The examples on this page report all three together, and any use of the calculator in assessed or published work should do the same.

FAQs

What adjusted A-squared does the first worked example give?

0.8635: the raw 0.85 inflated by Stephens' factor at n of 50.

What is its p-value?

0.0267 - normality is rejected at the 5% level, consistent with the adjusted statistic clearing the 0.787 critical value.

What is the 5% critical value?

0.787 for the case where the mean and variance are estimated from the sample, the case this calculator covers.

What adjusted A-squared does the second example give?

0.3221, from a raw 0.32 at n of 120 - the adjustment shrinks as the sample grows.

What is the second example's p-value?

0.5286. No evidence against normality; the sample's tails behave as a normal's should.

What adjusted A-squared does the third example give?

2.4660, from a raw 2.4 at n of 30, with a p-value below 0.0001 - as clear a rejection as the test can state.

Sources

Related calculators

Kolmogorov-Smirnov Test Calculator
The one-sample Kolmogorov-Smirnov test: Stephens-adjusted lambda and the series p-value from the D statistic and sample size, with the 5% and 1% critical values.
D'Agostino-Pearson Normality Test Calculator
The D'Agostino-Pearson omnibus K-squared normality test, combining the D'Agostino skewness transform and the Anscombe-Glynn kurtosis transform.
Bowley Skewness Calculator
Compute Bowley's quartile skewness coefficient (Q3 + Q1 - 2 Q2) / (Q3 - Q1) - a robust skewness measure built only from quartiles, bounded between -1 and +1.