Skip to main content

Educational non-parametric statistics lab toolkit with printed interpretations

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

np_stats-0.1.0.tar.gz (6.6 kB view details)

Uploaded Source

File details

Details for the file np_stats-0.1.0.tar.gz.

File metadata

  • Download URL: np_stats-0.1.0.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0rc2

File hashes

Hashes for np_stats-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4a1aff89e9936bc74fddd67a769ac68d51b749b9ce274ab5985df5c29c096a9f
MD5 133800e053c2e305faa6b05a1c3ca2f3
BLAKE2b-256 93c551fcb96bb68bb53b9a91f7b1eecb2ffc84dcd0c991635e53003053a210f8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page