Skip to main content

dcor: distance correlation and related E-statistics in Python.

Project description

dcor
====

|tests| |docs| |coverage| |pypi| |conda| |zenodo|

dcor: distance correlation and related E-statistics in Python.

E-statistics are functions of distances between statistical observations
in metric spaces.

Distance covariance and distance correlation are
dependency measures between random vectors introduced in [SRB07]_ with
a simple E-statistic estimator.

This package offers functions for calculating several E-statistics
such as:

- Estimator of the energy distance [SR13]_.
- Biased and unbiased estimators of distance covariance and
distance correlation [SRB07]_.
- Estimators of the partial distance covariance and partial
distance covariance [SR14]_.

It also provides tests based on these E-statistics:

- Test of homogeneity based on the energy distance.
- Test of independence based on distance covariance.

Installation
============

dcor is on PyPi and can be installed using :code:`pip`:

.. code::

pip install dcor

It is also available for :code:`conda` using the :code:`conda-forge` channel:

.. code::

conda install -c conda-forge dcor

Previous versions of the package were in the :code:`vnmabus` channel. This
channel will not be updated with new releases, and users are recommended to
use the :code:`conda-forge` channel.

Requirements
------------

dcor is available in Python 3.5 or above and in Python 2.7, in all operating systems.

Documentation
=============
The documentation can be found in https://dcor.readthedocs.io/en/latest/?badge=latest

References
==========

.. [SR13] Gábor J. Székely and Maria L. Rizzo. Energy statistics: a class of
statistics based on distances. Journal of Statistical Planning and
Inference, 143(8):1249 – 1272, 2013.
URL:
http://www.sciencedirect.com/science/article/pii/S0378375813000633,
doi:10.1016/j.jspi.2013.03.018.
.. [SR14] Gábor J. Székely and Maria L. Rizzo. Partial distance correlation
with methods for dissimilarities. The Annals of Statistics,
42(6):2382–2412, 12 2014.
doi:10.1214/14-AOS1255.
.. [SRB07] Gábor J. Székely, Maria L. Rizzo, and Nail K. Bakirov. Measuring and
testing dependence by correlation of distances. The Annals of
Statistics, 35(6):2769–2794, 12 2007.
doi:10.1214/009053607000000505.

.. |tests| image:: https://github.com/vnmabus/dcor/actions/workflows/main.yml/badge.svg
:alt: Tests
:scale: 100%
:target: https://github.com/vnmabus/dcor/actions/workflows/main.yml

.. |docs| image:: https://readthedocs.org/projects/dcor/badge/?version=latest
:alt: Documentation Status
:scale: 100%
:target: https://dcor.readthedocs.io/en/latest/?badge=latest

.. |coverage| image:: http://codecov.io/github/vnmabus/dcor/coverage.svg?branch=develop
:alt: Coverage Status
:scale: 100%
:target: https://codecov.io/gh/vnmabus/dcor/branch/develop

.. |pypi| image:: https://badge.fury.io/py/dcor.svg
:alt: Pypi version
:scale: 100%
:target: https://pypi.python.org/pypi/dcor/

.. |conda| image:: https://anaconda.org/conda-forge/dcor/badges/installer/conda.svg
:alt: Available in Conda
:scale: 100%
:target: https://conda.anaconda.org/conda-forge

.. |zenodo| image:: https://zenodo.org/badge/DOI/10.5281/zenodo.3468124.svg
:alt: Zenodo DOI
:scale: 100%
:target: https://doi.org/10.5281/zenodo.3468124

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

dcor-0.5.7.tar.gz (35.7 kB view details)

Uploaded Source

Built Distribution

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

dcor-0.5.7-py3-none-any.whl (42.0 kB view details)

Uploaded Python 3

File details

Details for the file dcor-0.5.7.tar.gz.

File metadata

  • Download URL: dcor-0.5.7.tar.gz
  • Upload date:
  • Size: 35.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for dcor-0.5.7.tar.gz
Algorithm Hash digest
SHA256 96e436d481fa05a0ef4434424263d1506b7074664ec9eef9861f85f0f889e11e
MD5 e272390871ae01f33670709140d3341c
BLAKE2b-256 d1c8662059c6b75ef8d94247fab5c729f32fb56eb239a74793fbd77f1abe1409

See more details on using hashes here.

File details

Details for the file dcor-0.5.7-py3-none-any.whl.

File metadata

  • Download URL: dcor-0.5.7-py3-none-any.whl
  • Upload date:
  • Size: 42.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for dcor-0.5.7-py3-none-any.whl
Algorithm Hash digest
SHA256 6a459da3c6f5441ccc1c460376d8c96aade8e48d46b395aaf35337768b16b7aa
MD5 2d6f16e56f7ba11c5e35f800c40f6c8e
BLAKE2b-256 c992458697bf3a46fb1c593d3f1cdb2e5d3b5b0da68e244c856a71452ea878df

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