A new correlation coefficient between categorical, ordinal and interval variables with Pearson characteristics

M. Baak, R. Koopman, H. Snoek, S. Klous
11/28/2018
stat.ME

Official code: KaveIO/PhiK (174 stars, Python, last commit 2026-08-10).

Abstract

A prescription is presented for a new and practical correlation coefficient, $φ_K$, based on several refinements to Pearson's hypothesis test of independence of two variables. The combined features of $φ_K$ form an advantage over existing coefficients.

Show full abstract

First, it works consistently between categorical, ordinal and interval variables. Second, it captures non-linear dependency. Third, it reverts to the Pearson correlation coefficient in case of a bi-variate normal input distribution. These are useful features when studying the correlation between variables with mixed types. Particular emphasis is paid to the proper evaluation of statistical significance of correlations and to the interpretation of variable relationships in a contingency table, in particular in case of low statistics samples and significant dependencies. Three practical applications are discussed. The presented algorithms are easy to use and available through a public Python library.

View on arXivView PDF

Code Implementations(1)

KaveIO/PhiKOfficial100%

Phi_K correlation analyzer library

17435Python, C++Nov 20, 20183 months agoNOASSERTION

Similar Papers

Cite this paper

@article{baak2018correlation,
  title  = {A new correlation coefficient between categorical, ordinal and interval variables with Pearson characteristics},
  author = {M. Baak and R. Koopman and H. Snoek and S. Klous},
  year   = {2018},
  eprint = {1811.11440},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1811.11440}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1811.11440.svg)](https://codeofpaper.com/paper/1811.11440)

Discussion