Skip to main content
QUICK REVIEW

[Paper Review] A new correlation coefficient between categorical, ordinal and interval variables with Pearson characteristics

M. Baak, R. F. Koopman|arXiv (Cornell University)|Nov 28, 2018
Advanced Statistical Methods and ModelsMathematics5 references17 citations
TL;DR

This paper introduces $φ_{K}$, a new correlation coefficient that unifies correlation measurement across categorical, ordinal, and interval variables with Pearson-like properties. It leverages a refined $χ^{2}$ test with $G$-test statistics and Monte Carlo simulations to ensure robust significance testing in sparse data, while enabling outlier detection in contingency tables for interpretable dependency analysis. The method is implemented in a public Python library for practical use in mixed-type data analysis.

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. 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.

Motivation & Objective

  • To develop a correlation coefficient that works consistently across categorical, ordinal, and interval variables, filling a gap in existing methods.
  • To provide a statistically sound and interpretable method for assessing variable associations in contingency tables, especially with low-statistics or sparse data.
  • To enable practical detection and significance evaluation of outliers in contingency tables to interpret non-linear and non-monotonic dependencies.
  • To offer a stable, noise-corrected alternative to Cramér's $\phi$ that is insensitive to binning of interval variables.
  • To support real-world applications in insurance, survey analysis, and clustering comparison through a publicly available, easy-to-use Python implementation.

Proposed method

  • The correlation coefficient $\phi_{K}$ is derived from a refined $\chi^{2}$ test of independence, using the $G$-test statistic to improve accuracy in sparse contingency tables.
  • Statistical significance is evaluated via a hybrid approach: Monte Carlo simulations estimate the effective degrees of freedom and fit an empirical $\chi^{2}$ distribution.
  • Outlier frequencies in contingency tables are assessed for significance by comparing observed to expected counts, incorporating statistical uncertainty in expected values.
  • A noise correction is applied to $\phi_{K}$ to reduce spurious correlations due to statistical fluctuations in low-statistics samples.
  • The method extends to multi-way contingency tables and supports the identification of influential cross-terms in regression models via significant deviations from independence.
  • The algorithm is implemented in a public Python library, accessible via PyPI and GitHub, with tutorials and examples for direct application.

Experimental results

Research questions

  • RQ1Can a single correlation coefficient be defined that behaves consistently across categorical, ordinal, and interval variables while preserving Pearson-like interpretability?
  • RQ2How can statistical significance be reliably evaluated in contingency tables when asymptotic $\chi^{2}$ approximations fail due to sparse or low-statistics data?
  • RQ3What is the role of outlier frequencies in a contingency table in revealing non-linear or non-monotonic dependencies between variables?
  • RQ4How can significant deviations from expected frequencies be quantified and interpreted with proper uncertainty propagation?
  • RQ5To what extent can $\phi_{K}$ serve as a stable, noise-corrected alternative to existing coefficients like Cramér’s $\phi$ in mixed-type data analysis?

Key findings

  • $\phi_{K}$ is bounded in $[0,1]$, with $0$ indicating no association and $1$ indicating complete association, mirroring the interpretation of Pearson’s correlation coefficient.
  • The coefficient reverts to the Pearson correlation under bivariate normality, ensuring consistency with established benchmarks.
  • The method provides robust statistical significance evaluation through Monte Carlo simulations that estimate effective degrees of freedom and fit an empirical $\chi^{2}$ distribution.
  • Outlier detection in contingency tables is enhanced by significance testing of individual cell frequencies, accounting for uncertainty in expected values.
  • The approach enables practical model improvement by identifying influential cross-terms in regression models based on significant deviations in contingency tables.
  • The public Python library `phik` enables easy integration into data analysis pipelines for real-world applications in insurance, surveys, and clustering evaluation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.