Anderson-Darling test

From Wikipedia, the free encyclopedia

The Anderson-Darling test is one of the most powerful statistics for detecting most departures from normality. It may be used with small sample sizes \left(n \le{25}\right). Very large sample sizes may reject the assumption of normality with only slight imperfections. But, industrial data with sample sizes of 200 and more, have easily passed the Anderson-Darling test.

The Anderson-Darling test assesses whether known data come from a specified distribution. The formula for the test statistic A to assess if data \{Y_1<\dots <Y_N\} (note that the data must be put in order) comes from a distribution with cumulative distribution function F is

A2 = − NS

where

S=\sum_{k=1}^N \frac{2k-1}{N}\left[\ln F(Y_k) + \ln\left(1-F(Y_{N+1-k})\right)\right]

The test statistic can then be compared against the distributions of the test statistic (dependent on which F is used) to determine the P-value.

The Anderson-Darling Test for Normality is a distance or EDF (empirical distribution function) test. It is based upon the concept that when given a hypothesized underlying distribution, the data can be transformed to a uniform distribution. The transformed sample data can be then tested for uniformity with a distance test (Shapiro 1980).

In comparisons of power, Stephens (1974) found A2 to be one of the best EDF statistics for detecting most departures from normality. The only statistic close was the W2 (Shapiro and Wilk) statistic.

Procedure

1) The data is sorted from low to high.

2) The Mean, \bar{X}, and Standard Deviation, s, are calculated.

3) The values are standardized using:

Z_i=\frac{X_i-\bar{X}}{s}


4) Pi is calculated using the significance of Zi; where Pi is the upper tail p-value of Zi.

5) A2 is calculated using:

A^2=-\frac{\left[\sum_{i=1}^n (2i-1)(Ln(P_i)+(Ln(1-P_{n+1-i})\right]}{n}-n

6) A2 * , an approximate adjustment for sample size, is calculated using:

A^{2*}=A^2\left(1+\frac{0.75}{n}+\frac{2.25}{n^2}\right)


Note:

If s = 0 or any Pi = (0 or 1) then A2 cannot be calculated and is undefined.

[edit] See also

[edit] External links