Cramér von Mises test
The Cramér von Mises test is a statistical test that can be used to examine whether the frequency distribution of the data in a sample deviates from a given hypothetical probability distribution (one-sample case), or whether the frequency distributions of two different samples deviate from one another (Two-sample case). When comparing the distribution of a sample with the normal distribution , the procedure acts as a normality test . The test is named after Harald Cramér and Richard von Mises , who developed and published it between 1928 and 1930. The generalization for the two-sample case was described by Theodore Wilbur Anderson in 1962.
Test description
To compare the frequency distribution of a sample with a given hypothetical probability distribution, the test variable is calculated from the ascending sorted sample values and the distribution function of the given probability distribution according to the formula
- .
The p-value results from the comparison of the test variable with corresponding table values . The null hypothesis of the test in the one-sample case is the assumption that the distribution of the sample data does not differ from the given probability distribution. A p-value smaller than a predefined level of significance (for example 0.05) is thus to be interpreted as a statistically significant deviation of the distribution of the sample values from the predefined probability distribution.
To compare the frequency distributions of two different samples, the test size is calculated according to the formulas
With
- .
The values in the first and the values in the second sample as well as the ranks of the values of the first sample and the ranks of the values of the second sample are sorted in ascending order in a common ranking of both samples.
The p-value is obtained in a similar way to the one-sample case by comparing the test variable with corresponding tables. The null hypothesis of the Cramér von Mises test in the two-sample case is the assumption that the frequency distributions of the two samples do not differ. A p-value smaller than a given significance level (for example 0.05) therefore means a statistically significant difference between the distributions of the values of the two samples.
Alternative procedures
The Kolmogorov-Smirnov test provides both for the one-sample case and for the two-sample case, an alternative to the Cramér-von Mises criterion is, the latter but-sample case Two particularly for the more selective applies . Another alternative to the Cramér von Mises test for the one-sample case is the Anderson-Darling test . For the special application as a normality test , the Shapiro-Wilk test , the Jarque-Bera test and the Lilliefors test can also be used as alternative methods.
literature
- Theodore Wilbur Anderson: On the Distribution of the Two-Sample Cramer-von Mises Criterion. In: The Annals of Mathematical Statistics. 33 (3 )/1962. Institute of Mathematical Statistics, ISSN 0003-4851 , pp. 1148-1159
- Cramér-von-Mises test. In: Zakkula Govindarajulu: Nonparametric Inference. World Scientific, Hackensack NJ 2007, ISBN 9-81-270034-X , pp. 187-189