@Reference(authors="F. W. Scholz, and M. A. Stephens", title="K-sample Anderson\u2013Darling tests", booktitle="Journal of the American Statistical Association, 82(399)", url="http://dx.doi.org/10.1080/01621459.1987.10478517") public class StandardizedTwoSampleAndersonDarlingTest extends Object implements GoodnessOfFitTest
unstandardized(double[][])
.
Compared to the Cramer-van Mises test, the Anderson-Darling test puts more
weight on the tail of the distribution. This variant only uses the ranks.
References:
D. A. Darling
The Kolmogorov-Smirnov, Cramer-von Mises tests.
Annals of Mathematical Statistics 28(4)
A. N. Pettitt
A two-sample Anderson-Darling rank statistic
Biometrika 63 (1)
F. W. Scholz, and M. A. Stephens
K-sample Anderson–Darling tests
Journal of the American Statistical Association, 82(399)
Modifier and Type | Field and Description |
---|---|
static Void |
ADDITIONAL_REFERENCE_1
Additional reference -- Darling's note on this equation
|
static Void |
ADDITIONAL_REFERENCE_2
More detailed discussion by Pettitt
|
static StandardizedTwoSampleAndersonDarlingTest |
STATIC
Static instance.
|
Constructor and Description |
---|
StandardizedTwoSampleAndersonDarlingTest() |
Modifier and Type | Method and Description |
---|---|
double |
deviation(double[][] samples)
K-samples version of the Anderson-Darling test.
|
double |
deviation(double[] sample1,
double[] sample2)
Measure the deviation of a full sample from a conditional sample.
|
private int |
totalLength(double[][] samples)
Total length of a set of Samples.
|
double |
unstandardized(double[][] samples)
Compute the non-standardized A2 test statistic for the k-samples test.
|
private double |
unstandardized(double[][] samples,
int N)
Compute the non-standardized A2 test statistic for the k-samples test.
|
double |
unstandardized(double[] sample1,
double[] sample2)
Compute the non-standardized A2 test statistic for the k-samples test.
|
public static final StandardizedTwoSampleAndersonDarlingTest STATIC
@Reference(authors="D. A. Darling", title="The Kolmogorov-Smirnov, Cramer-von Mises tests", booktitle="Annals of mathematical statistics 28(4)", url="http://dx.doi.org/10.1214/aoms/1177706788") public static final Void ADDITIONAL_REFERENCE_1
public StandardizedTwoSampleAndersonDarlingTest()
public double deviation(double[] sample1, double[] sample2)
GoodnessOfFitTest
deviation
in interface GoodnessOfFitTest
sample1
- Full samplesample2
- Conditional samplepublic double deviation(double[][] samples)
samples
- Samplespublic double unstandardized(double[][] samples)
samples
- Samplesprivate double unstandardized(double[][] samples, int N)
samples
- SamplesN
- total lengthpublic double unstandardized(double[] sample1, double[] sample2)
sample1
- First samplesample2
- Second sampleprivate int totalLength(double[][] samples)
samples
- SamplesCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.