Lably
Skip to content

Anderson–Darling test

Statistical test

  • 5 min read
  • 3 chapters

Related on Lably

Through Statistical hypothesis test, Probability distribution and Normal distribution

In addition to its use as a test of fit for distributions, it can be used in parameter estimation as the basis for a form of minimum distance estimation procedure.

The test is named after Theodore Wilbur Anderson (1918–2016) and Donald A. Darling (1915–2014), who invented it in 1952.

The single-sample test

The Anderson–Darling and Cramér–von Mises statistics belong to the class of quadratic EDF statistics (tests based on the empirical distribution function). If the hypothesized distribution is F, and empirical (sample) cumulative distribution function is Fn, then the quadratic EDF statistics measure the distance between F and Fn by n∫−∞∞(Fn(x)−F(x))2w(x)dF(x), where n is the number of elements in the sample, and w(x) is a weighting function. When the weighting function is w(x)=1, the statistic is the Cramér–von Mises statistic. The Anderson–Darling (1954) test is based on the distance A2=n∫−∞∞(Fn(x)−F(x))2F(x)(1−F(x))dF(x), which is obtained when the weight function is w(x)=[F(x)(1−F(x))]−1. Thus, compared with the Cramér–von Mises distance, the Anderson–Darling distance places more weight on observations in the tails of the distribution.

Basic test statistic

The Anderson–Darling test assesses whether a sample comes from a specified distribution. It makes use of the fact that, when given a hypothesized underlying distribution and assuming the data does arise from this distribution, the cumulative distribution function (CDF) of the data can be transformed to what should follow a uniform distribution. The data can be then tested for uniformity with a distance test (Shapiro, 1980). The formula for the test statistic A to assess if data {Y1<⋯<Yn} (note that the data must be put in order) comes from a CDF F is

A2=−n−S,

where

S=∑i=1n2i−1n[ln⁡(F(Yi))+ln⁡(1−F(Yn+1−i))].

The test statistic can then be compared against the critical values of the theoretical distribution. In this case, no parameters are estimated in relation to the cumulative distribution function F.

Sign in to keep reading

2 more chapters are free with a Lably account.

More in Topics in mathematics