Module 2: Hypothesis Testing (chi-square tests)
Module Overview
In Module 1, we focused on hypothesis testing with t-tests, which are used for continuous data. In this module, we'll explore hypothesis testing with chi-square tests, which are used for categorical data.
Chi-square tests allow us to determine whether there is a significant association between categorical variables or whether observed categorical data matches what we would expect under a certain hypothesis. These tests are essential when analyzing survey responses, demographic information, or any data where variables are measured in categories rather than continuous values.
Learning Objectives
- Explain the purpose of a Chi-square test
- Set up a chi-square test for independence on two categorical variables
- Use a chi-square test and the p-value to evaluate null and alternative hypothesis
Guided Project
Open DC_122_Chi2_Tests.ipynb in the GitHub repository below to follow along with the guided project:
Guided Project Video
Module Assignment
Complete the Module 2 assignment to practice chi-square testing techniques you've learned.