# The two-way table summarizes data on the gender and eye color of students in a college statistics class.

Question
Two-way tables

The two-way table summarizes data on the gender and eye color of students in a college statistics class. Imagine choosing a student from the class at random. Define event A: student is male and event B: student has blue eyes.
$$\begin{array}{c|cc|c} &\text{Male}&\text{Female}&\text{Total}\\ \hline \text{Blue}&&&10\\ \text{Brown}&&&40\\ \hline \text{Total}&20&30&50 \end{array}$$
Copy and complete the two-way table so that events A and B are mutually exclusive.

2020-11-10

Given
$$\begin{array}{c|cc|c} &\text{Male}&\text{Female}&\text{Total}\\ \hline \text{Blue}&&&10\\ \text{Brown}&&&40\\ \hline \text{Total}&20&30&50 \end{array}$$
A=Male B=Blue eyes
Two events are disjoint or mutually exclusive, if the events cannot occur at the same time.
In this case, events A and B are mutually exclusive, which then implies that there are no males with blue eyes and thus we need to enter 0 in the row Blue” and in the column ”Male” of the given table.
The remaining counts can then be determined using the row/column totals
$$\begin{array}{c|cc|c} &\text{Male}&\text{Female}&\text{Total}\\ \hline \text{Blue}&0&10-0=10&10\\ \text{Brown}&20-0=20&30-10=20&40\\ \hline \text{Total}&20&30&50 \end{array}$$
Result:
$$\begin{array}{c|cc|c} &\text{Male}&\text{Female}&\text{Total}\\ \hline \text{Blue}&0&10&10\\ \text{Brown}&20&20&40\\ \hline \text{Total}&20&30&50 \end{array}$$

### Relevant Questions

A random sample of 88 U.S. 11th- and 12th-graders was selected. The two-way table summarizes the gender of the students and their response to the question "Do you have allergies?" Suppose we choose a student from this group at random.

$$\begin{array}{c|cc|c} & \text { Female } & \text { Male } & \text { Total } \\ \hline \text{ Yes } & 19 & 15 & 34 \\ \text{ No } & 24 & 30 & 54 \\ \hline \text{ Total } & 43 & 45 & 88\\ \end{array}$$
What is the probability that the student is female or has allergies?
$$(a)\frac{19}{88}$$
(b)$$\frac{39}{88}$$
(c)$$\frac{58}{88}$$
(d)$$\frac{77}{88}$$

Statistics students at a state college compiled the following two-way table from a sample of randomly selected students at their college:
$$\begin{array}{|c|c|c|}\hline&\text{Play chess}&\text{Don`t play chess}\\\hline \text{Male students} &25&162\\ \hline \text{Female students}&19&148 \\ \hline \end{array}\\$$
Answer the following questions about the table. Be sure to show any calculations.
What question about the population of students at the state college would this table attempt to answer?
State $$H^0$$ and $$H^1$$ for the test related to this table.

The accompanying two-way table was constructed using data in the article “Television Viewing and Physical Fitness in Adults” (Research Quarterly for Exercise and Sport, 1990: 315–320). The author hoped to determine whether time spent watching television is associated with cardiovascular fitness. Subjects were asked about their television-viewing habits and were classified as physically fit if they scored in the excellent or very good category on a step test. We include MINITAB output from a chi-squared analysis. The four TV groups corresponded to different amounts of time per day spent watching TV (0, 1–2, 3–4, or 5 or more hours). The 168 individuals represented in the first column were those judged physically fit. Expected counts appear below observed counts, and MINITAB displays the contribution to $$\displaystyle{x}^{{{2}}}$$ from each cell.
State and test the appropriate hypotheses using $$\displaystyle\alpha={0.05}$$
$$\begin{array}{|c|c|}\hline & 1 & 2 & Total \\ \hline 1 & 35 & 147 & 182 \\ \hline & 25.48 & 156.52 & \\ \hline 2 & 101 & 629 & 730 \\ \hline & 102.20 & 627.80 & \\ \hline 3 & 28 & 222 & 250 \\ \hline & 35.00 & 215.00 & \\ \hline 4 & 4 & 34 & 38 \\ \hline & 5.32 & 32.68 & \\ \hline Total & 168 & 1032 & 1200 \\ \hline \end{array}$$
$$Chisq= 3.557\ +\ 0.579\ +\ 0.014\ +\ 0.002\ +\ 1.400\ +\ 0.228\ +\ 0.328\ +\ 0.053=6.161$$
$$\displaystyle{d}{f}={3}$$

A study among the Piria Indians of Arizona investigated the relationship between a mother's diabetic status and the number of birth defects in her children. The results appear in the two-way table. $$\text{Diabetic status}\ \begin{array}{ll|c|c|c} && \text { Nondiabetic } & \text { Prediabetic } & \text { Diabetic } \\ \hline & \text { None } & 754 & 362 & 38 \\ \hline & \text { One or more } & 31 & 13 & 9 \end{array}$$

What proportion of the women in this study had a child with one or more birth defects?

The two-way table below describes the members of the U.S Senate in a recent year.
$$\begin{array}{ccc} \hline &\text{Male}&\text{Female}\\ \text{Democrats}&47&13\\ \text{Republicans}&36&4\\ \hline \end{array}$$
If we select a U.S. senator at random, what's the probability that the senator is a Democrat?

The following two-way contingency table gives the breakdown of the population of adults in a town according to their highest level of education and whether or not they regularly take vitamins:
$$\begin{array}{|c|c|c|c|c|} \hline \text {Education}& \text {Use of vitamins takes} &\text{Does not take}\\ \hline \text {No High School Diploma} & 0.03 & 0.07 \\ \hline \text{High School Diploma} & 0.11 & 0.39 \\ \hline \text {Undergraduate Degree} & 0.09 & 0.27 \\ \hline \text {Graduate Degree} & 0.02 & 0.02 \\ \hline \end{array}$$
You select a person at random. What is the probability the person does not take vitamins regularly?

The two-way table shows the results from a survey of dog and cat owners about whether their pet prefers dry food or wet food.
$$\begin{array}{c|c|c} &\text { Dry } & \text { Wet }\\ \hline \text{ Cats } & 10&30 \\ \hline \text{ Dogs} & 20&20\\ \end{array}$$
Does the two-way table show any difference in preferences between dogs and cats? Explain.

Bayes' Theorem is given by $$P(A|B) = \frac{P(B|A) \cdot P(A)} {P(B)}$$. Use a two-way table to write an example of Bayes' Theorem.

Researchers carried out a survey of fourth-, fifth-, and sixth-grade students in Michigan. Students were asked whether good grades, athletic ability, or being popular was most important to them. This two-way table summarizes the survey data.

$$\begin{array} {|c|} & Grade \ Most important & \begin{array}{l|c|c|c|c} & \begin{array}{c} 4 \mathrm{th} \ grade \end{array} & \begin{array}{c} 5 \mathrm{th} \ \text { grade } \end{array} & \begin{array}{c} 6 \mathrm{th} \ grade \end{array} & Total \\ \hline Grades & 49 & 50 & 69 & 168 \\ \hline Athletic & 24 & 36 & 38 & 98 \\ \hline Popular & 19 & 22 & 28 & 69 \\ \hline Total & 92 & 108 & 135 & 335 \end{array} \ \end{array}$$

Suppose we select one of these students at random. What's the probability that: The student is a sixth grader or a student who rated good grades as important?

$$\begin{array} {c|ccc|c} & \text { Elite } & \text { Non-elite } & \text {Did not play } & \text { Total } \\ \hline \text { Yes } & 10 & 9 & 24 & 43 \\ \text { No } & 61 & 206 & 548 & 815 \\ \hline \text { Total } & 71 & 215 & 572 & 858 \end{array}$$