| Count | Income level | ||||
| < $30,000 | $30,000-$74,999 | $75,000 and up | Total | ||
| Education level | Post-Grad Degree | 2 | 8 | 46 | 56 |
| College Degree | 39 | 113 | 202 | 354 | |
| Some College | 131 | 138 | 120 | 389 | |
| HS Grad | 175 | 129 | 65 | 369 | |
| No HS Degree | 78 | 32 | 8 | 118 | |
| Total | 425 | 420 | 441 | 1,286 | |
Question 1
Question 2
2) Write down the null and alternative hypotheses for a chi-square test of independence based on the example from the Pew Research Center survey.
Question 3
| Count | Income level | ||||
| < $30,000 | $30,000-$74,999 | $75,000 and up | Total | ||
| Education level | Post-Grad Degree | 2 | 8 | 46 | 56 0.04353588 |
| College Degree | 39 | 113 | 202 | 354 | |
| Some College | 131 | 138 | 120 | 389 | |
| HS Grad | 175 | 129 | 65 | 369 | |
| No HS Degree | 78 | 32 | 8 | 118 | |
| Total | 425 | 420 | 441 | 1,28 | |
Question 4
4) Complete the following table for the expected countsof income level for those withpost-graduate degrees.(Rememberthat you can use subtraction to find the last one!)
| < $30,000 | $30,000-$74,999 | $75,000 and up | Total | |
| Post-Grad Degree | 18.507 | 56 |
Question 5
5) Complete the table in Question 3 by adding the marginal distribution of Education level to the cells in green.If the two variables are independent, the conditional distribution of Education level for every income level should match the proportions in the previous table. For example, of the 425 individuals sampled with an income level under $30,000, about 4.35% of them should have post-graduate degrees, so there is an expected count of 4.354588% of 425=0.04354588×425=18.507 individuals with post-graduate degrees who make under $30,000 a year. Notice that this count matches the expected count we found in Question 4.
Question 6
6) Complete the following table for the expected counts of those with an income level under $30,000.
| < $30,000 | |
| Post-Grad Degree | 18.507 |
| College Degree | |
| Some College | |
| High School Degree | |
| No High School Degree | |
| Total | 425 |
Looking ahead
As we did in the previous in-class activity, we will be using technology to conduct this type of chi-square test. In fact, since the tests are so similar and have the same mechanics, we’ll be using the same data analysis as last time. Feel free to try it out before class! https://dcmathpathways.shinyapps.io/ChiSquaredTest/
- Pew Research Center. (2019). Core trends survey-Mobile technology and home broadband 2019. https://www.pewresearch.org/internet/dataset/core-trends-survey/ ↵