This is “Chi-Square Tests for Independence”, section 11.1 from the book Beginning Statistics (v. 1.0).
For more information on the source of this book, or why it is available for free, please see the project's home page. You can browse or download additional books there. You may also download a PDF copy of this book (33 MB) or just this chapter (2 MB), suitable for printing or most e-readers, or a .zip file containing this book's HTML files (for use in a web browser offline).
As you know, there is a whole family of t-distributions, each one specified by a parameter called the degrees of freedom, denoted $df.$ Similarly, all the chi-square distributions form a family, and each of its members is also specified by a parameter $df$, the number of degrees of freedom. Chi is a Greek letter denoted by the symbol $\chi $ and chi-square is often denoted by ${\chi}^{2}.$ Figure 11.1 "Many " shows several chi-square distributions for different degrees of freedom. A chi-square random variableA random variable that follows a chi-square distribution. is a random variable that assumes only positive values and follows a chi-square distribution.
Figure 11.1 Many ${\chi}^{2}$ Distributions
The value of the chi-square random variable ${\chi}^{2}$ with $df=k$ that cuts off a right tail of area c is denoted ${\chi}_{c}^{2}$ and is called a critical value. See Figure 11.2.
Figure 11.2 ${\chi}_{c}^{2}$ Illustrated
Figure 12.4 "Critical Values of Chi-Square Distributions" gives values of ${\chi}_{c}^{2}$ for various values of c and under several chi-square distributions with various degrees of freedom.
Hypotheses tests encountered earlier in the book had to do with how the numerical values of two population parameters compared. In this subsection we will investigate hypotheses that have to do with whether or not two random variables take their values independently, or whether the value of one has a relation to the value of the other. Thus the hypotheses will be expressed in words, not mathematical symbols. We build the discussion around the following example.
There is a theory that the gender of a baby in the womb is related to the baby’s heart rate: baby girls tend to have higher heart rates. Suppose we wish to test this theory. We examine the heart rate records of 40 babies taken during their mothers’ last prenatal checkups before delivery, and to each of these 40 randomly selected records we compute the values of two random measures: 1) gender and 2) heart rate. In this context these two random measures are often called factorsA variable with several qualitative levels.. Since the burden of proof is that heart rate and gender are related, not that they are unrelated, the problem of testing the theory on baby gender and heart rate can be formulated as a test of the following hypotheses:
$$\begin{array}{ccc}\hfill {H}_{0}& :& \text{Baby}\text{\hspace{0.17em}}\text{gender}\text{\hspace{0.17em}}\text{and}\text{\hspace{0.17em}}\text{baby}\text{\hspace{0.17em}}\text{heart}\text{\hspace{0.17em}}\text{rate}\text{\hspace{0.17em}}\text{are}\text{\hspace{0.17em}}\text{independent}\hfill \\ \hfill \text{vs}.\text{\hspace{0.17em}}{H}_{a}& :& \text{Baby}\text{\hspace{0.17em}}\text{gender}\text{\hspace{0.17em}}\text{and}\text{\hspace{0.17em}}\text{baby}\text{\hspace{0.17em}}\text{heart}\text{\hspace{0.17em}}\text{rate}\text{\hspace{0.17em}}\text{are}\text{\hspace{0.17em}}not\text{\hspace{0.17em}}\text{independent}\hfill \end{array}$$The factor gender has two natural categories or levels: boy and girl. We divide the second factor, heart rate, into two levels, low and high, by choosing some heart rate, say 145 beats per minute, as the cutoff between them. A heart rate below 145 beats per minute will be considered low and 145 and above considered high. The 40 records give rise to a 2 × 2 contingency table. By adjoining row totals, column totals, and a grand total we obtain the table shown as Table 11.1 "Baby Gender and Heart Rate". The four entries in boldface type are counts of observations from the sample of n = 40. There were 11 girls with low heart rate, 17 boys with low heart rate, and so on. They form the core of the expanded table.
Table 11.1 Baby Gender and Heart Rate
Heart Rate | ||||
---|---|---|---|---|
Low | High | Row Total | ||
Gender | Girl | 11 | 7 | 18 |
Boy | 17 | 5 | 22 | |
Column Total | 28 | 12 | Total = 40 |
In analogy with the fact that the probability of independent events is the product of the probabilities of each event, if heart rate and gender were independent then we would expect the number in each core cell to be close to the product of the row total R and column total C of the row and column containing it, divided by the sample size n. Denoting such an expected number of observations E, these four expected values are:
We update Table 11.1 "Baby Gender and Heart Rate" by placing each expected value in its corresponding core cell, right under the observed value in the cell. This gives the updated table Table 11.2 "Updated Baby Gender and Heart Rate".
Table 11.2 Updated Baby Gender and Heart Rate
Heart Rate | ||||
---|---|---|---|---|
Low | High | Row Total | ||
Gender | Girl | $\begin{array}{c}O=11\hfill \\ E=12.6\hfill \end{array}$ | $\begin{array}{c}O=7\hfill \\ E=5.4\hfill \end{array}$ | R = 18 |
Boy | $\begin{array}{c}O=17\hfill \\ E=15.4\hfill \end{array}$ | $\begin{array}{c}O=5\hfill \\ E=6.6\hfill \end{array}$ | R = 22 | |
Column Total | C = 28 | C = 12 | n = 40 |
A measure of how much the data deviate from what we would expect to see if the factors really were independent is the sum of the squares of the difference of the numbers in each core cell, or, standardizing by dividing each square by the expected number in the cell, the sum $\mathrm{\Sigma}{\left(O-E\right)}^{2}\u2215E.$ We would reject the null hypothesis that the factors are independent only if this number is large, so the test is right-tailed. In this example the random variable $\mathrm{\Sigma}{\left(O-E\right)}^{2}\u2215E$ has the chi-square distribution with one degree of freedom. If we had decided at the outset to test at the 10% level of significance, the critical value defining the rejection region would be, reading from Figure 12.4 "Critical Values of Chi-Square Distributions", ${\chi}_{\alpha}^{2}={\chi}_{0.10}^{2}=2.706$, so that the rejection region would be the interval $\left[2.706,\infty \right).$ When we compute the value of the standardized test statistic we obtain
$$\mathrm{\Sigma}\frac{{\left(O-E\right)}^{2}}{E}=\frac{{\left(11-12.6\right)}^{2}}{12.6}+\frac{{\left(7-5.4\right)}^{2}}{5.4}+\frac{{\left(17-15.4\right)}^{2}}{15.4}+\frac{{\left(5-6.6\right)}^{2}}{6.6}=1.231$$Since 1.231 < 2.706, the decision is not to reject H_{0}. See Figure 11.3 "Baby Gender Prediction". The data do not provide sufficient evidence, at the 10% level of significance, to conclude that heart rate and gender are related.
Figure 11.3 Baby Gender Prediction
With this specific example in mind, now turn to the general situation. In the general setting of testing the independence of two factors, call them Factor 1 and Factor 2, the hypotheses to be tested are
$$\begin{array}{ccc}\hfill {H}_{0}& :& \text{The}\text{\hspace{0.17em}}\text{two}\text{\hspace{0.17em}}\text{factors}\text{\hspace{0.17em}}\text{are}\text{\hspace{0.17em}}\text{independent}\hfill \\ \hfill \text{vs}.\text{\hspace{0.17em}}{H}_{a}& :& \text{The}\text{\hspace{0.17em}}\text{two}\text{\hspace{0.17em}}\text{factors}\text{\hspace{0.17em}}\text{are}\text{\hspace{0.17em}}not\text{\hspace{0.17em}}\text{independent}\hfill \end{array}$$As in the example each factor is divided into a number of categories or levels. These could arise naturally, as in the boy-girl division of gender, or somewhat arbitrarily, as in the high-low division of heart rate. Suppose Factor 1 has I levels and Factor 2 has J levels. Then the information from a random sample gives rise to a general I × J contingency table, which with row totals, column totals, and a grand total would appear as shown in Table 11.3 "General Contingency Table". Each cell may be labeled by a pair of indices $\left(i,j\right).$ ${O}_{ij}$ stands for the observed count of observations in the cell in row i and column j, R_{i} for the ${i}^{th}$ row total and C_{j} for the ${j}^{th}$ column total. To simplify the notation we will drop the indices so Table 11.3 "General Contingency Table" becomes Table 11.4 "Simplified General Contingency Table". Nevertheless it is important to keep in mind that the Os, the Rs and the Cs, though denoted by the same symbols, are in fact different numbers.
Table 11.3 General Contingency Table
Factor 2 Levels | |||||||
---|---|---|---|---|---|---|---|
1 | $\text{\hspace{0.17em}\xb7 \xb7 \xb7\hspace{0.17em}}$ | j | $\text{\hspace{0.17em}\xb7 \xb7 \xb7\hspace{0.17em}}$ | J | Row Total | ||
Factor 1 Levels | 1 | O_{11} | $\text{\hspace{0.17em}\xb7 \xb7 \xb7\hspace{0.17em}}$ | ${O}_{1j}$ | $\text{\hspace{0.17em}\xb7 \xb7 \xb7\hspace{0.17em}}$ | ${O}_{1J}$ | R_{1} |
⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | |
i | ${O}_{i1}$ | $\text{\hspace{0.17em}\xb7 \xb7 \xb7\hspace{0.17em}}$ | ${O}_{ij}$ | $\text{\hspace{0.17em}\xb7 \xb7 \xb7\hspace{0.17em}}$ | ${O}_{iJ}$ | R_{i} | |
⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | |
I | ${O}_{I1}$ | $\text{\hspace{0.17em}\xb7 \xb7 \xb7\hspace{0.17em}}$ | ${O}_{Ij}$ | $\text{\hspace{0.17em}\xb7 \xb7 \xb7\hspace{0.17em}}$ | ${O}_{IJ}$ | R_{I} | |
Column Total | C_{1} | $\text{\hspace{0.17em}\xb7 \xb7 \xb7\hspace{0.17em}}$ | C_{j} | $\text{\hspace{0.17em}\xb7 \xb7 \xb7\hspace{0.17em}}$ | C_{J} | n |
Table 11.4 Simplified General Contingency Table
Factor 2 Levels | |||||||
---|---|---|---|---|---|---|---|
1 | $\text{\hspace{0.17em}\xb7 \xb7 \xb7\hspace{0.17em}}$ | j | $\text{\hspace{0.17em}\xb7 \xb7 \xb7\hspace{0.17em}}$ | J | Row Total | ||
Factor 1 Levels | 1 | O | $\text{\hspace{0.17em}\xb7 \xb7 \xb7\hspace{0.17em}}$ | O | $\text{\hspace{0.17em}\xb7 \xb7 \xb7\hspace{0.17em}}$ | O | R |
⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | |
i | O | $\text{\hspace{0.17em}\xb7 \xb7 \xb7\hspace{0.17em}}$ | O | $\text{\hspace{0.17em}\xb7 \xb7 \xb7\hspace{0.17em}}$ | O | R | |
⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | |
I | O | $\text{\hspace{0.17em}\xb7 \xb7 \xb7\hspace{0.17em}}$ | O | $\text{\hspace{0.17em}\xb7 \xb7 \xb7\hspace{0.17em}}$ | O | R | |
Column Total | C | $\text{\hspace{0.17em}\xb7 \xb7 \xb7\hspace{0.17em}}$ | C | $\text{\hspace{0.17em}\xb7 \xb7 \xb7\hspace{0.17em}}$ | C | n |
As in the example, for each core cell in the table we compute what would be the expected number E of observations if the two factors were independent. E is computed for each core cell (each cell with an O in it) of Table 11.4 "Simplified General Contingency Table" by the rule applied in the example:
where R is the row total and C is the column total corresponding to the cell, and n is the sample size.
After the expected number is computed for every cell, Table 11.4 "Simplified General Contingency Table" is updated to form Table 11.5 "Updated General Contingency Table" by inserting the computed value of E into each core cell.
Table 11.5 Updated General Contingency Table
Factor 2 Levels | |||||||
---|---|---|---|---|---|---|---|
1 | $\text{\hspace{0.17em}\xb7 \xb7 \xb7\hspace{0.17em}}$ | j | $\text{\hspace{0.17em}\xb7 \xb7 \xb7\hspace{0.17em}}$ | J | Row Total | ||
Factor 1 Levels | 1 | $\begin{array}{c}O\\ E\end{array}$ | $\text{\hspace{0.17em}\xb7 \xb7 \xb7\hspace{0.17em}}$ | $\begin{array}{c}O\\ E\end{array}$ | $\text{\hspace{0.17em}\xb7 \xb7 \xb7\hspace{0.17em}}$ | $\begin{array}{c}O\\ E\end{array}$ | R |
⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | |
i | $\begin{array}{c}O\\ E\end{array}$ | $\text{\hspace{0.17em}\xb7 \xb7 \xb7\hspace{0.17em}}$ | $\begin{array}{c}O\\ E\end{array}$ | $\text{\hspace{0.17em}\xb7 \xb7 \xb7\hspace{0.17em}}$ | $\begin{array}{c}O\\ E\end{array}$ | R | |
⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | |
I | $\begin{array}{c}O\\ E\end{array}$ | $\text{\hspace{0.17em}\xb7 \xb7 \xb7\hspace{0.17em}}$ | $\begin{array}{c}O\\ E\end{array}$ | $\text{\hspace{0.17em}\xb7 \xb7 \xb7\hspace{0.17em}}$ | $\begin{array}{c}O\\ E\end{array}$ | R | |
Column Total | C | $\text{\hspace{0.17em}\xb7 \xb7 \xb7\hspace{0.17em}}$ | C | $\text{\hspace{0.17em}\xb7 \xb7 \xb7\hspace{0.17em}}$ | C | n |
Here is the test statistic for the general hypothesis based on Table 11.5 "Updated General Contingency Table", together with the conditions that it follow a chi-square distribution.
where the sum is over all core cells of the table.
If
then ${\chi}^{2}$ approximately follows a chi-square distribution with $df=\left(I\text{\u2212}1\right)\times \left(J\text{\u2212}1\right)$ degrees of freedom.
The same five-step procedures, either the critical value approach or the p-value approach, that were introduced in Section 8.1 "The Elements of Hypothesis Testing" and Section 8.3 "The Observed Significance of a Test" of Chapter 8 "Testing Hypotheses" are used to perform the test, which is always right-tailed.
A researcher wishes to investigate whether students’ scores on a college entrance examination (CEE) have any indicative power for future college performance as measured by GPA. In other words, he wishes to investigate whether the factors CEE and GPA are independent or not. He randomly selects n = 100 students in a college and notes each student’s score on the entrance examination and his grade point average at the end of the sophomore year. He divides entrance exam scores into two levels and grade point averages into three levels. Sorting the data according to these divisions, he forms the contingency table shown as Table 11.6 "CEE versus GPA Contingency Table", in which the row and column totals have already been computed.
Table 11.6 CEE versus GPA Contingency Table
GPA | |||||
---|---|---|---|---|---|
<2.7 | 2.7 to 3.2 | >3.2 | Row Total | ||
CEE | $<1800$ | 35 | 12 | 5 | 52 |
$\ge 1800$ | 6 | 24 | 18 | 48 | |
Column Total | 41 | 36 | 23 | $\text{Total}=100$ |
Test, at the 1% level of significance, whether these data provide sufficient evidence to conclude that CEE scores indicate future performance levels of incoming college freshmen as measured by GPA.
Solution:
We perform the test using the critical value approach, following the usual five-step method outlined at the end of Section 8.1 "The Elements of Hypothesis Testing" in Chapter 8 "Testing Hypotheses".
Step 1. The hypotheses are
$$\begin{array}{ccc}\hfill {H}_{0}& :& \text{CEE\hspace{0.17em}and\hspace{0.17em}GPA\hspace{0.17em}are\hspace{0.17em}independent\hspace{0.17em}factors}\hfill \\ \hfill \text{vs}.\text{\hspace{0.17em}}{H}_{a}& :& \text{CEE\hspace{0.17em}and\hspace{0.17em}GPA\hspace{0.17em}are\hspace{0.17em}}\mathrm{not}\text{\hspace{0.17em}independent\hspace{0.17em}factors}\hfill \end{array}$$Step 3. To compute the value of the test statistic we must first computed the expected number for each of the six core cells (the ones whose entries are boldface):
Table 11.6 "CEE versus GPA Contingency Table" is updated to Table 11.7 "Updated CEE versus GPA Contingency Table".
Table 11.7 Updated CEE versus GPA Contingency Table
GPA | |||||
---|---|---|---|---|---|
<2.7 | 2.7 to 3.2 | >3.2 | Row Total | ||
CEE | $<1800$ | $\begin{array}{c}O=35\hfill \\ E=21.32\hfill \end{array}$ | $\begin{array}{c}O=12\hfill \\ E=18.72\hfill \end{array}$ | $\begin{array}{c}O=5\hfill \\ E=11.96\hfill \end{array}$ | R = 52 |
$\ge 1800$ | $\begin{array}{c}O=6\hfill \\ E=19.68\hfill \end{array}$ | $\begin{array}{c}O=24\hfill \\ E=17.28\hfill \end{array}$ | $\begin{array}{c}O=18\hfill \\ E=11.04\hfill \end{array}$ | R = 48 | |
Column Total | C = 41 | C = 36 | C = 23 | n = 100 |
The test statistic is
$$\begin{array}{ccc}{\chi}^{2}\hfill & =& {\mathrm{\Sigma}}^{\text{}}\frac{{(O-E)}^{2}}{E}\hfill \\ \hfill & =& \frac{{(35-21.32)}^{2}}{21.32}+\frac{{(12-18.72)}^{2}}{18.72}+\frac{{(5-11.96)}^{2}}{11.96}\hfill \\ \hfill & \hfill & \hfill +\frac{{(6-19.68)}^{2}}{19.68}+\frac{{(24-17.28)}^{2}}{17.28}+\frac{{(18-11.04)}^{2}}{11.04}& \\ \hfill & =& 31.75\hfill \end{array}$$Step 4. Since the CEE factor has two levels and the GPA factor has three, I = 2 and J = 3. Thus the test statistic follows the chi-square distribution with $df=\left(2-1\right)\times \left(3-1\right)=2$ degrees of freedom.
Since the test is right-tailed, the critical value is ${\chi}_{0.01}^{2}.$ Reading from Figure 12.4 "Critical Values of Chi-Square Distributions", ${\chi}_{0.01}^{2}=9.210$, so the rejection region is $\left[9.210,\infty \right).$
Figure 11.4 Note 11.9 "Example 1"
Find ${\chi}_{0.01}^{2}$ for each of the following number of degrees of freedom.
Find ${\chi}_{0.05}^{2}$ for each of the following number of degrees of freedom.
Find ${\chi}_{0.10}^{2}$ for each of the following number of degrees of freedom.
Find ${\chi}_{0.01}^{2}$ for each of the following number of degrees of freedom.
For $df=7$ and $\alpha =0.05$, find
For $df=17$ and $\alpha =0.01$, find
A data sample is sorted into a 2 × 2 contingency table based on two factors, each of which has two levels.
Factor 1 | ||||
---|---|---|---|---|
Level 1 | Level 2 | Row Total | ||
Factor 2 | Level 1 | $\begin{array}{c}20\hfill \end{array}$ | $\begin{array}{c}10\hfill \end{array}$ | R |
Level 2 | $\begin{array}{c}15\hfill \end{array}$ | $\begin{array}{c}5\hfill \end{array}$ | R | |
Column Total | C | C | n |
A data sample is sorted into a 3 × 2 contingency table based on two factors, one of which has three levels and the other of which has two levels.
Factor 1 | ||||
---|---|---|---|---|
Level 1 | Level 2 | Row Total | ||
Factor 2 | Level 1 | $\begin{array}{c}20\hfill \end{array}$ | $\begin{array}{c}10\hfill \end{array}$ | R |
Level 2 | $\begin{array}{c}15\hfill \end{array}$ | $\begin{array}{c}5\hfill \end{array}$ | R | |
Level 3 | $\begin{array}{c}10\hfill \end{array}$ | $\begin{array}{c}20\hfill \end{array}$ | R | |
Column Total | C | C | n |
A child psychologist believes that children perform better on tests when they are given perceived freedom of choice. To test this belief, the psychologist carried out an experiment in which 200 third graders were randomly assigned to two groups, A and B. Each child was given the same simple logic test. However in group B, each child was given the freedom to choose a text booklet from many with various drawings on the covers. The performance of each child was rated as Very Good, Good, and Fair. The results are summarized in the table provided. Test, at the 5% level of significance, whether there is sufficient evidence in the data to support the psychologist’s belief.
Group | |||
---|---|---|---|
A | B | ||
Performance | Very Good | 32 | 29 |
Good | 55 | 61 | |
Fair | 10 | 13 |
In regard to wine tasting competitions, many experts claim that the first glass of wine served sets a reference taste and that a different reference wine may alter the relative ranking of the other wines in competition. To test this claim, three wines, A, B and C, were served at a wine tasting event. Each person was served a single glass of each wine, but in different orders for different guests. At the close, each person was asked to name the best of the three. One hundred seventy-two people were at the event and their top picks are given in the table provided. Test, at the 1% level of significance, whether there is sufficient evidence in the data to support the claim that wine experts’ preference is dependent on the first served wine.
Top Pick | ||||
---|---|---|---|---|
A | B | C | ||
First Glass | A | 12 | 31 | 27 |
B | 15 | 40 | 21 | |
C | 10 | 9 | 7 |
Is being left-handed hereditary? To answer this question, 250 adults are randomly selected and their handedness and their parents’ handedness are noted. The results are summarized in the table provided. Test, at the 1% level of significance, whether there is sufficient evidence in the data to conclude that there is a hereditary element in handedness.
Number of Parents Left-Handed | ||||
---|---|---|---|---|
0 | 1 | 2 | ||
Handedness | Left | 8 | 10 | 12 |
Right | 178 | 21 | 21 |
Some geneticists claim that the genes that determine left-handedness also govern development of the language centers of the brain. If this claim is true, then it would be reasonable to expect that left-handed people tend to have stronger language abilities. A study designed to text this claim randomly selected 807 students who took the Graduate Record Examination (GRE). Their scores on the language portion of the examination were classified into three categories: low, average, and high, and their handedness was also noted. The results are given in the table provided. Test, at the 5% level of significance, whether there is sufficient evidence in the data to conclude that left-handed people tend to have stronger language abilities.
GRE English Scores | ||||
---|---|---|---|---|
Low | Average | High | ||
Handedness | Left | 18 | 40 | 22 |
Right | 201 | 360 | 166 |
It is generally believed that children brought up in stable families tend to do well in school. To verify such a belief, a social scientist examined 290 randomly selected students’ records in a public high school and noted each student’s family structure and academic status four years after entering high school. The data were then sorted into a 2 × 3 contingency table with two factors. Factor 1 has two levels: graduated and did not graduate. Factor 2 has three levels: no parent, one parent, and two parents. The results are given in the table provided. Test, at the 1% level of significance, whether there is sufficient evidence in the data to conclude that family structure matters in school performance of the students.
Academic Status | |||
---|---|---|---|
Graduated | Did Not Graduate | ||
Family | No parent | 18 | 31 |
One parent | 101 | 44 | |
Two parents | 70 | 26 |
A large middle school administrator wishes to use celebrity influence to encourage students to make healthier choices in the school cafeteria. The cafeteria is situated at the center of an open space. Everyday at lunch time students get their lunch and a drink in three separate lines leading to three separate serving stations. As an experiment, the school administrator displayed a poster of a popular teen pop star drinking milk at each of the three areas where drinks are provided, except the milk in the poster is different at each location: one shows white milk, one shows strawberry-flavored pink milk, and one shows chocolate milk. After the first day of the experiment the administrator noted the students’ milk choices separately for the three lines. The data are given in the table provided. Test, at the 1% level of significance, whether there is sufficient evidence in the data to conclude that the posters had some impact on the students’ drink choices.
Student Choice | |||
---|---|---|---|
Regular | Strawberry | Chocolate | |
Poster Choice | |||
Regular | 38 | 28 | 40 |
Strawberry | 18 | 51 | 24 |
Chocolate | 32 | 32 | 53 |
Large Data Set 8 records the result of a survey of 300 randomly selected adults who go to movie theaters regularly. For each person the gender and preferred type of movie were recorded. Test, at the 5% level of significance, whether there is sufficient evidence in the data to conclude that the factors “gender” and “preferred type of movie” are dependent.
http://www.gone.2012books.lardbucket.org/sites/all/files/data8.xls
${\chi}^{2}=0.6698$, ${\chi}_{0.05}^{2}=5.99$, do not reject H_{0}
${\chi}^{2}=72.35$, ${\chi}_{0.01}^{2}=9.21$, reject H_{0}
${\chi}^{2}=21.2784$, ${\chi}_{0.01}^{2}=9.21$, reject H_{0}
${\chi}^{2}=28.4539.$ $df=3.$ Rejection Region: $\left[7.815,\infty \right).$ Decision: Reject H_{0} of independence.