The ChiSquare Distribution
Comparison of the ChiSquare Tests
OpenStaxCollege
You have seen the χ^{2} test statistic used in three different circumstances. The following bulleted list is a summary that will help you decide which χ^{2} test is the appropriate one to use.
 GoodnessofFit: Use the goodnessoffit test to decide whether a population with an unknown distribution “fits” a known distribution. In this case there will be a single qualitative survey question or a single outcome of an experiment from a single population. GoodnessofFit is typically used to see if the population is uniform (all outcomes occur with equal frequency), the population is normal, or the population is the same as another population with a known distribution. The null and alternative hypotheses are:
H_{0}: The population fits the given distribution.
H_{a}: The population does not fit the given distribution.
 Independence: Use the test for independence to decide whether two variables (factors) are independent or dependent. In this case there will be two qualitative survey questions or experiments and a contingency table will be constructed. The goal is to see if the two variables are unrelated (independent) or related (dependent). The null and alternative hypotheses are:
H_{0}: The two variables (factors) are independent.
H_{a}: The two variables (factors) are dependent.
 Homogeneity: Use the test for homogeneity to decide if two populations with unknown distributions have the same distribution as each other. In this case there will be a single qualitative survey question or experiment given to two different populations. The null and alternative hypotheses are:
H_{0}: The two populations follow the same distribution.
H_{a}: The two populations have different distributions.
Chapter Review
The goodnessoffit test is typically used to determine if data fits a particular distribution. The test of independence makes use of a contingency table to determine the independence of two factors. The test for homogeneity determines whether two populations come from the same distribution, even if this distribution is unknown.
Which test do you use to decide whether an observed distribution is the same as an expected distribution?
a goodnessoffit test
What is the null hypothesis for the type of test from [link]?
Which test would you use to decide whether two factors have a relationship?
a test for independence
Which test would you use to decide if two populations have the same distribution?
How are tests of independence similar to tests for homogeneity?
Answers will vary. Sample answer: Tests of independence and tests for homogeneity both calculate the test statistic the same way . In addition, all values must be greater than or equal to five.
How are tests of independence different from tests for homogeneity?
Homework
For each word problem, use a solution sheet to solve the hypothesis test problem. Go to [link] for the chisquare solution sheet. Round expected frequency to two decimal places.
Is there a difference between the distribution of community college statistics students and the distribution of university statistics students in what technology they use on their homework? Of some randomly selected community college students, 43 used a computer, 102 used a calculator with built in statistics functions, and 65 used a table from the textbook. Of some randomly selected university students, 28 used a computer, 33 used a calculator with built in statistics functions, and 40 used a table from the textbook. Conduct an appropriate hypothesis test using a 0.05 level of significance.
 H_{0}: The distribution for technology use is the same for community college students and university students.
 H_{a}: The distribution for technology use is not the same for community college students and university students.
 2
 chisquare with df = 2
 7.05
 pvalue = 0.0294
 Check student’s solution.

 Alpha: 0.05
 Decision: Reject the null hypothesis.
 Reason for decision: pvalue < alpha
 Conclusion: There is sufficient evidence to conclude that the distribution of technology use for statistics homework is not the same for statistics students at community colleges and at universities.
Read the statement and decide whether it is true or false.
If df = 2, the chisquare distribution has a shape that reminds us of the exponential.
Bringing It Together
 Explain why a goodnessoffit test and a test of independence are generally righttailed tests.
 If you did a lefttailed test, what would you be testing?
 The test statistic is always positive and if the expected and observed values are not close together, the test statistic is large and the null hypothesis will be rejected.
 Testing to see if the data fits the distribution “too well” or is too perfect.