Skip to main content

A Python package for comparing groups and measuring associations using robust statistics.

Project description

Hypothesize

status tests PyPI version PyPI - Downloads license

A Python package for hypothesis testing using robust statistics

Basic Example

A robust measure of association with winsorized correlation

from hypothesize.measuring_associations import wincor
from hypothesize.utilities import create_example_data

# creating an example DataFrame with columns "cell_1" and "cell_2"
df=create_example_data(2)

results=wincor(df.cell_1, df.cell_2)

# returning the correlation, number of observations, p-value, and winsorized covariance
print(results)
{'cor': 0.11, 'nval': 50, 'sig': 0.44, 'wcov': 0.01}

Documentation

:book: Please visit the Hypothesize documentation site. Note that each statistical test in the can be launched directly in Deepnote's hosted notebook environment—complete with sample data (as shown in the example above 👆).

Citing Hypothesize

status

If you use Hypothesize in academic work, please use the following citation:

Campopiano, A., & Wilcox, R. R. (2020). Hypothesize: Robust Statistics for Python. Journal of Open Source Software, 5(50), 2241, https://doi.org/10.21105/joss.02241

BibTex:

@article{Campopiano2020,
  doi = {10.21105/joss.02241},
  url = {https://doi.org/10.21105/joss.02241},
  year = {2020},
  publisher = {The Open Journal},
  volume = {5},
  number = {50},
  pages = {2241},
  author = {Allan Campopiano and Rand R. Wilcox},
  title = {Hypothesize: Robust Statistics for Python},
  journal = {Journal of Open Source Software}
}

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

hypothesize-1.2.3.tar.gz (37.8 kB view details)

Uploaded Source

Built Distribution

hypothesize-1.2.3-py3-none-any.whl (38.6 kB view details)

Uploaded Python 3

File details

Details for the file hypothesize-1.2.3.tar.gz.

File metadata

  • Download URL: hypothesize-1.2.3.tar.gz
  • Upload date:
  • Size: 37.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for hypothesize-1.2.3.tar.gz
Algorithm Hash digest
SHA256 77c7bf8cc12fab226511d24bdcad96882ab5372e21a3d393fb954316f7db9ca1
MD5 8a02caeaf24198c6d09a29c91d1e5f33
BLAKE2b-256 1c8d20912e9db5c888cf533d14bd2c394895cc6448f4a770635179ae6b31344e

See more details on using hashes here.

File details

Details for the file hypothesize-1.2.3-py3-none-any.whl.

File metadata

  • Download URL: hypothesize-1.2.3-py3-none-any.whl
  • Upload date:
  • Size: 38.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for hypothesize-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 159e6c90e5276e05ea7f073784ef403c67031ebd540b2c8afd7371a61b007950
MD5 4d6bed332f657708ee6fac475d05e51d
BLAKE2b-256 2a68efee8e3014d053600ba7b504ace07c4d659aa1b90f0f415ee2ae41259d5b

See more details on using hashes here.

Supported by

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