liveBook · Manning

Statistical independence test

As explained in Effective Data Analysis

An independence test is a chi-square test that evaluates whether the distributions of two categorical variables are associated.

A statistical independence test is a chi-square test that compares observed and expected frequencies for two categorical variables to assess whether they are associated. section 5.2.3

Product recommendation experiment

For recommender version, country, and feature clicks, SciPy returns a chi-square value of 22.994 and p-value of 0.028 for the click table. Pairwise tests report different results for A–B, A–C, and B–C.

How Effective Data Analysis covers it

How deep it goes
Explains contingency tables, expected frequencies, sample-size sensitivity, heatmaps, and pairwise follow-up tests.
Examples
Uses recommender versions, countries, feature engagement, click counts, expected-frequency tables, and difference heatmaps.
What it assumes
Assumes categorical data and frequency tables while defining observed-versus-expected comparison through examples.
What you can do after
Apply it via SciPy to calculate chi-square values, p-values, and expected frequencies.
How it connects
Connects categorical variables with contingency tables, goodness-of-fit tests, trend tests, and chi-square testing.

Also explained in

Compare how 2 books explain statistical independence test →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Effective Data Analysis. The section links point to the parts of the book it draws on.