Plots cumulative density for AD test and computes confidence interval for AD test stat.
Plots cumulative density for AD test and computes confidence interval for AD test stat.
Anderson-Darling(AD) test can be used to carry out distribution equality test and is similar to Kolmogorov-Smirnov test. AD test statistic is defined as: [REMOVE_ME]A2=n∫−∞∞F(x)[1−F(x)][F^(x)−F(x)]2dF(x)[REMOVEME2]
which is equivalent to [REMOVE_ME]=−n−n1∑i=1n(2i−1)[lnF(Xi)+ln(1−F(Xn+1−i))][REMOVEME2]
Anderson-Darling(AD) test can be used to carry out distribution equality test and is similar to Kolmogorov-Smirnov test. AD test statistic is defined as:
A2=n∫−∞∞F(x)[1−F(x)][F^(x)−F(x)]2dF(x)
which is equivalent to
=−n−n1i=1∑n(2i−1)[lnF(Xi)+ln(1−F(Xn+1−i))]
Examples
# Probability that the VaR model is correct for 3 failures, 100 number# observations and 95% confidence level ADTestStat(1000,100,0.95)
Author(s)
Dinesh Acharya
References
Dowd, K. Measuring Market Risk, Wiley, 2007.
Anderson, T.W. and Darling, D.A. Asymptotic Theory of Certain Goodness of Fit Criteria Based on Stochastic Processes, The Annals of Mathematical Statistics, 23(2), 1952, p. 193-212.
Kvam, P.H. and Vidakovic, B. Nonparametric Statistics with Applications to Science and Engineering, Wiley, 2007.