Python Package to calculate Cliff's delta
Project description
This is code to calculate the Cliff's Delta effect size metric, which strangely is not in NumPy/SciPy.stats.
@Timm had this as a gist, and @mtorchiano has R code with tests. I have merged them. Well, Marco's code does a lot more. I merged his tests.
cliffs_delta
The Cliff's Delta statistic is a non-parametric effect size measure that quantifies the amount of difference between two groups of observations beyond p-values interpretation. This measure can be understood as a useful complementary analysis for the corresponding hypothesis testing.
Installation
This package can either be installed using pip or from a tarball using the standard Python distutils.
If you are installing using pip
, you don’t need to download anything as the latest version will be downloaded for you from PyPI:
pip install cliffs-delta
Example & Usage
Import the method cliffs_delta
from cliffs_delta
from cliffs_delta import cliffs_delta
x1 = [10, 20, 20, 20, 30, 30, 30, 40, 50, 100]
x2 = [10, 20, 30, 40, 40, 50]
d, res = cliffs_delta(x1, x2)
print(d,res)
-0.06666666666666667 negligible
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for cliffs_delta-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ec087e8254861204aab79e222b2e863a79f3d6f35d69e14f8b188fb6c5b048f |
|
MD5 | c8fc07b47e873c0652326168747ceb67 |
|
BLAKE2b-256 | 8c37dca1aec82037fac98ef6e4f027cbc03bf323c19269e813be98ded42a6ffd |