Conditional Probability Reference
Two-Way Tables and Conditional Probability
A two-way table organizes two categorical variables so we can compare groups, compute conditional probabilities, and test independence.
Solved Examples
Use this table: 30 students play a sport and 20 do not; 18 sport players and 8 non-players take the bus.
Two-Way Table
| Bus | Not Bus | Total | |
|---|---|---|---|
| Plays sport | $18$ | $12$ | $30$ |
| Does not play sport | $8$ | $12$ | $20$ |
| Total | $26$ | $24$ | $50$ |
Fact Table
| Term | Meaning | Denominator |
|---|---|---|
| Joint probability | Both events occur. | Grand total. |
| Marginal probability | One row or column total. | Grand total. |
| Conditional probability | One event given another. | Total for the given condition. |
| Independent events | Knowing one does not change the probability of the other. | Compare conditional and overall probabilities. |
Content Formulas
Joint
$$P(A\cap B)=\frac{\text{both}}{\text{total}}$$
Conditional
$$P(A\mid B)=\frac{P(A\cap B)}{P(B)}$$
Independence
$$P(A\mid B)=P(A)$$
Classic Examples
Find a Joint Probability
Find $P(\text{sport and bus})$.
Solution Steps
- Locate the cell where both conditions meet.
- Use the grand total as denominator.
- Simplify the probability.
$$\text{sport and bus}=18$$$$P=\frac{18}{50}$$$$\boxed{\frac9{25}}$$
Find a Conditional Probability
Find $P(\text{bus}\mid\text{plays sport})$.
Solution Steps
- Restrict the sample space to students who play a sport.
- Count bus riders within that row.
- Divide by the row total.
$$\text{given sport: total }30$$$$\text{bus among sport players}=18$$$$\boxed{P(\text{bus}\mid\text{sport})=\frac{18}{30}=\frac35}$$
Find a Marginal Probability
Find $P(\text{bus})$.
Solution Steps
- Use the bus column total.
- Use the grand total as denominator.
- Simplify the result.
$$\text{bus total}=26$$$$P(\text{bus})=\frac{26}{50}$$$$\boxed{\frac{13}{25}}$$
Test Independence
Are playing a sport and riding the bus independent?
Solution Steps
- Compare the conditional bus probability for sport players.
- Compare it to the overall bus probability.
- State whether the probabilities match.
$$P(\text{bus}\mid\text{sport})=\frac35$$$$P(\text{bus})=\frac{13}{25}$$$$\boxed{\frac35\ne\frac{13}{25};\text{ the events are not independent.}}$$