HeberTU / association_metrics

Python module for measure the degree of association between variables
12 stars 2 forks source link

[Feature Request] Cramer V bias correction #1

Open eduardokapp opened 2 years ago

eduardokapp commented 2 years ago

According to the wikipedia article on Cramer's V:

Cramér's V can be a heavily biased estimator of its population counterpart and will tend to overestimate the strength of association. A bias correction, using the above notation, is given by:

image

Is it possible to have a parameter in your CramerV() class that makes the method use this correction? Did you give that any thought when implementing the package? As in: is that correction even necessary?

Thank you.

HeberTU commented 2 years ago

Hi @eduardokapp,

Thanks for your interest in this repo.

Yes, that would be possible; I'll l implement it and create a new release soon.