Skip to main content

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}
}

Release files for hypothesize 1.2.3

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

Source distribution (sdist)

Source distribution for hypothesize 1.2.3
File Size Uploaded
hypothesize-1.2.3.tar.gz 37.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hypothesize 1.2.3
File Interpreter ABI Platform
hypothesize-1.2.3-py3-none-any.whl Python 3 none any Details

Total release size: 76.5 kB

Release files / hypothesize-1.2.3.tar.gz

Download URL hypothesize-1.2.3.tar.gz
Size 37.8 kB
Tags Source
SHA-256 checksum
How to use checksums
77c7bf8cc12fab226511d24bdcad96882ab5372e21a3d393fb954316f7db9ca1
BLAKE2b-256 checksum
How to use checksums
1c8d20912e9db5c888cf533d14bd2c394895cc6448f4a770635179ae6b31344e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release files / hypothesize-1.2.3-py3-none-any.whl

Download URL hypothesize-1.2.3-py3-none-any.whl
Size 38.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
159e6c90e5276e05ea7f073784ef403c67031ebd540b2c8afd7371a61b007950
BLAKE2b-256 checksum
How to use checksums
2a68efee8e3014d053600ba7b504ace07c4d659aa1b90f0f415ee2ae41259d5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release history Release notifications | RSS feed

This release

1.2.3 This release

2 release files

1.2.1

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

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