College Statistics Quiz: Chi Square Goodness Of Fit
20 questions · exam conditions
0:00
Chi Square Goodness Of FitQuestion 1 of 20
A researcher conducts a chi-square goodness-of-fit test to see if the student body at a large university is 25% freshmen, 25% sophomores, 25% juniors, and 25% seniors. In a random sample of 200 students, she finds 60 freshmen, 45 sophomores, 55 juniors, and 40 seniors. Which of the following is a necessary condition for the validity of the p-value obtained from this test?
AThe number of students observed in each class must be at least 5.
BThe population distributions of class year must be approximately normal.
CThe total sample size must be greater than 30.
DThe number of students expected in each class must be at least 5.
College Statistics Quiz: Chi Square Goodness Of Fit
Practice Chi Square Goodness Of Fit in College Statistics with focused quiz questions that help you check what you know, review explanations, and build confidence with test-style prompts.
What this quiz covers
This quiz focuses on Chi Square Goodness Of Fit, giving you a quick way to practice the rules, question types, and explanations that matter most for College Statistics.
How to use this quiz
Try each quiz question before looking at the correct answer. Use the explanations to review missed ideas, then come back to similar questions until the pattern feels familiar.
All questions
Question 1
A researcher conducts a chi-square goodness-of-fit test to see if the student body at a large university is 25% freshmen, 25% sophomores, 25% juniors, and 25% seniors. In a random sample of 200 students, she finds 60 freshmen, 45 sophomores, 55 juniors, and 40 seniors. Which of the following is a necessary condition for the validity of the p-value obtained from this test?
The number of students observed in each class must be at least 5.
The population distributions of class year must be approximately normal.
The total sample size must be greater than 30.
The number of students expected in each class must be at least 5. (correct answer)
Explanation: When you encounter chi-square goodness-of-fit test questions, focus on the key assumptions that make the test statistically valid. This test compares observed frequencies to expected frequencies to determine if sample data fits a hypothesized distribution.The correct answer is D because chi-square tests require that expected frequencies (not observed frequencies) be at least 5 in each category. Let's verify this condition: with 200 total students and an expected distribution of 25% in each class, the expected frequency for each class is 200×0.25=50 students. Since 50 > 5 for all categories, this condition is satisfied. When expected frequencies are too small, the chi-square distribution doesn't provide a good approximation for the test statistic.Option A is incorrect because it focuses on observed frequencies rather than expected frequencies. The actual counts you observe (60, 45, 55, 40) don't need to meet the "at least 5" rule—it's the theoretical expected counts that matter.Option B is wrong because chi-square goodness-of-fit tests don't require the population to be normally distributed. This test works with categorical data and makes no assumptions about the shape of the underlying population distribution.Option C is incorrect because there's no general "greater than 30" sample size requirement for chi-square tests. The sample size requirement depends on having adequate expected frequencies in each category, not an arbitrary total.Study tip: Remember the "5 rule" for chi-square tests always applies to expected frequencies, never observed frequencies. Calculate expected frequencies first when checking test conditions.
Question 2
A biologist studies a plant species expected to produce offspring with four different petal colors in a 9:3:3:1 ratio. After performing a cross, the biologist counts the number of offspring in each color category. To test the genetic theory, a chi-square goodness-of-fit test is planned. However, the biologist estimates the proportion of the most common color from the sample data itself before proceeding with the test on the remaining three categories. How many degrees of freedom should be used for the chi-square test?
1
2 (correct answer)
3
4
Explanation: The standard degrees of freedom for a goodness-of-fit test is df=k−1, where k is the number of categories. In this case, there are 4 categories, so one might expect df=3. However, the degrees of freedom must be reduced by one for each population parameter estimated from the sample data. The problem states that the proportion of one category was estimated from the data. Therefore, the degrees of freedom are df=k−1−(number of estimated parameters)=4−1−1=2.
Question 3
A company produces widgets at three factories. Historically, Factory A produces 50% of the total output, Factory B produces 30%, and Factory C produces 20%. To test if this production distribution still holds, a random sample of 400 widgets is selected. The test yields a χ2 statistic of 6.50. What conclusion can be drawn at the 5% significance level?
Reject H0; there is evidence the production distribution has changed. (correct answer)
Fail to reject H0; there is not enough evidence the production distribution has changed.
Reject H0; the probability of the null hypothesis being true is less than 5%.
Fail to reject H0; the test statistic is larger than the number of categories.
Explanation: To make a conclusion, we need to compare the test statistic to the critical value from the χ2 distribution. The degrees of freedom are df=k−1=3−1=2. The critical value for a χ2 distribution with 2 degrees of freedom at α=0.05 is 5.99. Since the calculated test statistic (6.50) is greater than the critical value (5.99), we reject the null hypothesis. This means there is sufficient statistical evidence to conclude that the production distribution has changed from the historical proportions.
Question 4
A researcher performs a chi-square goodness-of-fit test on a sample of data with 6 categories. They find that one of the observed counts is 3. An initial calculation shows that one of the expected counts is 4.5. The researcher is concerned about the validity of the test. Which of the following statements correctly addresses the conditions for this test?
The test is invalid because at least one observed count is less than 5.
The test is invalid because at least one expected count is less than 5. (correct answer)
The validity of the test cannot be determined without knowing all the observed and expected counts.
The test is valid if the other five expected counts are large enough such that all expected counts are at least 5.
Explanation: The 'Large Counts' condition for a chi-square goodness-of-fit test requires that all expected counts be at least 5. The observed counts can be less than 5. Since the problem states that one expected count is 4.5, this condition is violated, making the results of the test unreliable. Therefore, the test is invalid as described. Choice D is incorrect because the condition applies to all expected counts; if even one is less than 5, the condition is not met.
Question 5
In a chi-square goodness-of-fit test with 5 categories, the null hypothesis states that all categories are equally likely. In a sample of 100 individuals, the calculated test statistic is χ² = 9.55. The individual chi-square components for the first four categories are 1.25, 0.45, 2.00, and 4.05. The observed count for the fifth category was greater than its expected count. What was the observed count for the fifth category?
16
20
24
26 (correct answer)
Explanation: First, find the expected count for each category under the null hypothesis: E = n/k = 100/5 = 20. Next, find the chi-square component for the fifth category: χ²₅ = Total χ² - (sum of first four components) = 9.55 - (1.25 + 0.45 + 2.00 + 4.05) = 9.55 - 7.75 = 1.8. Now solve for the observed count using the component formula: (O₅ - E₅)²/E₅ = 1.8, so (O₅ - 20)²/20 = 1.8. This gives (O₅ - 20)² = 36, so O₅ - 20 = ±6. The possible values are O₅ = 26 or O₅ = 14. Since the problem states the observed count was greater than the expected count (20), we have O₅ = 26.
Question 6
A marketing firm claims that a new advertisement will result in the following market shares for four competing brands: Brand A (50%), Brand B (25%), Brand C (15%), and Brand D (10%). A study is conducted on 300 consumers to test this claim. Which of the following is the correct null hypothesis for a chi-square goodness-of-fit test?
Explanation: Chi-square goodness-of-fit tests examine whether observed data matches an expected distribution. When you encounter these problems, focus on what the null hypothesis should claim about the population parameters - specifically, that the true population proportions equal the claimed values.The correct null hypothesis states that the true population proportions (denoted by p) equal the marketing firm's claimed values. Answer D correctly uses pA=0.50,pB=0.25,pC=0.15,pD=0.10, representing the population parameters we're testing against.Answer A uses p^ (p-hat), which represents sample proportions - statistics calculated from your data. The null hypothesis should make claims about population parameters, not sample statistics. This is a common notation trap.Answer B suggests all brands have equal market share (25% each). This would be appropriate if you were testing whether market shares were equal across brands, but that's not what the marketing firm claimed. You're testing their specific predicted percentages, not equality.Answer C states the hypothesis in terms of expected counts (EA=150, etc.) rather than proportions. While these expected counts will be used in your chi-square calculations, the null hypothesis should be expressed in terms of population proportions, not expected frequencies.Remember: In goodness-of-fit tests, your null hypothesis should always state that the true population proportions (p) equal the claimed or theoretical values. Watch for the distinction between population parameters (p) and sample statistics (p^) - hypotheses test parameters, not statistics.
Question 7
An ecologist is testing whether the distribution of five species of trees in a forest tract matches a theoretical distribution. The initial analysis of a random sample of 200 trees reveals that the expected counts for two of the species are 4.2 and 3.8, respectively. The other expected counts are all above 30. What is the most appropriate course of action?
Proceed with the chi-square test, as the total sample size is large and most expected counts are well above 5.
Collect more data until all observed counts are at least 5 for every species.
Combine the two species with small expected counts into a single 'rare species' category before performing the test. (correct answer)
Remove the two species with small expected counts from the data set and perform the test on the remaining three species.
Explanation: The 'Large Counts' condition for a chi-square test requires all expected counts to be at least 5. When this condition is violated, the standard procedure is to combine the categories with small expected counts into a new, meaningful category. This ensures the condition is met while retaining the data. Proceeding with the test (A) is incorrect as the results would be unreliable. Collecting more data (B) might work, but it addresses observed, not expected, counts and may not be practical. Removing data (D) is inappropriate as it alters the research question and discards valid information.
Question 8
A study tested whether the days of the week for car accidents at a particular intersection were uniformly distributed. A chi-square goodness-of-fit test was performed on a sample of accidents, resulting in a test statistic of χ2=18.5 with 6 degrees of freedom. The p-value was found to be 0.005. What is the most appropriate conclusion?
There is strong evidence that the number of accidents is different on all seven days of the week.
There is strong evidence that the distribution of accidents across the days of the week is not uniform. (correct answer)
The number of observed accidents on each day was significantly different from the number of expected accidents.
The null hypothesis that the accidents are uniformly distributed is proven to be false.
Explanation: A small p-value (0.005) leads to the rejection of the null hypothesis. The null hypothesis was that the distribution is uniform. Therefore, we have strong evidence that the distribution is not uniform. Choice A is too strong a conclusion; the omnibus nature of the chi-square test means we only know that at least one day's proportion is different, not necessarily all of them. Choice C is vague; 'significantly different' should refer to the overall pattern, not necessarily each individual day's count. Choice D uses the word 'proven', which is too absolute for statistical inference.
Question 9
A researcher conducts a chi-square goodness-of-fit test using a sample of size n. The resulting test statistic is χ12. A second researcher replicates the study with a new sample of size 2n but observes the exact same proportions in each category as the first study. What will be the value of the test statistic, χ22, for the second study?
χ22=χ12
χ22=2⋅χ12
χ22=2⋅χ12 (correct answer)
χ22=4⋅χ12
Explanation: Let O1i and E1i be the observed and expected counts for category i in the first study. Then χ12=∑E1i(O1i−E1i)2. In the second study, the sample size is 2n and the proportions are the same. This means the new observed counts are O2i=2O1i and the new expected counts are E2i=2E1i. The new test statistic is χ22=∑2E1i(2O1i−2E1i)2=∑2E1i4(O1i−E1i)2=2∑E1i(O1i−E1i)2=2χ12. Thus, doubling the sample size while keeping the proportions constant doubles the chi-square statistic.
Question 10
A city is composed of four ethnic groups. A sociologist wants to determine if the distribution of ethnic groups among residents who use public parks is the same as the distribution in the city as a whole. The sociologist collects data on a random sample of 500 park users. Which is the most appropriate statistical test for this research question?
A chi-square test for homogeneity
A chi-square test for independence
A chi-square goodness-of-fit test (correct answer)
A series of one-proportion z-tests
Explanation: The research question involves one categorical variable (ethnicity) from a single sample (park users) and compares its distribution to a known, hypothesized distribution (the city's overall ethnic distribution). This is the exact scenario for which a chi-square goodness-of-fit test is designed. A test for homogeneity would compare the distribution of a single categorical variable across multiple populations (e.g., comparing ethnicity of park users in City A vs. City B). A test for independence would examine the association between two categorical variables within a single population (e.g., testing if ethnicity and frequency of park use are independent).
Question 11
A chi-square goodness-of-fit test yields a p-value of 0.008. Which of the following is the most accurate interpretation of this result?
The probability that the null hypothesis is true is 0.008.
There is strong evidence that the observed distribution of the variable is different from the hypothesized distribution. (correct answer)
There is strong evidence that the proportion for every category is different from its hypothesized value.
If the null hypothesis were true, the probability of observing this exact sample result is 0.008.
Explanation: A small p-value (typically < 0.05 or 0.01) indicates that the observed data are unlikely to have occurred if the null hypothesis were true. This provides strong evidence against the null hypothesis. Therefore, we conclude that the actual distribution of the variable is different from the one specified in H0. Distractor A is a common misinterpretation of the p-value. Distractor C is incorrect because the chi-square test is an omnibus test; it tells us that at least one proportion is different, but not necessarily all of them. Distractor D is incorrect because the p-value is the probability of observing a result as extreme or more extreme than the sample result, not the probability of the exact sample result.
Question 12
A chi-square goodness-of-fit test is performed on data with k=5 categories at a significance level of α=0.05. The critical value from the chi-square distribution is 9.49. Which of the following sets of individual chi-square components would lead to a decision to reject the null hypothesis?
{3.8, 2.9, 1.5, 0.8, 0.6} (correct answer)
{3.1, 2.4, 2.0, 1.2, 0.7}
{2.5, 2.1, 1.9, 1.5, 1.4}
{4.0, 3.0, 1.0, 0.5, 0.9}
Explanation: To make a decision, we calculate the chi-square test statistic by summing the individual components and compare it to the critical value of 9.49. We reject the null hypothesis if the calculated statistic is greater than the critical value. Choice A: 3.8+2.9+1.5+0.8+0.6 = 9.6. Since 9.6 > 9.49, we reject H₀. Choice B: 3.1+2.4+2.0+1.2+0.7 = 9.4 < 9.49, fail to reject. Choice C: 2.5+2.1+1.9+1.5+1.4 = 9.4 < 9.49, fail to reject. Choice D: 4.0+3.0+1.0+0.5+0.9 = 9.4 < 9.49, fail to reject.
Question 13
A goodness-of-fit test is used to determine if a set of observed frequencies fits a theoretical distribution. If the calculated chi-square statistic is very close to zero, what does this imply about the 'goodness of fit'?
A poor fit, because the p-value will be large, leading to a failure to reject the null hypothesis.
A poor fit, because a value near zero indicates a calculation error.
An excellent fit, because the observed frequencies are very close to the expected frequencies. (correct answer)
The fit is indeterminate without knowing the degrees of freedom and the critical value.
Explanation: The chi-square statistic, χ2=∑E(O−E)2, measures the total discrepancy between observed (O) and expected (E) frequencies. A χ2 value of zero would mean that the observed frequencies perfectly match the expected frequencies. Therefore, a value very close to zero indicates a very small discrepancy and an excellent fit between the data and the hypothesized model.
Question 14
A researcher tests if a coin is fair (H0:pheads=0.5) by flipping it 80 times and getting 50 heads. This can be analyzed with a one-proportion z-test or a chi-square goodness-of-fit test. If the one-proportion z-test yields a statistic of z=2.236, what will be the value of the chi-square statistic?
χ2=1.495
χ2=2.236
χ2=4.472
χ2=5.000 (correct answer)
Explanation: For a categorical variable with only two categories, the chi-square goodness-of-fit test is mathematically equivalent to the two-sided one-proportion z-test. The relationship between the test statistics is χ2=z2. Given z=2.236, the chi-square statistic would be χ2=(2.236)2≈5.000. The degrees of freedom for this chi-square test would be k−1=2−1=1.
Question 15
A city's population is known to be 50% Group A, 30% Group B, and 20% Group C. A random sample of 200 city employees is taken to see if the distribution within city employment mirrors the city's population. The sample contains 90 from Group A, 68 from Group B, and 42 from Group C. What is the chi-square test statistic for a goodness-of-fit test?
2.15
2.17 (correct answer)
3.11
4.20
Explanation: First, calculate the expected counts based on the city's population proportions and the sample size of 200. EA=200×0.50=100, EB=200×0.30=60, EC=200×0.20=40. The observed counts are OA=90,OB=68,OC=42. Now, calculate the chi-square statistic: χ2=∑E(O−E)2=100(90−100)2+60(68−60)2+40(42−40)2=100100+6064+404=1+1.067+0.1=2.167≈2.17.
Question 16
A chi-square goodness-of-fit test is being performed. Which of the following changes would be most likely to result in a smaller p-value, assuming the sample proportions in each category remain the same?
Decreasing the sample size
Increasing the number of categories
Increasing the sample size (correct answer)
Decreasing the significance level α
Explanation: A smaller p-value indicates stronger evidence against the null hypothesis. If the sample proportions remain the same, increasing the sample size n will increase the magnitude of the differences between observed counts (O) and expected counts (E). This increases the χ2 statistic (it increases linearly with n), which in turn leads to a smaller p-value. Decreasing the sample size would have the opposite effect. Increasing the number of categories changes the degrees of freedom and the distribution, but does not have a predictable directional effect on the p-value without more information. Decreasing α changes the threshold for significance but does not change the p-value itself.
Question 17
A chi-square goodness-of-fit test for a variable with 8 categories produced a test statistic of χ2=13.5. The p-value for this test would be found by calculating the area to the right of 13.5 in a chi-square distribution with how many degrees of freedom?
7 (correct answer)
8
13.5
It cannot be determined without the sample size.
Explanation: For a chi-square goodness-of-fit test, the degrees of freedom (df) are calculated as k−1, where k is the number of categories. In this problem, there are 8 categories, so the degrees of freedom are 8−1=7. The p-value is the probability of obtaining a test statistic as extreme or more extreme than the observed one, which for a chi-square test is the area under the curve to the right of the test statistic. Therefore, the calculation would be based on a χ2 distribution with 7 degrees of freedom. The sample size is needed to calculate the test statistic, but not to determine the degrees of freedom.
Question 18
A researcher conducts a chi-square goodness-of-fit test using a sample of size n. The resulting test statistic is χ12. A second researcher replicates the study with a new sample of size 2n but observes the exact same proportions in each category as the first study. What will be the value of the test statistic, χ22, for the second study?
χ22=χ12
χ22=2⋅χ12
χ22=2⋅χ12 (correct answer)
χ22=4⋅χ12
Explanation: Let O1i and E1i be the observed and expected counts for category i in the first study. Then χ12=∑E1i(O1i−E1i)2. In the second study, the sample size is 2n and the proportions are the same. This means the new observed counts are O2i=2O1i and the new expected counts are E2i=2E1i. The new test statistic is χ22=∑2E1i(2O1i−2E1i)2=∑2E1i4(O1i−E1i)2=2∑E1i(O1i−E1i)2=2χ12. Thus, doubling the sample size while keeping the proportions constant doubles the chi-square statistic.
Question 19
In a chi-square goodness-of-fit test with 5 categories, the null hypothesis states that all categories are equally likely. In a sample of 100 individuals, the calculated test statistic is χ² = 9.55. The individual chi-square components for the first four categories are 1.25, 0.45, 2.00, and 4.05. The observed count for the fifth category was greater than its expected count. What was the observed count for the fifth category?
16
20
24
26 (correct answer)
Explanation: First, find the expected count for each category under the null hypothesis: E = n/k = 100/5 = 20. Next, find the chi-square component for the fifth category: χ²₅ = Total χ² - (sum of first four components) = 9.55 - (1.25 + 0.45 + 2.00 + 4.05) = 9.55 - 7.75 = 1.8. Now solve for the observed count using the component formula: (O₅ - E₅)²/E₅ = 1.8, so (O₅ - 20)²/20 = 1.8. This gives (O₅ - 20)² = 36, so O₅ - 20 = ±6. The possible values are O₅ = 26 or O₅ = 14. Since the problem states the observed count was greater than the expected count (20), we have O₅ = 26.
Question 20
A goodness-of-fit test is used to determine if a set of observed frequencies fits a theoretical distribution. If the calculated chi-square statistic is very close to zero, what does this imply about the 'goodness of fit'?
A poor fit, because the p-value will be large, leading to a failure to reject the null hypothesis.
A poor fit, because a value near zero indicates a calculation error.
An excellent fit, because the observed frequencies are very close to the expected frequencies. (correct answer)
The fit is indeterminate without knowing the degrees of freedom and the critical value.
Explanation: The chi-square statistic, χ2=∑E(O−E)2, measures the total discrepancy between observed (O) and expected (E) frequencies. A χ2 value of zero would mean that the observed frequencies perfectly match the expected frequencies. Therefore, a value very close to zero indicates a very small discrepancy and an excellent fit between the data and the hypothesized model.