Skip to main content

A Python package for calculating eta n, the rank-transform area coverage coefficient of correlation.

Project description

etacorpy

PyPI Docs Tests Changelog License

A Python package for calculating eta_n, the rank-transform area coverage coefficient of correlation. This is the official repository of the paper (link TBD):

"A coefficient of correlation for continuous random variables based on area coverage"

Installation

Install this library using pip:

pip install etacorpy

Usage

import numpy as np
from etacorpy import calc_eta_n
x = np.random.rand(100)
y = np.random.rand(100)
print(f'x and y are independent, eta_n = {calc_eta_n(x,y)}')
y = np.square(x)
print(f'x and y are dependent, eta_n = {calc_eta_n(x,y)}')

Development

To contribute to this library, first checkout the code. Then create a new virtual environment:

cd etacorpy
python -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

python -m pip install -e '.[test]'

To run the tests:

python -m pytest

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

etacorpy-0.1.4.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

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

etacorpy-0.1.4-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file etacorpy-0.1.4.tar.gz.

File metadata

  • Download URL: etacorpy-0.1.4.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for etacorpy-0.1.4.tar.gz
Algorithm Hash digest
SHA256 a0421799aa7eebbf258ac39220e50230cfdda3f36fae0b7ec2bda86ec0585a87
MD5 ca6377ac4d22509b162a9470cf86e789
BLAKE2b-256 adc120e3ae9a5d1395ba35151f737127eac721062ce1f8e45628be14c099b35f

See more details on using hashes here.

Provenance

The following attestation bundles were made for etacorpy-0.1.4.tar.gz:

Publisher: publish.yml on itaipelles/etacorpy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file etacorpy-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: etacorpy-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for etacorpy-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1be02ea3c7dce2d4d5d72c66eb253f69dc9e1b90d2b00cbb88efd514c3a614d2
MD5 887b7caa11d23b4729ece9b00fce213b
BLAKE2b-256 bcec4ebbc83acaab933905ad7142d63ed500038b53c5be6c4dc112758fd09776

See more details on using hashes here.

Provenance

The following attestation bundles were made for etacorpy-0.1.4-py3-none-any.whl:

Publisher: publish.yml on itaipelles/etacorpy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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