Skip to content

Repository files navigation

StatsUtils.py Unlicensed work

wheel (GitLab) wheel (GHA via nightly.link) GitLab Build Status GitLab Coverage GitHub Actions Libraries.io Status Code style: antiflash

We have moved to https://codeberg.org/KOLANICH-libs/StatsUtils.py, grab new versions there.

Under the disguise of "better security" Micro$oft-owned GitHub has discriminated users of 1FA passwords while having commercial interest in success and wide adoption of FIDO 1FA specifications and Windows Hello implementation which it promotes as a replacement for passwords. It will result in dire consequencies and is competely inacceptable, read why.

If you don't want to participate in harming yourself, it is recommended to follow the lead and migrate somewhere away of GitHub and Micro$oft. Here is the list of alternatives and rationales to do it. If they delete the discussion, there are certain well-known places where you can get a copy of it. Read why you should also leave GitHub.


These is a temporary package with some routines that I think must be a part of scipy.stats and numpy, but curently they are not. The end goal is to upsteam as much as possible of this package into scipy and get rid of it.

It monkey-patches scipy.stats.norm and scipy.stats.truncnorm, adds rv_empirical and adds some useful methods for adaptive meshes for histograms.

The method uses modulus of PDF derivative to compute a mesh and can be used for any function in fact.

  1. The function is differentiated.
  2. The modulus of derivative is computed.
  3. It is integrated and normalized to become a CDF and the CDF is transformed into PPF via interpolation.
  4. A mesh is computed by transforming a uniform mesh into non-uniform via PPF.

Read the tutorialNBViewer.

About

Some tools and distributions for `scipy.stats`, including monkey-patches

Topics

Resources

Code of conduct

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages