GeometryProbability3 of 5
Probability · 3

Two-Way Tables and Conditional Probability

When we ask a group of people two questions at once, a two-way table organizes their answers into a grid so we can see how the categories overlap and find probabilities.

1

Reading a Two-Way Table

A two-way table splits a group by one question across the rows and a second question down the columns, separating the overlap counts inside the grid from the single-category totals outside on the margins.

Joint and Marginal Frequencies in a Two-Way Table
100100
Coffee?\text{Coffee?}
8 hours of sleep?\text{8 hours of sleep?}
Rested\text{Rested}
Tired\text{Tired}
Total\text{Total}
Coffee\text{Coffee}
12\both{12}
48\both{48}
60\total{60}
No Coffee\text{No Coffee}
18\both{18}
22\both{22}
40\total{40}
Total\text{Total}
30\total{30}
70\total{70}
100\total{100}
Joint frequencies\both{\text{Joint frequencies}}
(both categories true)\both{\text{(both categories true)}}
Marginal frequencies\total{\text{Marginal frequencies}}
(single-category totals)\total{\text{(single-category totals)}}

Adding the inner overlap boxes across any row or down any column gives that category's marginal total, and both the row totals and the column totals add up to the whole room in the bottom-right corner:

60⏟Coffee+40⏟No Coffee=10030⏟Rested+70⏟Tired=100\displaystyle \begin{aligned}\underbrace{\total{60}}_{\text{Coffee}} + \underbrace{\total{40}}_{\text{No Coffee}} &= \total{100} \\ \underbrace{\total{30}}_{\text{Rested}} + \underbrace{\total{70}}_{\text{Tired}} &= \total{100}\end{aligned}
2

Finding Missing Numbers in a Two-Way Table

When a two-way table gives you only a few entries and leaves the rest blank, how do we find all the missing numbers?

Finding Missing Numbers in a Two-Way Table
Instrument\text{Instrument}
No\text{No}
Instrument\text{Instrument}
Total\text{Total}
Sport\text{Sport}
35\both{35}
50\total{50}
No Sport\text{No Sport}
12\both{12}
Total\text{Total}
80\total{80}
Instrument\text{Instrument}
No\text{No}
Instrument\text{Instrument}
Total\text{Total}
Sport\text{Sport}
15\both{15}
35\both{35}
50\total{50}
No Sport\text{No Sport}
12\both{12}
18\both{18}
30\total{30}
Total\text{Total}
27\total{27}
53\total{53}
80\total{80}
given\text{given}
Text solution
Fill in the Sport row and Instrument columnThe Sport row is only missing one number, so subtract from the row total of 50\total{50} to find the overlap, then add down the Instrument column.
Sport andInstrument=50−35=15Instrument total=15+12=27\displaystyle \begin{aligned}\text{Sport and} \\ \text{Instrument} &= \total{50} - \both{35} = \both{15} \\ \text{Instrument total} &= \both{15} + \both{12} = \total{27}\end{aligned}
Fill in the Total column and No Sport rowSubtract the 50\total{50} sport players from the 80\total{80} total students to get the No Sport row total, then subtract across the No Sport row.
No Sport total=80−50=30No Sport andNo Instrument=30−12=18\displaystyle \begin{aligned}\text{No Sport total} &= \total{80} - \total{50} = \total{30} \\ \text{No Sport and} \\ \text{No Instrument} &= \total{30} - \both{12} = \both{18}\end{aligned}
Add the No Instrument column and check the grand totalAdd down the No Instrument column and check that the two column totals add up to 80\total{80}.
No Instrumenttotal=35+18=5327+53=80\displaystyle \begin{aligned}\text{No Instrument} \\ \text{total} &= \both{35} + \both{18} = \total{53} \\ \total{27} + \total{53} &= \total{80}\end{aligned}

So all nine boxes of the table are filled, with 27\total{27} instrument players and 53\total{53} non-instrument players totaling 80\total{80} students.

3

Conditional Probability: Shrinking the Universe

Now let's use the Coffee and Sleep table to find probabilities, starting with a person picked at random from the whole room and seeing how the fraction changes when we are given a clue about who was picked.

Conditional Probability: Shrinking the Universe
Rested\asked{\text{Rested}}
Tired\text{Tired}
Total\text{Total}
Coffee\cond{\text{Coffee}}
12\both{12}
48\both{48}
60\cond{60}
No Coffee\text{No Coffee}
18\both{18}
22\both{22}
40\total{40}
Total\text{Total}
30\asked{30}
70\total{70}
100\total{100}
P(Coffee)=  ?P(\cond{\text{Coffee}}) = \;?
Text solution
Pick from the whole roomWhen anyone in the room can be chosen, the grand total of 100\total{100} goes on the bottom of the fraction, and the group we want goes on top.
P(Coffee)=Coffee row totalwhole room=60100=60%P(Coffee and Rested)=overlap boxwhole room=12100=12%\displaystyle \begin{aligned}&P(\cond{\text{Coffee}}) \\ &\quad= \frac{\cond{\text{Coffee row total}}}{\total{\text{whole room}}} \\ &\quad= \frac{\cond{60}}{\total{100}} = 60\% \\[6pt] &P(\cond{\text{Coffee}}\text{ and }\asked{\text{Rested}}) \\ &\quad= \frac{\both{\text{overlap box}}}{\total{\text{whole room}}} \\ &\quad= \frac{\both{12}}{\total{100}} = 12\%\end{aligned}
Shrink the universe to the Coffee rowOnce we know the person drank coffee, the No Coffee row is crossed out, locking us into the 60\cond{60} coffee drinkers on the bottom with 12\both{12} rested people inside that row on top.
Coffee and RestedCoffee row total\displaystyle \frac{\cond{\text{Coffee}}\text{ and }\asked{\text{Rested}}}{\cond{\text{Coffee row total}}} =1260\displaystyle = \frac{\both{12}}{\cond{60}} =15\displaystyle = \frac{1}{5} =20%\displaystyle = 20\%

So a person picked from the whole room has a 12%12\% chance of being a rested coffee drinker, while a person we already know drank coffee has a 20%20\% chance of being rested.

4

Swapping the Condition: Row vs. Column Universe

What happens when a question uses the exact same two categories, Coffee and Rested, but swaps which one is the clue we know and which one we are looking for?

Swapping the Condition: Row vs. Column Universe
Rested\asked{\text{Rested}}
Tired\text{Tired}
Total\text{Total}
Coffee\cond{\text{Coffee}}
12\both{12}
48\both{48}
60\cond{60}
No Coffee\text{No Coffee}
18\both{18}
22\both{22}
40\total{40}
Total\text{Total}
30\asked{30}
70\total{70}
100\total{100}
P(Rested given Coffee)=  ?P(Coffee given Rested)=  ?\begin{aligned}P(\asked{\text{Rested}}\text{ given }\cond{\text{Coffee}}) &= \;?\\[2pt] P(\cond{\text{Coffee}}\text{ given }\asked{\text{Rested}}) &= \;?\end{aligned}
Text solution
Lock into the Coffee rowWhen the clue is that the person drank coffee, the Coffee row total of 60\cond{60} goes on the bottom and the overlap box of 12\both{12} goes on top.
Rested given Coffee\displaystyle \asked{\text{Rested}}\text{ given }\cond{\text{Coffee}} =1260\displaystyle = \frac{\both{12}}{\cond{60}} =15\displaystyle = \frac{1}{5} =20%\displaystyle = 20\%
Lock into the Rested columnWhen the clue is that the person is rested, cross out the Tired column so the Rested column total of 30\asked{30} goes on the bottom while the same overlap box of 12\both{12} stays on top.
Coffee given Rested\displaystyle \cond{\text{Coffee}}\text{ given }\asked{\text{Rested}} =1230\displaystyle = \frac{\both{12}}{\asked{30}} =25\displaystyle = \frac{2}{5} =40%\displaystyle = 40\%

So both questions count the exact same 12\both{12} rested coffee drinkers on top, but 12\both{12} out of 60\cond{60} coffee drinkers is 20%20\%, while 12\both{12} out of 30\asked{30} rested people is 40%40\%.

In the Coffee and Sleep table, the overlap of 12\both{12} rested coffee drinkers stays on top of the fraction whether we pick from the whole room, the Coffee row, or the Rested column, while the denominator changes to match whichever universe the clue locks us into.

The same 12 rested coffee drinkers stay on top of the fraction, while changing the clue swaps which total goes on the bottom.
5

Conditional Probability Notation and Formula

Instead of writing out a full sentence for a conditional probability, we write a vertical bar ∣\mid to stand for the word "given."

Conditional Probability Notation and Formula
P(Rested∣Coffee)\displaystyle P(\asked{\text{Rested}} \mid \cond{\text{Coffee}}) =  ?\displaystyle = \;?

The vertical bar ∣\mid is not a division sign; it reads "given" and separates what you are looking for from the clue you already know:

P(Rested⏟what youwant  ∣  Coffee⏟the universeyou’re locked in)\displaystyle P\Big(\underbrace{\asked{\text{Rested}}}_{\substack{\text{what you} \\ \text{want}}} \;\Big|\; \underbrace{\cond{\text{Coffee}}}_{\substack{\text{the universe} \\ \text{you're locked in}}}\Big) =1260\displaystyle = \frac{\both{12}}{\cond{60}}

When a problem gives probabilities or percentages of the whole room instead of counts of people, dividing the probability of the overlap by the probability of the condition cancels the out-of-100\total{100} parts and gives the same fraction:

P(A∣B)\displaystyle P(\asked{A} \mid \cond{B}) =P(A and B)⏞probability of the overlapP(B)⏟probability of condition B\displaystyle = \frac{\overbrace{P(\asked{A} \text{ and } \cond{B})}^{\text{probability of the overlap}}}{\underbrace{P(\cond{B})}_{\text{probability of condition } \cond{B}}} =1210060100\displaystyle = \frac{\tfrac{\both{12}}{\total{100}}}{\tfrac{\cond{60}}{\total{100}}} =1260\displaystyle = \frac{\both{12}}{\cond{60}}
6

Word Problems Without a Table

Sometimes a problem gives you a paragraph of numbers with no table drawn, and we have to decide whether we can build the fraction right away or need to sketch a 2-by-2 grid first.

Conditional Probability Word Problems Without a Table
License:70%License and Job:25%\displaystyle \begin{array}{rl}\cond{\text{License:}} & \cond{70\%}\\ \both{\text{License and Job:}} & \both{25\%}\end{array}
P(Job∣License)\displaystyle P(\asked{\text{Job}} \mid \cond{\text{License}}) =  ?\displaystyle = \;?

First, here is the high school problem, where 70%\cond{70\%} of students have a driver's license and 25%\both{25\%} have both a driver's license and a part-time job, and we want the probability that a student with a driver's license has a part-time job.

Text solution
Divide the overlap percentage by the given License percentageBecause the problem already gives us the universe after the bar (70%\cond{70\%} with a license) and the overlap (25%\both{25\%} with both), we put them straight into the fraction.
P(Job∣License)\displaystyle P(\asked{\text{Job}} \mid \cond{\text{License}}) =25%70%\displaystyle = \frac{\both{25\%}}{\cond{70\%}} =0.250.70\displaystyle = \frac{\both{0.25}}{\cond{0.70}} =2570\displaystyle = \frac{\both{25}}{\cond{70}} =514\displaystyle = \frac{5}{14}

So a student with a driver's license has a 514\frac{5}{14} chance of having a part-time job.

Now for the field trip problem: out of 120\total{120} students, 70\total{70} brought a jacket, 45\asked{45} brought an umbrella, and 30\both{30} brought both, and we want P(Umbrella∣No Jacket){P(\asked{\text{Umbrella}} \mid \cond{\text{No Jacket}})}.

Umbrella\asked{\text{Umbrella}}
No\text{No}
Umbrella\text{Umbrella}
Total\text{Total}
Jacket\text{Jacket}
30\both{30}
40\both{40}
70\total{70}
No Jacket\cond{\text{No Jacket}}
15\both{15}
35\both{35}
50\cond{50}
Total\text{Total}
45\asked{45}
75\total{75}
120\total{120}
given\text{given}
Text solution
Put the four given numbers into a 2-by-2 grid and subtract to find the No Jacket rowSubtract the 70\total{70} students who brought a jacket from the 120\total{120} total students to get the No Jacket row total, and subtract the 30\both{30} students with both from the 45\asked{45} students who brought an umbrella to find the overlap.
No Jacket total=120−70=50No Jacket andUmbrella=45−30=15\displaystyle \begin{aligned}\cond{\text{No Jacket total}} &= \total{120} - \total{70} = \cond{50} \\ \cond{\text{No Jacket}}\text{ and} \\ \asked{\text{Umbrella}} &= \asked{45} - \both{30} = \both{15}\end{aligned}
Read the fraction off the No Jacket rowPut the No Jacket row total of 50\cond{50} on the bottom and the 15\both{15} students in that row who brought an umbrella on top.
P(Umbrella∣No Jacket)\displaystyle P(\asked{\text{Umbrella}} \mid \cond{\text{No Jacket}}) =1550\displaystyle = \frac{\both{15}}{\cond{50}} =310\displaystyle = \frac{3}{10} =30%\displaystyle = 30\%

So 30%30\% of the students who did not bring a jacket brought an umbrella.

7

Testing for Independence on a Two-Way Table

Two categories are independent when knowing that one happened does not change the probability of the other, so we can test for independence on a table by checking whether zooming into a row or column changes the percentage.

Testing for Independence on a Two-Way Table
Rested\asked{\text{Rested}}
Tired\text{Tired}
Total\text{Total}
Coffee\cond{\text{Coffee}}
12\both{12}
48\both{48}
60\cond{60}
No Coffee\text{No Coffee}
18\both{18}
22\both{22}
40\total{40}
Total\text{Total}
30\asked{30}
70\total{70}
100\total{100}
Are Coffee and Rested independent?\text{Are }\cond{\text{Coffee}}\text{ and }\asked{\text{Rested}}\text{ independent?}
Text solution
Find the probability in the whole roomOut of all 100\total{100} people in the room, 30\asked{30} are rested.
P(Rested)\displaystyle P(\asked{\text{Rested}}) =30100\displaystyle = \frac{\asked{30}}{\total{100}} =30%\displaystyle = 30\%
Zoom into the Coffee row and compare percentagesInside the Coffee row of 60\cond{60} people, only 12\both{12} are rested.
P(Rested∣Coffee)\displaystyle P(\asked{\text{Rested}} \mid \cond{\text{Coffee}}) =1260\displaystyle = \frac{\both{12}}{\cond{60}} =20%\displaystyle = 20\%
P(A)=P(A∣B)⏟same percentage: independentP(A)≠P(A∣B)⏟changed percentage: dependent\displaystyle \begin{gathered}\underbrace{P(\asked{A}) = P(\asked{A} \mid \cond{B})}_{\text{same percentage: independent}} \\[10pt] \underbrace{P(\asked{A}) \neq P(\asked{A} \mid \cond{B})}_{\text{changed percentage: dependent}}\end{gathered}

Because zooming into the Coffee row changes the chance of being rested from 30%30\% to 20%20\%, drinking coffee and being rested are dependent.

With 60\cond{60} coffee drinkers, 40\total{40} non-coffee drinkers, and 30\asked{30} rested people in the room, how would those 30\asked{30} rested people have to split between the two rows for the categories to be independent? The row percentage stays at the whole room's 30%30\% only when 30%30\% of the 60\cond{60} coffee drinkers (18\both{18} people) and 30%30\% of the 40\total{40} non-coffee drinkers (12\both{12} people) are rested.

Zooming into the Coffee row keeps the Rested percentage the same only when the rested people are split in the same ratio as the rows.

Key concepts

For someone picked at random, a probability from a two-way table is the number in the group you want divided by the total number you are picking from. Before you write a fraction, check whether the problem gives you a condition:

No condition given (whole-room universe)

When you pick at random from everyone, the grand total goes on the bottom. In our 100\total{100}-person room, P(Coffee)=60100=60%P(\cond{\text{Coffee}}) = \frac{\cond{60}}{\total{100}} = 60\% uses the margin total, and P(Coffee and Rested)=12100=12%P(\cond{\text{Coffee}}\text{ and }\asked{\text{Rested}}) = \frac{\both{12}}{\total{100}} = 12\% uses the inner overlap box, both over 100\total{100}. Do not shrink the denominator unless a clue locks you into one group.

Condition given (shrunk universe)

In P(A∣B){P(\asked{A} \mid \cond{B})}, read after the vertical bar first. Cross out everything outside B\cond{B} so the total for B\cond{B} goes on the bottom and the overlap of A and B\asked{A} \text{ and } \cond{B} goes on top:

P(Rested∣Coffee)=P(Rested and Coffee)P(Coffee)=1260=20%,whileP(Coffee∣Rested)=1230=40%\displaystyle \begin{aligned}&P(\asked{\text{Rested}} \mid \cond{\text{Coffee}}) \\ &\quad= \frac{P(\asked{\text{Rested}}\text{ and }\cond{\text{Coffee}})}{P(\cond{\text{Coffee}})} \\ &\quad= \frac{\both{12}}{\cond{60}} = 20\%, \\[4pt] &\text{while} \quad P(\cond{\text{Coffee}} \mid \asked{\text{Rested}}) \\ &\quad= \frac{\both{12}}{\asked{30}} = 40\%\end{aligned}

Word problems without a table

If the paragraph already gives you P(B)P(\cond{B}) and P(A and B)P(\asked{A} \text{ and } \cond{B}), divide them right away (25%70%=514\frac{\both{25\%}}{\cond{70\%}} = \frac{5}{14}). If the condition or the group you want is a "not" category missing from the text, like P(Umbrella∣No Jacket){P(\asked{\text{Umbrella}} \mid \cond{\text{No Jacket}})}, put the four given numbers into a 2-by-2 grid and subtract to find the missing row or column first.

Testing for independence

Compare the probability in the whole room, P(A)P(\asked{A}), with the probability zoomed into one row or column, P(A∣B){P(\asked{A} \mid \cond{B})}. If the percentage changes (P(Rested)=30%P(\asked{\text{Rested}}) = 30\% vs. P(Rested∣Coffee)=20%{P(\asked{\text{Rested}} \mid \cond{\text{Coffee}})} = 20\%), the categories are dependent; if the percentage stays the exact same (30%30\% of the 60\cond{60} coffee drinkers gives 0.30×60=180.30 \times \cond{60} = \both{18} rested coffee drinkers), they are independent.

8

Practice

1

A theater surveys 150150 moviegoers on whether they bought popcorn and whether they bought a drink. Out of 9090 people who bought popcorn, 5454 bought a drink and 3636 bought no drink. Out of 6060 people who bought no popcorn, 2626 bought a drink and 3434 bought no drink. (a) If you pick one of the 150150 surveyed moviegoers at random, what is the probability they bought both popcorn and a drink? (b) If you know the moviegoer bought popcorn, what is the probability they bought a drink?

In (a), who is the total universe you are picking from? In (b), which group does the clue lock you inside?

In (a), we pick from all 150\total{150} surveyed moviegoers, with 54\both{54} in the overlap box who bought both (don't shrink the bottom to the 90\cond{90} popcorn buyers yet, which would give 60%60\%). In (b), knowing they bought popcorn locks us into the 90\cond{90} popcorn buyers on the bottom (don't leave 150\total{150} on the bottom to get 36%36\%, or use the 54+26=80\both{54} + \both{26} = \asked{80} total drink buyers on the bottom to get 67.5%67.5\%). (a) 54150=925=36%\tfrac{\both{54}}{\total{150}} = \tfrac{9}{25} = 36\%. (b) 5490=35=60%\tfrac{\both{54}}{\cond{90}} = \tfrac{3}{5} = 60\%.
2

An animal shelter has 100100 dogs grouped by age and coat length. Among 2525 puppies, 2020 have short hair and 55 have long hair. Among 7575 adult dogs, 4040 have short hair and 3535 have long hair. That makes 6060 short-haired dogs and 4040 long-haired dogs in total. Find P(Short Hair∣Puppy){P(\text{Short Hair} \mid \text{Puppy})} and P(Puppy∣Short Hair){P(\text{Puppy} \mid \text{Short Hair})}.

Look after the vertical bar first in each question: what is the total for the Puppy group, and what is the total for the Short Hair group?

Both fractions have the same overlap of 20\both{20} short-haired puppies on top, and the category after the bar sets the denominator (watch out for putting the grand total of 100\total{100} on the bottom to get 20%20\%, or swapping the two denominators to get 2060\tfrac{\both{20}}{\asked{60}} and 2025\tfrac{\both{20}}{\cond{25}}). P(Short Hair∣Puppy)=2025=45=80%{P(\asked{\text{Short Hair}} \mid \cond{\text{Puppy}})} = \tfrac{\both{20}}{\cond{25}} = \tfrac{4}{5} = 80\%, and P(Puppy∣Short Hair)=2060=13≈33.3%{P(\cond{\text{Puppy}} \mid \asked{\text{Short Hair}})} = \tfrac{\both{20}}{\asked{60}} = \tfrac{1}{3} \approx 33.3\%.
3

A survey of 9090 students asks whether they are in Chorus and whether they are in Band. You are given only four numbers: 4040 students are in Chorus in total, 2828 are in Chorus and No Band, 1818 are in No Chorus and Band, and 9090 students were surveyed in all. Fill in the missing table entries to find P(No Band∣No Chorus){P(\text{No Band} \mid \text{No Chorus})}.

Put the four given numbers into a 2-by-2 grid: how many of the 9090 students are in the No Chorus row in total, and how many of that row are in No Band?

In the Total column, the No Chorus row total is 90−40=50\total{90} - \total{40} = \cond{50}, and inside the No Chorus row, No Band is 50−18=32\cond{50} - \both{18} = \both{32} (don't take 2840=70%\tfrac{\both{28}}{\total{40}} = 70\% from the given Chorus numbers without drawing the grid, and don't divide 32\both{32} by the grand total of 90\total{90} to get 35.6%35.6\%). 3250=1625=64%\tfrac{\both{32}}{\cond{50}} = \tfrac{16}{25} = 64\%.
4

At an airport, 60%60\% of passengers check a bag, 45%45\% of passengers have a window seat, and 15%15\% of all passengers both check a bag and have a window seat. If you pick a passenger who checked a bag, what is the probability that they have a window seat?

Which category is the clue you already know about the passenger, and what is the overlap percentage?

The clue we know is that the passenger checked a bag (60%\cond{60\%}), which goes on the bottom, and the 15%\both{15\%} who both checked a bag and have a window seat goes on top (don't divide by the 45%\asked{45\%} with a window seat to get 15%45%≈33.3%\tfrac{\both{15\%}}{\asked{45\%}} \approx 33.3\%, since 45%\asked{45\%} is the group we are asking about, not the given universe). 15%60%=1560=14=25%\tfrac{\both{15\%}}{\cond{60\%}} = \tfrac{\both{15}}{\cond{60}} = \tfrac{1}{4} = 25\%.
5

Out of 140140 guests at a hotel, 9090 used the pool. 6060 guests ate the hotel breakfast, and 4242 of those guests also used the pool. If you pick a guest who did NOT eat breakfast, what is the probability that they did NOT use the pool?

Put the four numbers into a 2-by-2 grid with Breakfast / No Breakfast and Pool / No Pool, then subtract to fill in the No Breakfast row.

Putting the numbers in a grid gives 140−60=80\total{140} - \total{60} = \cond{80} guests in the No Breakfast row, 90−42=48\total{90} - \both{42} = \both{48} guests in No Breakfast and Pool, and 80−48=32\cond{80} - \both{48} = \both{32} guests in No Breakfast and No Pool (don't use the 48\both{48} pool users who didn't eat breakfast on top to get 4880=60%\tfrac{\both{48}}{\cond{80}} = 60\%, or subtract the 42\both{42} overlap guests from 140\total{140} to get 98140=70%\tfrac{98}{\total{140}} = 70\%). 3280=25=40%\tfrac{\both{32}}{\cond{80}} = \tfrac{2}{5} = 40\%.
6

A survey of 200200 commuters records how they get to work and whether they arrive on time. Among 8080 train riders, 6868 arrive on time and 1212 arrive late. Among 120120 car drivers, 9292 arrive on time and 2828 arrive late. In total, 160160 commuters arrive on time and 4040 arrive late. Based on this table, are taking the train and arriving on time independent or dependent? Show the two probabilities you compare.

Find P(On Time)P(\text{On Time}) in the whole group of 200200 commuters, then zoom into the 8080 train riders to find P(On Time∣Train){P(\text{On Time} \mid \text{Train})} and compare the two percentages.

In the whole group, P(On Time)=160200=80%P(\asked{\text{On Time}}) = \tfrac{\asked{160}}{\total{200}} = 80\%, and zoomed into the Train row, P(On Time∣Train)=6880=85%{P(\asked{\text{On Time}} \mid \cond{\text{Train}})} = \tfrac{\both{68}}{\cond{80}} = 85\% (don't compare the counts 68\both{68} and 92\both{92} directly, or divide 68\both{68} by the grand total of 200\total{200} to get 34%34\%). Because the percentage changes from 80%80\% to 85%85\%, the events are dependent.
7

A school surveys 150150 students (9090 upperclassmen and 6060 underclassmen) on whether they prefer morning or afternoon classes. In total, 6060 students prefer morning classes and 9090 prefer afternoon classes. If being an upperclassman and preferring morning classes were independent, how many of the 9090 upperclassmen would prefer morning classes?

What percentage of the 150150 surveyed students prefer morning classes, and what must that percentage be inside the row of 9090 upperclassmen if the categories are independent?

In the survey, P(Morning)=60150=40%P(\asked{\text{Morning}}) = \tfrac{\asked{60}}{\total{150}} = 40\%, so for the categories to be independent, 40%40\% of the 90\cond{90} upperclassmen must also prefer morning classes: 0.40×90=360.40 \times \cond{90} = \both{36} (don't just split the 60\asked{60} morning-class students in half to get 3030, because the two rows have different totals of 90\cond{90} and 60\total{60}). 36 upperclassmen36\text{ upperclassmen}.