Chi-Square Test of Independence - College Statistics

  1. In a chi-square test of independence, what is the theoretical minimum value of the test statistic (χ2\chi^2), and under what condition does it occur?
    Answer: 0, which occurs when the observed frequencies are exactly equal to the expected frequencies. The formula for the chi-square statistic is χ2=∑(O−E)2E\chi^2 = \sum \frac{(O-E)^2}{E}. Each term in the sum, (O−E)2E\frac{(O-E)^2}{E}, consists of a squared term in the numerator and a positive expected count in the denominator. Therefore, each term must be non-negative (greater than or equal to 0). The entire sum is minimized when each term is minimized. This occurs when the numerator, (O−E)2(O-E)^2, is 0 for every cell. This happens if and only if the observed frequency (O) is exactly equal to the expected frequency (E) in every cell. In this case, the χ2\chi^2 statistic is 0. This represents a perfect fit with the null hypothesis of independence.
  2. A chi-square test for independence was conducted to examine the relationship between a student's major (STEM, Humanities, Arts) and their preferred study location (Library, Cafe, Dorm Room). The test resulted in a p-value of 0.02. Using a significance level of α=0.05\alpha = 0.05, which of the following is the most appropriate conclusion?
    Answer: Since p < 0.05, we conclude that there is a statistically significant association between a student's major and their preferred study location. A p-value of 0.02 is less than the significance level of 0.05, so we reject the null hypothesis. The null hypothesis for a test of independence is that there is no association between the two variables. Rejecting the null means we have sufficient evidence to conclude that an association exists. Choice A is incorrect because association does not imply causation. Choice C states the opposite of what a significant result implies; it more closely resembles the null hypothesis of homogeneity. Choice D uses overly strong language like "proven" and "false"; statistical tests provide evidence, they do not provide absolute proof.
  3. Two studies were conducted to test for an association between using a mobile app and purchasing a product. Both studies had 200 participants and the same 2x2 table structure. Study A found that the proportions of purchasers were very different between app users and non-users. Study B found that the proportions were only slightly different. Which of the following is most likely true about the results?
    Answer: Study A will have a larger chi-square statistic and a smaller p-value than Study B. The chi-square statistic measures the discrepancy between observed data and what would be expected under independence. A larger discrepancy (i.e., very different proportions, as in Study A) will result in a larger chi-square value. A smaller discrepancy (proportions only slightly different, as in Study B) will result in a smaller chi-square value. For a given number of degrees of freedom, a larger chi-square statistic corresponds to a smaller p-value, indicating stronger evidence against the null hypothesis. Therefore, Study A is expected to have a larger chi-square statistic and a smaller p-value than Study B.
  4. A researcher conducts a chi-square test of independence on a 2x2 table and obtains a p-value of 0.24. Using a significance level of α=0.05\alpha = 0.05, the researcher fails to reject the null hypothesis. Which of the following is a valid conclusion?
    Answer: There is insufficient evidence to conclude that an association exists between the two variables. When you encounter chi-square test questions, focus on what the statistical results actually tell you versus what they don't prove. A chi-square test of independence examines whether two categorical variables are associated, but like all hypothesis tests, it has important limitations in its conclusions. Since the p-value (0.24) exceeds the significance level (α=0.05\alpha = 0.05), you fail to reject the null hypothesis of independence. This means there isn't sufficient statistical evidence to conclude that an association exists between the variables, making answer D correct. Here's why the other options are wrong: Option A claims the study "proves" independence, but hypothesis tests never prove anything definitively—they only provide evidence for or against relationships. Failing to reject the null doesn't prove it's true. Option B assumes a Type II error occurred, but you can't know this without knowing the true population relationship. A Type II error only happens when the null is actually false but you fail to reject it. Option C misinterprets the p-value as the probability that the null hypothesis is true. The p-value is actually the probability of observing your data (or more extreme) assuming the null hypothesis is true. Study tip: Remember that "failing to reject" is not the same as "accepting" or "proving." Statistical tests can only provide evidence against the null hypothesis, never definitive proof for it. Always interpret p-values as probabilities about your data, not about hypotheses being true or false.
  5. After conducting a chi-square test and finding a significant result, a researcher examines the standardized residuals for each cell. What does a large positive standardized residual (e.g., +3.5) for a specific cell indicate?
    Answer: The observed frequency in that cell is significantly larger than what would be expected if the null hypothesis were true. A standardized residual is calculated as O−EE(1−pr)(1−pc)\frac{O - E}{\sqrt{E(1-p_r)(1-p_c)}} (or more simply, the signed square root of the chi-square component, O−EE\frac{O - E}{\sqrt{E}}). A positive residual means that the observed count (O) is greater than the expected count (E). A large standardized residual (typically > |2|) indicates a significant departure from the expected count for that cell. Therefore, a large positive residual means the observed count is significantly larger than expected under the null hypothesis of independence. Choice A describes a large negative residual. Choice C confuses the meaning of the residual with the magnitude of the expected count itself. Choice D is incorrect; a large residual is a finding to be interpreted, not a reason to invalidate the entire test.
  6. Which of the following are the most appropriate null (H0H_0) and alternative (HaH_a) hypotheses for a chi-square test of independence in this context?
    Answer: H0H_0: There is no association between educational attainment and primary news source in the population. HaH_a: There is an association between educational attainment and primary news source in the population. The chi-square test of independence assesses whether there is an association or relationship between two categorical variables in a single population. The null hypothesis always states that there is no association (i.e., the variables are independent). The alternative hypothesis states that there is an association (i.e., the variables are dependent). Choice A describes the hypotheses for a chi-square test of homogeneity, which would be appropriate if the researcher had taken separate random samples from each education level. Choice C is too narrow; it only addresses one news source category, whereas the chi-square test considers all categories simultaneously. Choice D incorrectly introduces the concept of causation, which cannot be established by a chi-square test.
  7. A data analyst is reviewing the results of a chi-square test of independence from a statistical software package. Part of the output is shown. Based on this output, what should the analyst conclude at the α=0.01\alpha = 0.01 significance level?
    Answer: Reject H0H_0, because the p-value of 0.002 is less than the significance level of 0.01. The standard procedure for hypothesis testing is to compare the p-value to the significance level (α\alpha). Here, the p-value is given as 0.002 and α=0.01\alpha = 0.01. Since 0.002 < 0.01, we reject the null hypothesis (H0H_0). Rejecting H0H_0 means we have sufficient evidence to conclude an association between the variables. Choice B incorrectly compares the p-value to α\alpha. Choice A uses an incorrect rule for rejection; the test statistic should be compared to a critical value from the chi-square distribution, not directly to the degrees of freedom. Choice D incorrectly interprets the test statistic; a χ2\chi^2 of 14.88 on 4 df is quite large and corresponds to a small p-value, indicating a significant association, not independence.
  8. A researcher wants to know if the distribution of car color (White, Black, Silver, Other) is the same for vehicles purchased in three different cities. He collects a random sample of 100 recent car sales from City A, a separate random sample of 100 from City B, and a third random sample of 100 from City C. Which statistical test is most appropriate for this research design?
    Answer: A chi-square test of homogeneity, because samples were drawn separately from each of several populations (cities). This scenario involves comparing the distribution of a single categorical variable (car color) across multiple populations (the three cities). The key feature is that separate random samples were taken from each population. This is the textbook setup for a chi-square test of homogeneity. A test of independence (Choice A) would be appropriate if one single random sample was taken from a larger population and then classified by two variables (city and car color). While the calculation is identical, the research design and hypotheses are different. A goodness-of-fit test (Choice C) is for one categorical variable from one sample to see if it fits a known or hypothesized distribution. A t-test (Choice D) is for comparing means of quantitative data, not categorical data.
  9. A study on 100 people found a slight, non-significant association between preference for coffee or tea and being a morning or evening person (χ2=1.2\chi^2 = 1.2, p = 0.27). The researchers decide to replicate the study. They collect data from 400 new people and find the exact same proportions of individuals in each of the four categories as in the original study. What will be the value of the chi-square statistic for this new, larger study?
    Answer: 4.8 The chi-square statistic is calculated as χ2=∑(O−E)2E\chi^2 = \sum \frac{(O-E)^2}{E}. If the sample size is quadrupled (from 100 to 400) while the proportions in each cell remain the same, then every observed count (O) and every expected count (E) will be four times larger. Let the original counts be OiO_i and EiE_i. The new counts are 4Oi4O_i and 4Ei4E_i. The new chi-square statistic will be χnew2=∑(4Oi−4Ei)24Ei=∑16(Oi−Ei)24Ei=4∑(Oi−Ei)2Ei=4χold2\chi^2_{new} = \sum \frac{(4O_i - 4E_i)^2}{4E_i} = \sum \frac{16(O_i - E_i)^2}{4E_i} = 4 \sum \frac{(O_i - E_i)^2}{E_i} = 4\chi^2_{old}. Therefore, the new statistic will be 4 * 1.2 = 4.8. This demonstrates that with the same effect size (proportions), a larger sample size leads to a larger chi-square statistic and stronger evidence against the null hypothesis.
  10. A study classified a sample of voters by their political affiliation (Party A, Party B, Independent) and their opinion on a new policy (For, Against, Undecided). The results were organized into a 3x3 contingency table. The lead researcher decides to simplify the analysis by combining the 'Against' and 'Undecided' categories into a single 'Not For' category. How will this change affect the degrees of freedom for the chi-square test of independence?
    Answer: The degrees of freedom will decrease from 4 to 2. The degrees of freedom for a chi-square test of independence are calculated as (number of rows - 1) (number of columns - 1). Initially, the table is 3x3 (3 affiliations x 3 opinions). The degrees of freedom are (3 - 1) (3 - 1) = 2 2 = 4. After combining two of the opinion columns, the table becomes 3x2 (3 affiliations x 2 opinions: 'For' and 'Not For'). The new degrees of freedom are (3 - 1) (2 - 1) = 2 * 1 = 2. Therefore, the degrees of freedom decrease from 4 to 2. The other options use incorrect initial or final calculations (e.g., using rc-1 or r+c-1).
  11. In a survey of 1000 randomly selected adults, 60% were identified as regular coffee drinkers. Overall, 25% of all adults surveyed reported experiencing frequent indigestion. If coffee drinking and indigestion are independent, what is the expected number of regular coffee drinkers who also experience frequent indigestion?
    Answer: 150 This question requires calculating an expected count from marginal proportions and a grand total. First, determine the marginal counts. Number of coffee drinkers = 60% of 1000 = 600. Number with indigestion = 25% of 1000 = 250. The expected count for the cell 'coffee drinker and indigestion' under the assumption of independence is (Row Total Column Total) / Grand Total. Here, that's (Number of coffee drinkers Number with indigestion) / Total adults = (600 250) / 1000 = 150000 / 1000 = 150. Alternatively, if the variables are independent, the joint probability is the product of the marginal probabilities: P(Coffee and Indigestion) = P(Coffee) P(Indigestion) = 0.60 0.25 = 0.15. The expected number is this probability multiplied by the total sample size: 0.15 1000 = 150.
  12. A study on university students found a significant association between year in school (Freshman, Sophomore, Junior, Senior) and living situation (Dorm, Apartment, With Parents) with χ2(6)=15.2,p=0.019\chi^2(6) = 15.2, p=0.019. If the researchers had instead grouped students into only two categories, 'Underclassman' (Freshman/Sophomore) and 'Upperclassman' (Junior/Senior), which of the following is a possible outcome of performing a new chi-square test?
    Answer: The degrees of freedom would be smaller, and the association might no longer be statistically significant. When analyzing chi-square tests, you need to understand how changing the structure of your categorical variables affects both the degrees of freedom and the statistical outcomes. First, let's calculate the degrees of freedom. In chi-square tests of independence, df=(rows−1)×(columns−1)df = (rows - 1) \times (columns - 1). The original study had 4 year categories and 3 living situations, giving df=(4−1)×(3−1)=6df = (4-1) \times (3-1) = 6. After collapsing to 2 year categories (Underclassman/Upperclassman) and keeping 3 living situations, the new df=(2−1)×(3−1)=2df = (2-1) \times (3-1) = 2. So degrees of freedom decrease. When you collapse categories, you're combining data and potentially losing information about patterns that contributed to the original significant result. The original significant association (p = 0.019) might have been driven by specific differences between individual year levels that get averaged out when you group Freshmen with Sophomores and Juniors with Seniors. This could weaken the association and make it non-significant. Answer A is wrong because collapsing categories doesn't guarantee significance will remain—you might lose important variation. Answer B incorrectly claims the p-value must become smaller; collapsing categories often weakens associations, potentially increasing p-values. Answer C correctly identifies that significance might be lost but incorrectly states that degrees of freedom would be larger. Answer D correctly identifies both outcomes: smaller degrees of freedom and potential loss of significance. Study tip: Remember that collapsing categories in chi-square tests always reduces degrees of freedom and may weaken associations by averaging out important differences between the original categories.
  13. A researcher performs a chi-square test of independence and obtains a test statistic of χ2=25.4\chi^2 = 25.4 with 4 degrees of freedom. A subsequent analysis is performed on a new dataset with the same sample size and categories, but in this new dataset, the observed frequencies are much closer to the expected frequencies predicted by the null hypothesis. How would the new test statistic (χnew2\chi^2_{new}) compare to the original?
    Answer: χnew2\chi^2_{new} would be smaller than 25.4, providing weaker evidence of an association. The chi-square test statistic measures the total discrepancy between the observed frequencies and the frequencies expected under the null hypothesis of independence. It is calculated as ∑(O−E)2E\sum \frac{(O-E)^2}{E}. If the observed frequencies (O) are closer to the expected frequencies (E), the differences (O-E) will be smaller. This leads to smaller squared differences (O−E)2(O-E)^2, and consequently, a smaller overall χ2\chi^2 statistic. A smaller χ2\chi^2 value corresponds to a larger p-value and thus provides weaker evidence against the null hypothesis, meaning weaker evidence of an association.
  14. A marketing firm surveyed 500 shoppers to investigate an association between age group (Under 30, 30 or Over) and preferred shopping method (In-Store, Online). The data is summarized in the table. What is the contribution of the 'Under 30, Online' cell to the total chi-square (χ2\chi^2) test statistic?
    Answer: 5.56 This is a multi-step problem. First, calculate the expected count for the 'Under 30, Online' cell. The formula is (Row Total Column Total) / Grand Total. The row total for 'Under 30' is 150. The column total for 'Online' is 300. The grand total is 500. So, Expected = (150 300) / 500 = 45000 / 500 = 90. Second, calculate this cell's contribution to the chi-square statistic using the formula (Observed - Expected)^2 / Expected. The observed count is 110. So, Contribution = (110−90)2(110 - 90)^2 / 90 = (20)2(20)^2 / 90 = 400 / 90 ≈ 5.56. Distractor D is the expected count. Distractor B results from an error in the formula, specifically (110−90)2(110-90)^2 / 120, using the wrong expected count. Distractor A results from another common error, (110-90)/sqrt(90), which relates to the standardized residual.
  15. A report on employee satisfaction presents the following table of percentages. The company has 400 total employees. A chi-square test of independence is planned. What is the first step a statistician must take, and why?
    Answer: Convert the percentages back into raw counts, because the chi-square test and its conditions are based on actual frequencies. The chi-square test statistic is calculated using observed and expected counts (frequencies), not percentages. Furthermore, the crucial condition that all expected counts should be at least 5 also applies to counts, not percentages. Therefore, the essential first step is to use the grand total (400 employees) to convert the given percentages back into a contingency table of raw counts. For example, the count for 'Manager / Satisfied' would be 20% of 400 = 80. After creating the full table of counts, one can then proceed to calculate expected counts, check assumptions, and compute the test statistic. The other steps are necessary but can only occur after the data is in the correct format (counts).
  16. A researcher is studying the association between students' academic performance (Below Average, Average, Above Average) and their participation in extracurricular activities (None, One, More than one). Since academic performance is an ordered categorical variable, what is a primary limitation of using a standard chi-square test of independence for this analysis?
    Answer: The chi-square test treats the categories as unordered, thus ignoring the inherent ranking in academic performance. When analyzing relationships between categorical variables, you need to consider whether the variables have inherent ordering. This distinction affects which statistical tests are most appropriate and how much information you can extract from your analysis. The chi-square test of independence is designed for nominal categorical variables, where categories have no natural order (like eye color or political party). While you can technically use it on ordinal data like academic performance (Below Average < Average < Above Average), doing so wastes valuable information. The test treats "Below Average," "Average," and "Above Average" as simply three different categories with no meaningful relationship between them, ignoring the clear ranking structure. This means you lose the ability to detect trends or patterns related to the ordering. Let's examine why the other options are incorrect. Option A is wrong because chi-square tests can be used on ordinal variables—they're just not optimal. The test won't fail; it simply ignores the ordering. Option B misunderstands the chi-square requirements. While you need adequate expected frequencies (typically ≥5 per cell), equal group sizes aren't required. Option C incorrectly states that both variables must have the same number of categories. Chi-square tests work perfectly fine with different numbers of categories (like 3×3 or 3×4 tables). The correct answer is D because it identifies the key limitation: losing the ordinal information by treating ordered categories as unordered. Study tip: When you encounter ordinal variables, consider tests designed for ordered data (like ordinal logistic regression or trend tests) rather than defaulting to chi-square, which treats everything as nominal.
  17. A massive online survey of 50,000 users of two social media platforms found that 25.1% of Platform A users clicked on a certain ad, while 25.6% of Platform B users clicked on the ad. A chi-square test of independence resulted in a p-value < 0.001. What is the best interpretation of this result?
    Answer: There is strong statistical evidence of an association, but the actual difference in proportions is very small and may not be practically significant. With a very large sample size, even tiny differences in proportions can become statistically significant (i.e., yield a very small p-value). The p-value < 0.001 indicates that the observed difference is unlikely to be due to random chance alone. However, the practical importance of the result must also be considered. The difference between 25.1% and 25.6% is only 0.5 percentage points, which may be too small to be meaningful for business decisions. This illustrates the distinction between statistical significance and practical significance. Choice A is incorrect because the magnitude of the association is small, not strong. Choice B is incorrect; large sample sizes don't violate the test's assumptions, they increase its power. Choice D ignores the result of the hypothesis test; the small p-value explicitly means we should reject the null hypothesis.

Start this quiz