Skip to main content

Chatterjee's Xi, its Applications, and Offshoots

XicorPy is a Python package implementing Chatterjee's Xi, and its various offshoots. You can use the package with raw python objects, NumPy arrays, or Pandas DataFrames.

Please see the Documentation for an introductory tutorial and a full user guide.

Features

The package currently implements:

  1. Chatterjee's Xi from [1]
  2. Modified Xi from [2]
  3. Codependence Coefficient from [3]
  4. Feature Ordering by Conditional Independence (FOCI) for Feature Selection from [3]

Usage

The package is available on PyPI. You can install using pip: pip install xicorpy.

import xicorpy

x = [10, 8, 13, 9, 11, 14, 6, 4, 12, 7, 5]
y = [8.04, 6.95, 7.58, 8.81, 8.33, 9.96, 7.24, 4.26, 10.84, 4.82, 5.68]
xi = xicorpy.compute_xi_correlation(x, y)

xi, p_value = xicorpy.compute_xi_correlation(x, y, get_p_values=True)

Refer to the Docs for more details.

Contributing to XiCorPy

Any help with the package is greatly appreciated! Pull requests and bug reports are greatly welcome!

Citations:

  1. Chatterjee (2020). "A new coefficient of correlation"
  2. Lin and Han (2021). "On boosting the power of Chatterjee's rank correlation"
  3. Azadkia and Chatterjee (2021). "A simple measure of conditional dependence"

Metadata

Release files for xicorpy 0.6

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

Source distribution (sdist)

Source distribution for xicorpy 0.6
File Size Uploaded
xicorpy-0.6.tar.gz 9.2 kB Details

Built distribution (wheel)

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

Total release size: 19.8 kB

Release files / xicorpy-0.6.tar.gz

Download URL xicorpy-0.6.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
1d463260f7e0fee09d735021718144d9988df8855a980925fcc02b91715ba0f0
BLAKE2b-256 checksum
How to use checksums
41bbb58e83395ac3484db99dda2ca95860233bcb8733cb6661c694d17fc125ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.4 Linux/6.5.0-1024-azure

Release files / xicorpy-0.6-py3-none-any.whl

Download URL xicorpy-0.6-py3-none-any.whl
Size 10.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ec16ba9ad0fbef7fbaaa00f0dff58c36f7c5c5ad6f8875d8c59917360877650d
BLAKE2b-256 checksum
How to use checksums
fd4248b407b5a4950ca1eee86888f7522756cd653a6546633a59c960542ea8d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.4 Linux/6.5.0-1024-azure

Release history Release notifications | RSS feed

This release

0.6 This release

2 release files

0.5

2 release files

0.4

2 release files

0.3

2 release files

0.2

2 release files

0.1.2

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