Skip to main content

cdf_cvm

Function cdf_cvm 

Source
pub fn cdf_cvm(x: f64, n: i32) -> f64
Expand description

CDF of the Cramér-von Mises statistic for a finite sample size n

Corresponds to scipy.stats._hypotests._cdf_cvm, which is used in scipy.stats.cramervonmises and scipy.stats.cramervonmises_2samp

See equation 1.8 in Csörgő, S. and Faraway, J. (1996) for finite samples, 1.2 for the asymptotic CDF.

For finite n, the approximation is less accurate near the support boundaries [1/(12*n), n/3] and for larger x values where the CDF is close to 1. The returned value is clipped to [0, 1].

§See also