# Anderson-Darling Test & Statistic: Definition, Examples

Goodness of Fit > Anderson-Darling Goodness of Fit

## What is the Anderson-Darling Test?

The Anderson-Darling Goodness of Fit Test (AD-Test) is a measure of how well your data fits a specified distribution. It’s commonly used as a test for normality.

## Performing the AD-Test by Hand

The hypotheses for the AD-test are:
H0: The data comes from a specified distribution.
H1: The data does not come from a specified distribution.

The formula is:

Where:
n = the sample size,
F(x) = CDF for the specified distribution,
i = the ith sample, calculated when the data is sorted in ascending order.

As you can probably see, the test statistic is cumbersome to calculate by hand. The general steps are:
Step 1: Calculate the AD Statistic for each distribution, using the formula above.
Step 2: Find the statistic’s p-value (probability value). The formula for the p-value depends on the value for the AD statistic from Step 1. The following formulas are taken from Agostino and Stephen’s Goodness of Fit Techniques.

Small p-values (less than your chosen alpha level) means that you can reject the null hypothesis. In other words, the data does not come from the named distribution.

If you are comparing several distributions, choose the one that gives the largest p-value; this is the closest match to your data.

## Using Technology

The steps are basically the same, except that software will do the legwork for you and calculate the AD statistic and the p-value. All you have to do is Step 2 above: compare your AD-test p-values to your alpha levels.

------------------------------------------------------------------------------

Need help with a homework or test question? With Chegg Study, you can get step-by-step solutions to your questions from an expert in the field. If you'd rather get 1:1 study help, Chegg Tutors offers 30 minutes of free tutoring to new users, so you can try them out before committing to a subscription.

If you prefer an online interactive environment to learn R and statistics, this free R Tutorial by Datacamp is a great way to get started. If you're are somewhat comfortable with R and are interested in going deeper into Statistics, try this Statistics with R track.