Recall & Review
beginner
What is the Chi-squared test used for?
The Chi-squared test checks if there is a relationship between two categorical variables by comparing observed data with expected data if there was no relationship.
Click to reveal answer
beginner
What are the main inputs needed to perform a Chi-squared test?
You need a contingency table showing counts of observations for combinations of categories from two variables.
Click to reveal answer
intermediate
What does a low p-value in a Chi-squared test indicate?
A low p-value means the observed data is unlikely if the variables were independent, so we may conclude there is an association between the variables.
Click to reveal answer
beginner
What is the null hypothesis in a Chi-squared test?
The null hypothesis says there is no association between the two categorical variables; they are independent.
Click to reveal answer
intermediate
How do you calculate the expected counts in a Chi-squared test?
Expected count for each cell = (row total × column total) ÷ grand total.
Click to reveal answer
What type of data is required for a Chi-squared test?
✗ Incorrect
The Chi-squared test is designed for categorical data to test relationships between categories.
If the p-value from a Chi-squared test is 0.03, what does this mean at a 0.05 significance level?
✗ Incorrect
A p-value less than 0.05 means we reject the null hypothesis and conclude there is an association.
Which Python library is commonly used to perform a Chi-squared test?
✗ Incorrect
The scipy.stats library provides the chi2_contingency function for Chi-squared tests.
What does the Chi-squared statistic measure?
✗ Incorrect
The Chi-squared statistic sums the squared differences between observed and expected counts, scaled by expected counts.
What is a contingency table?
✗ Incorrect
A contingency table organizes counts of observations by categories of two variables.
Explain the steps to perform a Chi-squared test using Python on a dataset with two categorical variables.
Think about how to prepare data and what the test output means.
You got /4 concepts.
Describe what it means if the Chi-squared test shows no significant association between two variables.
Focus on the meaning of independence in this context.
You got /4 concepts.