molecalculator

Solutions & Concentration

Anderson-Darling Normality Test Calculator

Calculator No. 02-0182 · Updated · Formula and assumptions shown below

The calculator on this page is switched off while it is checked. The formula is below, and the worked example shows how to do the sum by hand.

For study and lab planning. The result follows from the numbers you enter and the formula shown. Check it against your method before you weigh, mix or dilute anything, follow the safety data sheet and your supervisor, and do not use it for clinical, dosing or medication work.

An Anderson–Darling normality test calculator evaluates whether a set of observations is consistent with a normal distribution, using the sample values you enter. It returns the test statistic and, when its implementation supports the chosen sample size and settings, a p-value or critical-value decision; the statistic alone is not a probability that the data are normal.

Formula

This test requires a list of observed data, plus a reference distribution and a method for estimating its parameters. The core Anderson–Darling statistic is calculated from the observations after sorting them from smallest to largest and comparing their empirical positions with the reference cumulative distribution.

For a fully specified continuous reference distribution with cumulative distribution function F, sort the n observations as x(1) ≤ … ≤ x(n). Let zi = F(x(i)). The statistic is:

A2 = −n − (1/n) Σi=1n (2i − 1)[ln(zi) + ln(1 − zn+1−i)]

Here, n is the number of observations, i is the rank from 1 to n, and F is the reference distribution’s cumulative distribution function. For a normality test, F is the normal cumulative distribution function evaluated using a mean and standard deviation. If those parameters are estimated from the same data, the null distribution of A2 changes; a normality calculator must use a correction or calibrated critical values appropriate to that case.

How the Test Works

The Anderson–Darling test is an empirical-distribution goodness-of-fit test. It measures the gap between the observed sample’s ordered values and the values expected under a specified distribution. Unlike a test that gives every part of the distribution equal emphasis, Anderson–Darling gives comparatively strong weight to discrepancies in the tails. That feature can make it useful when extreme values matter, but it also means a single unusual tail observation can have considerable influence.

A normality calculator usually follows these broad steps:

  1. Read the sample and exclude no values unless the user intentionally and defensibly specifies exclusions.
  2. Sort observations and estimate the normal distribution’s mean and standard deviation, according to the calculator’s stated convention.
  3. Calculate the cumulative normal probabilities for the ordered observations and use them in the Anderson–Darling formula.
  4. Apply the correct adjustment and reference distribution to obtain a p-value or compare the statistic with a critical value.

The calculation is not defined by the statistic formula alone. Software may differ in its finite-sample correction, parameter estimation, p-value approximation, and handling of edge cases. A trustworthy calculator should state which convention it uses, especially when results are close to a chosen significance threshold.

How to Enter Data and Read the Result

Enter the original numeric observations, not a histogram, rounded summary, or list of ranks. Use consistent units: converting every measurement from centimeters to meters does not change the normality conclusion, but mixing centimeters and meters can distort it. Include the sample size and any output options requested, such as significance level or whether the mean and variance are estimated.

The null hypothesis is that the data come from the specified normal distribution (or, in a common normality-test formulation, from some normal distribution whose parameters are estimated from the sample). The alternative is that the distribution differs from that reference. A low p-value provides evidence against the null under the test assumptions. A p-value above the chosen threshold means the test did not detect sufficient evidence against normality; it does not prove that the data are normal.

For example, at a preselected significance level of 0.05, a reported p-value of 0.03 would ordinarily lead to rejection of the normality null, while 0.12 would not. Those figures illustrate the decision rule, not a result for any particular dataset. Do not interpret p = 0.12 as a 12% probability that the data are normal.

When to Use It—and When Not To

Use a normality test when a statistical procedure’s assumptions make the distribution of interest relevant and a formal check will inform the analysis. In many models, the assumption concerns residuals or errors rather than the raw outcome. For example, in a regression, testing the response values for normality is not the same as checking whether the model residuals are approximately normal.

Consider the design and purpose of the analysis alongside the test. A large sample can make a test detect tiny, practically unimportant departures from normality. A small sample may have little power to detect meaningful departures. Visual checks such as a normal Q–Q plot can reveal skew, heavy tails, clusters, or outliers and help explain what a test result means. They complement rather than replace a clearly stated inferential method.

Observations should also be independent for the usual interpretation. Repeated measures, grouped data, time series, or clustered observations may violate this condition. Applying a basic one-sample normality calculator to dependent observations does not repair the design problem.

Common Problems and Misconceptions

  • Confusing the statistic with the p-value: A2 is a test statistic; its size cannot be interpreted without the appropriate reference calibration.
  • Assuming all implementations match: Adjustments and p-value approximations differ. Record the software or calculator convention when reproducibility matters.
  • Ignoring ties or rounded measurements: Many identical values may reflect rounding or a discrete measurement process. The standard continuous-normal calibration may not describe that situation well.
  • Removing outliers just to obtain a pass: Investigate data-entry errors and measurement context, but do not discard valid observations solely because they weaken normality.
  • Testing the wrong quantity: Check the variable required by the method, such as residuals, rather than automatically testing raw measurements.
  • Treating a pass as proof: Failure to reject can reflect limited sample size or low power, not confirmation of a normal distribution.

Comparison with Other Normality Checks

The Shapiro–Wilk test is another widely used formal test of normality and is often selected for small or moderate samples. Anderson–Darling places more emphasis on tail discrepancies. The Kolmogorov–Smirnov test compares the empirical distribution with a theoretical one, but its standard reference calibration is not valid when distribution parameters are estimated from the same sample unless an appropriate adjustment is made. These methods answer related but not identical questions, and there is no universally best choice for every dataset.

For practical assessment, pair a formal test with a Q–Q plot and knowledge of the sampling process. If the data are markedly skewed or contain heavy tails, possible responses include a justified transformation, a model suited to the distribution, or a robust or resampling-based method. Choose based on the scientific question and assumptions, not simply to make a p-value exceed 0.05.

Frequently Asked Questions

What does the Anderson–Darling normality test calculator calculate?
It calculates an Anderson–Darling statistic for a sample against a normal reference distribution and may report a calibrated p-value or critical-value result. The exact output depends on the calculator’s stated method.

What is a good Anderson–Darling p-value?
There is no universally “good” value. Compare the p-value with a significance level chosen before interpreting the result. A small value indicates evidence against the normality null; a larger one means the test did not detect enough evidence to reject it.

Can I use the test with a small sample?
It can be calculated for small samples, but the test may have limited ability to detect departures from normality. Inspect a Q–Q plot and consider the consequences of the assumption in the intended analysis.

Does Anderson–Darling test for outliers?
No. It tests overall distributional fit and is sensitive to tail differences, so an outlier can affect the result. Use data-quality checks and appropriate outlier diagnostics to investigate individual observations.

Should I test raw data or residuals?
Test the quantity relevant to the model assumption. For many regression analyses, that means examining residuals, not requiring the predictor or outcome values themselves to be normally distributed.

Limits and Reporting

A test cannot establish that a dataset follows a distribution exactly, and an unqualified “normal” or “not normal” label hides uncertainty and context. Report the sample size, statistic, p-value or critical-value rule, significance level, parameter-estimation convention, and any consequential departures observed in plots. If the result will guide a formal analysis, verify the calculator’s documented method and use a method suitable for the sampling design.

Related

Formula used

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.

More in this section

The whole Solutions & Concentration section →