phik
Phik is an open-source Python library for measuring statistical association between categorical and discrete variables. It centers on the phik statistic, a generalization of classical measures such as the chi-squared test, Cramér’s V, and mutual information. Phik is designed to capture a wide range of dependencies, including nonlinear relationships that traditional correlation measures may miss.
The library provides a convenient way to compute pairwise associations across multiple variables. It can generate
Usage is straightforward: phik is installed from the Python Package Index and then imported in Python code.
Phik is commonly used in data science and analytics workflows to assess relationships in categorical data,