Frequency Tables & Decision Making
Real data rarely arrives as tidy fractions — it arrives in counts. A two-way frequency table organizes those counts so you can read off probabilities, compare groups, detect association, and weigh choices with expected value.
§1 Reading Data Tables
A two-way frequency table displays data classified by two categories at once — one running down the rows, one across the columns. Each interior cell holds the count, or frequency, of items in that combination. The margins of the table carry the row and column totals, and the bottom-right corner holds the grand total.
For example, a survey of $200$ students might cross "grade level" (rows: 9th, 10th) against "plays a sport" (columns: yes, no). The cell where "9th" meets "yes" tells you how many ninth-graders play a sport.
Every probability question about the data is just a ratio of cells and totals. The whole skill is knowing which number goes on top and, crucially, which total goes on the bottom — the grand total, a row total, or a column total.
§2 Joint, Marginal, and Relative Frequency
The table gives three flavors of frequency, distinguished by which number you read.
| Type | What it is | How to compute |
|---|---|---|
| Joint | Count where both conditions are true. | A single interior cell. |
| Marginal | Count for one condition only. | A row total or a column total. |
| Relative | A proportion of the whole. | Any cell or total $\div$ grand total. |
If $40$ of $200$ students are ninth-graders who play sports, the joint relative frequency is $\frac{40}{200}=0.20$.
§3 Conditional Frequency
A conditional frequency answers "given that a person is in a particular row (or column), what fraction falls in each column (or row)?" — and the key is that the denominator is the row (or column) total, not the grand total.
$P(\text{sport}\mid\text{9th grade})=\dfrac{\text{9th-graders who play a sport}}{\text{total 9th-graders}}$. The condition "9th grade" restricts the world to that one row, so the row total becomes the new denominator. This is the table version of $P(B\mid A)$ from Topic 12.4.
§4 Association in Tables
Two variables are associated if the conditional frequencies differ noticeably across categories. If they are roughly equal, there is no association.
For instance, if $P(\text{sport}\mid\text{9th})=0.50$ but $P(\text{sport}\mid\text{10th})=0.30$, the two groups behave differently, so grade level and sports participation are associated. If both were near $0.40$, you would conclude no association.
Association is not causation. Finding that geometry students pass at a higher rate does not prove the course caused the passing — motivated students may both choose geometry and study more. A table can show a relationship; it cannot prove a cause.
§5 Expected Value & Decisions
To compare uncertain choices, use the expected value — a weighted average of the outcomes, each weighted by its probability.
| Formula | Meaning | Example |
|---|---|---|
| $E=\displaystyle\sum x_i\,P(x_i)$ | Long-run average payoff per play. | $\$5$ w/ $0.2$, $\$1$ w/ $0.5$, $\$0$ w/ $0.3$ |
| $E=5(0.2)+1(0.5)+0(0.3)=1+0.5=\$1.50$ | per play | |
You will never win exactly $\$1.50$ on any single play — the payouts are $\$5$, $\$1$, or $\$0$. Expected value is the average per play over many plays. It is the right tool for deciding whether a game, insurance policy, or investment is worth it in the long run, not for predicting one trial.
§6 Don't Confuse These
| Term | Correct idea | Common trap |
|---|---|---|
| Joint | One interior cell (both conditions). | Confusing it with a row/column total. |
| Marginal | A row or column total (one condition). | Treating a margin as if it were the whole sample. |
| Relative | Cell $\div$ grand total. | Dividing by a row total by mistake. |
| Conditional | Cell $\div$ row (or column) total. | Dividing by the grand total instead of the row total. |
| Association | Conditional frequencies differ across groups. | Reading it as proof of cause-and-effect. |
§7 Worked Examples
The first four use this survey of $200$ students:
| Passed | Did Not Pass | Total | |
|---|---|---|---|
| Took Geometry | 60 | 20 | 80 |
| No Geometry | 72 | 48 | 120 |
| Total | 132 | 68 | 200 |
Conditional (took geometry)
$P(\text{passed}\mid\text{took Geometry})$?
Answer: $\dfrac{60}{80}=\mathbf{0.75}$ — row total $80$ on the bottom.
Conditional (no geometry)
$P(\text{passed}\mid\text{no Geometry})$?
Answer: $\dfrac{72}{120}=\mathbf{0.60}$.
Is there association?
Compare the two conditionals.
Answer: $0.75\ne 0.60$, so the rates differ — there is an association; geometry students passed more often.
Joint relative frequency
$P(\text{took Geometry AND passed})$?
Answer: $\dfrac{60}{200}=\mathbf{0.30}$ — grand total on the bottom.
Marginal frequency
$P(\text{passed})$ overall?
Answer: $\dfrac{132}{200}=\mathbf{0.66}$ — uses the column total.
Expected value
A game pays $\$5$ ($P=0.2$), $\$1$ ($P=0.5$), $\$0$ ($P=0.3$). Fair price?
Answer: $E=5(0.2)+1(0.5)+0=\mathbf{\$1.50}$ per play.
§8 Self-Check
Answer each before opening the explanations. For each ratio, name the denominator before you compute.
- Define joint, marginal, relative, and conditional frequency, naming the denominator each uses.
- Using the $200$-student table, find $P(\text{did not pass}\mid\text{no Geometry})$.
- Find the relative frequency of students who took Geometry and did not pass.
- Explain how you decide whether two variables in a table are associated.
- A spinner game pays $\$10$ with $P=0.1$, $\$2$ with $P=0.4$, and $\$0$ with $P=0.5$. Find the expected value.
- Why does association in a two-way table not, by itself, prove causation?
Show Answers
- Joint = one cell (both conditions); marginal = row/column total (one condition); relative = cell $\div$ grand total; conditional = cell $\div$ row (or column) total.
- $P(\text{did not pass}\mid\text{no Geometry})=\frac{48}{120}=0.40$.
- $\frac{20}{200}=0.10$ (grand total on the bottom).
- Compute the conditional frequencies across categories; if they differ noticeably the variables are associated, if they are roughly equal they are not.
- $E=10(0.1)+2(0.4)+0(0.5)=1+0.8=\$1.80$ per play.
- A table only shows that two variables move together; a hidden third factor (a lurking variable) could drive both, so association alone cannot establish cause-and-effect.