Skip to main content

New correlation function on the block!

Project description

# Xi Correlation by Chatterjee, modified

It detects non-linear correlations including parabolas and waves. The longer the series, the better the results.

Here’s the paper I used. https://arxiv.org/pdf/1909.10140.pdf Here’s the github gist: https://gist.github.com/mandrewstuart/e1c584a36ca5394cc934542731b4d8c2

I modified the unordered equation because the boundaries weren’t working I expected. They are now ‘unordered’: 1 + (len(Y)*numerator)/(4*denominator)

Usage:

>> import modified_xicor as mx

>> x = [1, 2, 3, 4, 5]

>> y = [1, 3, 5, 7, 9]

>> mx.xicor(x, y)

{‘ordered’: float, ‘unordered’: float, ‘len’: int}

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

modified-xicor-0.3.0.tar.gz (2.0 kB view hashes)

Uploaded Source

Built Distribution

modified_xicor-0.3.0-py3-none-any.whl (2.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page