Following @mdhaber's comment and @steppi's suggestion.
Motivation
Several null distributions of test statistics are currently implemented in scipy.stats, even though they are essentially special functions. The issue tracks and coordinates porting these functions to xsf.
Moving these functions to xsf would:
- make them more reusable by other libraries
- leverage Special’s infrastructure (delegation,
lazy_apply, etc.)
- enable efficient compiled (C/C++) implementations
- improve performance for repeated CDF/SF evaluations at many statistic values for the same sample size, where Python-level caching is often insufficient
Proposed starting point
This would serve as a pilot for additional ports.
Other asymptotic or exact null distributions that could follow
Sample statistics:
These are really tough (maybe impossible) to express efficiently in terms of the array API.
Following @mdhaber's comment and @steppi's suggestion.
Motivation
Several null distributions of test statistics are currently implemented in
scipy.stats, even though they are essentially special functions. The issue tracks and coordinates porting these functions toxsf.Moving these functions to
xsfwould:lazy_apply, etc.)Proposed starting point
_cdf_cvm_inf: asymptotic (infinite-sample-size) null distribution CDF of the one-sample Cramér–von Mises statisticThis would serve as a pilot for additional ports.
Other asymptotic or exact null distributions that could follow
poisson_binomdistribution #117_quato)Sample statistics:
These are really tough (maybe impossible) to express efficiently in terms of the array API.