Research Methods II
Online BA · Sem 3
0% complete
0/8 lessons
Lesson 3 of 8Sociology
Correlation and Chi-Square Test Explained
Research Methods II
About the video
Chi Square Test | Test for Independence | Goodness of Fit Test | Statistics Tutorial
Tech Classes
Study notes
The chi-square test is used for categorical data. The test for independence checks whether two categorical variables are associated, using a contingency table. The goodness-of-fit test checks whether a single categorical variable follows an expected distribution.
Purpose
- Earlier tests work on numerical data; chi-square tests compare categorical variables.
- Example question: does gender affect preference for tea or coffee?
- There are two types: the test for independence and the goodness-of-fit test.
Chi-square test for independence
- Data are arranged in a contingency table of joint counts (e.g. gender x job satisfaction, 200 employees).
- Example counts: male satisfied 50, male not satisfied 30, female satisfied 20, female not satisfied 100.
- H0: there is no association between the variables. H1: there is a significant association.
- Expected frequency for each cell = (row total x column total) / grand total, e.g. 80 x 70 / 200 = 28.
- Test statistic: chi-square = sum of (O - E)^2 / E.
- Compare the result with the critical value at the chosen significance level to decide.
Goodness-of-fit test
- Uses a single categorical variable and compares its observed frequencies with expected frequencies.
- H0: the observed frequencies fit the expected distribution. H1: they do not fit.
- Same formula: sum of (O - E)^2 / E. The expected values are given, e.g. observed 30 and 50 vs expected 25 and 40.
Key terms
- Chi-square test
- A test of association or fit for categorical data based on observed and expected counts.
- Contingency table
- A table of counts cross-classified by two categorical variables.
- Expected frequency
- The count expected under H0; in an independence test, row total x column total / grand total.
- Goodness of fit
- A test of whether one categorical variable follows a specified distribution.
Takeaways
- Use chi-square for categorical variables, not numerical ones.
- Chi-square = sum of (O - E)^2 / E.
- In an independence test, E = row total x column total / grand total.
- The independence test uses two variables; goodness of fit uses one.
Contribute
Was this lesson helpful?
We read every rating and fix the weakest lessons first.