October 2019
Beginner to intermediate
674 pages
16h 43m
English
In this section, we will learn how to implement a chi-square test from scratch in Python and run it on an example dataset.
A chi-square test is conducted to determine the statistical significance of a causal relationship of two categorical variables with each other.
For example, in the following dataset, a chi-square test can be used to determine whether color preferences affect a personality type (introvert and extrovert) or not, and vice versa:

The two hypotheses for chi-square tests are as follows:
Read now
Unlock full access