You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Source of Anderson-Darling statistic formulas? #2505
statsmodels agrees with R; scipy and kuiper, which only give tabulated critical values, use different critical values, and MATLAB's critical value (at p=0.05) is inconsistent with either.
I had looked at scipy, and kuiper before but didn't realize they didn't have the same critical values, at least in a case like this.
The difference of matlab to statsmodels and R might not mean much, because those p-values are usually targeted for the 0.01 to 0.2 range, and might use only a simplified extrapolation for large p-values.
Activity
josef-pkt commentedon Jul 6, 2015
I agree, without comments I also don't remember.
The main basis for this and similar gof tests where several articles by Stephens
https://en.wikipedia.org/wiki/Anderson%E2%80%93Darling_test
most likely the 1986 chapter, but that is in large parts a summary of earlier articles.
anntzer commentedon Jul 6, 2015
FWIW there are quite a few implementations of Anderson-Darling available, giving different results:
output
statsmodels agrees with R; scipy and kuiper, which only give tabulated critical values, use different critical values, and MATLAB's critical value (at p=0.05) is inconsistent with either.
josef-pkt commentedon Jul 6, 2015
I had looked at scipy, and kuiper before but didn't realize they didn't have the same critical values, at least in a case like this.
The difference of matlab to statsmodels and R might not mean much, because those p-values are usually targeted for the 0.01 to 0.2 range, and might use only a simplified extrapolation for large p-values.