Cramér-von Mises's test is an empirical distribution function omnibus test for the composite hypothesis of normality. It uses the summed squared differences between observed and expected cumulative proportions as the test statistic. For the one-sample test the procedure is as follows:
- Arrange the data in rank order.
- Estimate the mean () and standard deviation (sY) of the data (variable Y).
- Standardize each of the values of Y by subtracting the mean and dividing by the standard deviation.
(N.B. it is only necessary to do this if you only have access to tables of the standard normal distribution.)
- Calculate the test statistic T as follows:
Algebraically speaking -
||2i − 1
- T is Cramér-von Mises's statistic,
- n is the number of observations
- F is the specified normal cumulative distribution function. If values have been standardized, it is the standard normal.
If T is larger than the tabulated value, then the null hypothesis that the data conform to a normal distribution is rejected .