W3cubDocs

/Statsmodels

statsmodels.stats.contingency_tables.Table.test_nominal_association

Table.test_nominal_association() [source]

Assess independence for nominal factors.

Assessment of independence between rows and columns using chi^2 testing. The rows and columns are treated as nominal (unordered) categorical variables.

Returns:
  • A bunch containing the following attributes
  • statistic (float) – The chi^2 test statistic.
  • df (integer) – The degrees of freedom of the reference distribution
  • pvalue (float) – The p-value for the test.

© 2009–2012 Statsmodels Developers
© 2006–2008 Scipy Developers
© 2006 Jonathan E. Taylor
Licensed under the 3-clause BSD License.
http://www.statsmodels.org/stable/generated/statsmodels.stats.contingency_tables.Table.test_nominal_association.html