Skip to content

ENH: Port null-distribution special functions from scipy.stats to xsf #98

@fbourgey

Description

@fbourgey

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions