-
Notifications
You must be signed in to change notification settings - Fork 10
Cramer’s V
Maurice HT Ling edited this page Aug 14, 2021
·
1 revision
Purpose: Measures the degree of association between 2 categorical variables (defining the rows and columns).
Code:
>>> from scipy import stats
>>> table = [[77, 90, 404, 200],
[16, 50, 122, 205],
[20, 43, 150, 320]]
>>> result = stats.contingency.association(table, method="cramer")
>>> print("V = %.3f" % result)
V = 0.232
References:
- Cramér H. 1946. Mathematical Methods of Statistics. Princeton: Princeton University Press. ISBN 0-691-08004-6.
Copyright (c) 2008-2024, Maurice HT Ling
Refereed Publications and Technical Reports
Abstracts and Other Un-Refereed Works
Autobiographic Verses (Poems that I wrote) and My Sayings