Skip to main content

np-stats

np-stats is an educational non-parametric statistics lab toolkit. It wraps common SciPy tests and prints both numeric results and plain-English interpretations.

Install:

pip install np-stats

Import:

import np_stats as nps

Example:

result = nps.mann_whitney_test(
    [23, 45, 12, 67, 34, 56, 22, 48],
    [34, 56, 78, 45, 89, 62, 41, 57],
)

Every test returns a dictionary and prints the result by default. Use print_result=False to suppress printing.

If you want the function to ask for required parameters interactively, call it with ask=True and omit the data arguments:

nps.binomial_test(ask=True)

Included tests:

  • Binomial test
  • One-sample Kolmogorov-Smirnov test
  • Chi-square goodness-of-fit
  • McNemar test
  • Wilcoxon signed-rank test
  • Sign test
  • Paired permutation test
  • Fisher exact test
  • Chi-square test for independent samples
  • Median test for two or k samples
  • Mann-Whitney U test
  • Two-sample Kolmogorov-Smirnov test
  • Siegel-Tukey test
  • Two-independent-samples permutation test
  • Cochran Q test
  • Friedman test
  • Page trend test
  • Chi-square test for k independent samples
  • Kruskal-Wallis test
  • Jonckheere-Terpstra trend test

Metadata

Release files for np-stats 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for np-stats 0.1.0
File Size Uploaded Provenance Actions
np_stats-0.1.0.tar.gz 6.6 kB Without provenance Details for np_stats-0.1.0.tar.gz

Release files / np_stats-0.1.0.tar.gz

Download URL np_stats-0.1.0.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
4a1aff89e9936bc74fddd67a769ac68d51b749b9ce274ab5985df5c29c096a9f
BLAKE2b-256 checksum
How to use checksums
93c551fcb96bb68bb53b9a91f7b1eecb2ffc84dcd0c991635e53003053a210f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.0rc2

Security for np-stats 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page