I'll generate a complete, self-contained HTML slide deck following your design system exactly. ```html Using Two-Way Tables for Probability
01 / 20

Using Two-Way Tables
for Probability

Organize two categories at once, then read the table as a sample space to find probabilities and test for independence.

Statistics & Probability

What Is a Two-Way Table?

A two-way frequency table sorts each object by two categories at once. One category labels the rows, the other labels the columns, and each cell counts the objects that share both traits.

Column Categories Row Categories count count count count row 1 row 2

A Real Example

We surveyed 100 students about their favorite subject. Each student is classified by grade level (rows) and favorite subject (columns).

MathScienceEnglishTotal
10th Grade18201250
11th Grade15142150
Total333433100

Three Kinds of Frequencies

Joint
A single inner cell. Objects with both traits, e.g. 10th grade AND Science = 20.
Marginal
A Total in the margin. Objects with one trait, e.g. all Science = 34.
Grand Total
The corner cell. The whole sample size, here 100 students.

The Table Is a Sample Space

To find a probability, divide the relevant count by the total. The grand total is the denominator for any "out of everyone" probability.

Conditional Probability

"Given" restricts the sample space to one row or one column. Read \( P(A \mid B) \) as "probability of \(A\), given \(B\)."

Testing for Independence

Two events \(A\) and \(B\) are independent when knowing one does not change the chance of the other. The formal test:

Marginal vs Conditional

Marginal \(P(A)\)Conditional \(P(A\mid B)\)
Sample spaceEveryoneOnly group \(B\)
DenominatorGrand totalMarginal total of \(B\)
Question form"What is \(P(A)\)?""\(P(A)\) given \(B\)?"
Table regionA margin totalOne row or column

A Four-Step Approach

1
Find the totals. Add each row and column; check they sum to the grand total.
2
Identify the denominator. Whole table for marginal; one row/column for "given."
3
Count the numerator. The cell(s) that satisfy the event you want.
4
Divide and simplify. Then compare to test independence if asked.

Worked Example: Marginal

Find \( P(\text{11th grade}) \) for a randomly chosen student.

MathScienceEnglishTotal
10th Grade18201250
11th Grade15142150
Total333433100

Worked Example: Conditional

Find \( P(\text{English} \mid \text{11th grade}) \).

MathScienceEnglishTotal
10th Grade18201250
11th Grade15142150
Total333433100

Worked Example: Independence

Are "Science" and "10th grade" independent? Compare the conditional to the marginal.

Common Mistakes

✕ Wrong denominator
Using the grand total for a "given" question. Conditional probability uses the row or column total instead.
✕ Reversing the condition
\( P(A\mid B) \) is not the same as \( P(B\mid A) \). The "given" event sets the denominator.
✕ Assuming independence
You must actually compare \( P(A\mid B) \) to \( P(A) \). Don't guess from the table's appearance.

Summary Cheat Sheet

You want...NumeratorDenominator
\( P(A) \)Marginal of \(A\)Grand total
\( P(A \text{ and } B) \)Joint cellGrand total
\( P(A \mid B) \)Joint cellMarginal of \(B\)
Independence?Check \( P(A\mid B) = P(A) \)

Question 1 of 5

From the survey of 100 students, what is \( P(\text{Math}) \) for a randomly chosen student? (Math marginal = 33)

Question 2 of 5

10th grade has 50 students; 18 chose Math. What is \( P(\text{Math} \mid 10\text{th grade}) \)?

Question 3 of 5

Which cell of a two-way table gives a joint frequency?

Question 4 of 5

\( P(\text{Science}) = 0.34 \) and \( P(\text{Science} \mid 11\text{th grade}) = \frac{14}{50} = 0.28 \). What can you conclude?

Question 5 of 5

For independent events, what should be true about \( P(A \mid B) \) and \( P(A) \)?

You've Got the Whole Table

``` This complete slide deck includes all 20 slides following your design system exactly: title, concept introduction, core rules, key distinctions, application steps, three worked examples, common mistakes, a summary cheat sheet, 5 assessment questions, and a closing slide. Every mathematical formula uses KaTeX, the two-way tables use a custom `.data-table` component with color-coded highlighting, and all navigation, accordion, and assessment behaviors are wired up per spec.