Skip to main content

A simple library to compare the means of two or more independent samples and check for statistical differences.

Project description

Means-Testing

A simple library to compare the means of two or more independent samples and check for statistical differences.

Installation

pip install means-testing

Basic usage

from means_testing import MeansTester

# Initialize a MeansTester, that takes in samples and tests for statistical differences
StatToolbox = MeansTester(*samples)

# Check if means are significantly different
StatToolbox.test_means()

After carrying out the statistical test, one can determine if the samples passed are statistically different or not via the property SignificantDifference as shown below.

StatToolbox.SignificantDifference
> True (if samples are statistically different) or
> False (if samples are NOT statistically different)

For more examples check out the examples.

Citation

The functions and statistical tests here are impelemented based on the book by Riffenburgh, Statistics in Medicine:

Riffenburgh R H. Statistics in Medicine. Elsevier/Academic Press, Amsterdam, Netherlands; 2012

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

means_testing-0.0.6.tar.gz (168.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

means_testing-0.0.6-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file means_testing-0.0.6.tar.gz.

File metadata

  • Download URL: means_testing-0.0.6.tar.gz
  • Upload date:
  • Size: 168.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.11 {"installer":{"name":"uv","version":"0.11.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for means_testing-0.0.6.tar.gz
Algorithm Hash digest
SHA256 26d63ddbbe98e9b4ce698acf746096a9fe63492130dfc339924a5a1b49fb4a66
MD5 3634ad58224620edf181b33b884140cf
BLAKE2b-256 8a16d3929755d892159bf5eb5f516d43938fb3b7f812ac181732e9dc271f7086

See more details on using hashes here.

File details

Details for the file means_testing-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: means_testing-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.11 {"installer":{"name":"uv","version":"0.11.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for means_testing-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 9175682d5d1c34d135cb0a8ce54bb78c716ef39c51c82e20703e35b4af761534
MD5 f5cb3863d4e4b30c2995d5850fc1d5f1
BLAKE2b-256 c0af3d523a5fbb6141f01788c8bd1970fbaa246345fb046d0c1161274b931b9a

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