跳转到主要内容

xicorrelation

项目描述

GitHub Actions status for master branch https://codecov.io/gh/jettify/xicorrelation/branch/master/graph/badge.svg https://img.shields.io/pypi/pyversions/xicorrelation.svg https://img.shields.io/pypi/v/xicorrelation.svg Documentation Status

xicorrelation包实现了在https://arxiv.org/pdf/1909.10140.pdf中提出的xi相关公式。

它是基于论文中提到的R代码:https://statweb.stanford.edu/~souravc/xi.R以及R包https://github.com/cran/XICOR

https://raw.githubusercontent.com/jettify/xicorrelation/master/docs/anscombe.png

简单示例

from xicorrelation import xicorr

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]

# API similar to spearmanr or kendalltau from scipy
xi, pvalue = xicorr(x, y)
print("xi", xi)
print("pvalue", pvalue)

安装

安装过程很简单,只需

$ pip install xicorrelation

更改

0.3.0

  • 重构API以类似于scipy。

0.2.1

  • 首次发布。

项目详情


下载文件

下载适合您的平台的文件。如果您不确定选择哪个,请了解有关安装包的更多信息。

源分发

xicorrelation-0.3.0.tar.gz (58.8 kB 查看哈希值)

上传于 源代码

构建分发

xicorrelation-0.3.0-py3-none-any.whl (8.6 kB 查看哈希)

上传于 Python 3

由以下支持

AWSAWS云计算和安全赞助商DatadogDatadog监控FastlyFastlyCDNGoogleGoogle下载分析MicrosoftMicrosoftPSF赞助商PingdomPingdom监控SentrySentry错误记录StatusPageStatusPage状态页面