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.4.tar.gz (168.4 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.4-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: means_testing-0.0.4.tar.gz
  • Upload date:
  • Size: 168.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.8.9

File hashes

Hashes for means_testing-0.0.4.tar.gz
Algorithm Hash digest
SHA256 33c2eb23831a5115ac272f60cea0d26f8bcb9daa6b14c219a4ff67de05d8912c
MD5 aa50032fca6b812ddb173f7a6581d790
BLAKE2b-256 047b655cc0a543d526f62c2081a37e4445b063958ba2704acd7abe4b78f926f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for means_testing-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 cacc3ee7deea30941add49645fc9ff4ce7bab3190086556fd088140bf98d0860
MD5 66138d0997f9f8f065dd5453c8d56ade
BLAKE2b-256 00b64b47a142a2727319fe395246e7e440f776ab7c0ee8ff69f4b3173aafc2ad

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