xicor
XI Correlation Coefficient in Postgres
Repository
Florents-Tselai/pgxicor
https://github.com/Florents-Tselai/pgxicor
Source
pgxicor-0.1.1.tar.gz
pgxicor-0.1.1.tar.gz
Overview
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 4670 | xicor | No | Yes | No | Yes | Yes | Yes | - |
| Related | weighted_statistics pg_math vasco fbsql |
|---|
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PIGSTY | 0.1.1 | 1817161514 | pgxicor | - |
| RPM | PIGSTY | 0.1.1 | 1817161514 | pgxicor_$v | - |
| DEB | PIGSTY | 0.1.1 | 1817161514 | postgresql-$v-pgxicor | - |
Build
You can build the RPM / DEB packages for pgxicor using pig build:
Install
You can install pgxicor directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
Install the extension using pig or apt/yum/dnf:
Install
pig
dnf
apt
Create Extension:
Usage
Sources: README, release 0.1.1
xicor exposes the XI (Chatterjee’s xi) correlation coefficient as a PostgreSQL aggregate. It is meant for detecting functional dependence, including non-linear relationships that Pearson’s corr() can miss.
Main Aggregate
The upstream example contrasts it with corr() on a parabola-shaped dataset, where corr() is near zero while xicor() remains high.
Example
Reproducibility Controls
For tied data, upstream recommends enabling deterministic tie handling:
Caveats
xicor()is an aggregate over two numeric inputs, not a general-purpose statistical framework.- Tie handling can change results unless you enable the documented GUCs for reproducible behavior.
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)