Conditional relative frequency: The proportion of observations that satisfy a specific condition, calculated as: (Number in specific cell) ÷ (Relevant marginal total).
Two-way table: A table showing the frequency distribution of two categorical variables.
Joint frequency: The count of observations in a specific cell of the table.
- Identify the specific condition (given variable)
- Locate the relevant cell in the table
- Find the marginal total for the condition
- Divide the cell frequency by the marginal total
- Express as a decimal or percentage
| Subject | Math | English | Science | Total |
|---|---|---|---|---|
| Freshman | 40 | 30 | 10 | 80 |
| Sophomore | 50 | 40 | 30 | 120 |
| Total | 90 | 70 | 40 | 200 |
Condition: Student is a Sophomore
Relevant marginal total: Total Sophomores = 120
Specific outcome: Sophomore who prefers Math = 50
P(Math | Sophomore) = (Number of Sophomores who prefer Math) ÷ (Total number of Sophomores)
P(Math | Sophomore) = 50 ÷ 120 = 0.417 or 41.7%
50 ÷ 120 = 0.41666... ≈ 0.417
0.417 × 100% = 41.7%
Of all Sophomores surveyed, 41.7% prefer Math
This is the conditional probability of preferring Math given Sophomore status
The conditional relative frequency of preferring Math given that a student is a Sophomore is 0.417 or 41.7%. This means that 41.7% of Sophomores prefer Math as their favorite subject.
• Conditional probability: P(A|B) = P(A ∩ B) ÷ P(B)
• Relative frequency: Frequency ÷ Total relevant observations
• Condition: Denominator is the marginal total for the given condition
Reverse conditional: P(B|A) instead of P(A|B), where the condition and outcome are swapped.
Asymmetry: Generally P(A|B) ≠ P(B|A).
| Subject | Math | English | Science | Total |
|---|---|---|---|---|
| Freshman | 40 | 30 | 10 | 80 |
| Sophomore | 50 | 40 | 30 | 120 |
| Total | 90 | 70 | 40 | 200 |
New condition: Student prefers Math
Relevant marginal total: Total Math lovers = 90
Specific outcome: Math lover who is Sophomore = 50
P(Sophomore | Math) = (Number of Sophomores who prefer Math) ÷ (Total number who prefer Math)
P(Sophomore | Math) = 50 ÷ 90 = 0.556 or 55.6%
P(Math | Sophomore) = 50 ÷ 120 = 0.417 (41.7%)
P(Sophomore | Math) = 50 ÷ 90 = 0.556 (55.6%)
These are different because the denominators are different
Of all Sophomores, 41.7% prefer Math
Of all Math lovers, 55.6% are Sophomores
These answer different questions about the relationship between variables
P(Sophomore | Math) = 0.556 or 55.6%. This is different from P(Math | Sophomore) = 0.417. The first asks "What percentage of Math students are Sophomores?" while the second asks "What percentage of Sophomores prefer Math?" The different denominators (90 vs 120) result in different conditional probabilities.
• Asymmetry: P(A|B) ≠ P(B|A) in general
• Denominator matters: Condition determines which marginal total to use
• Interpretation: Different questions yield different answers
Row percentages: Conditional frequencies calculated using row totals as denominators.
Column percentages: Conditional frequencies calculated using column totals as denominators.
For Freshmen:
P(Math | Freshman) = 40 ÷ 80 = 0.50 or 50%
P(English | Freshman) = 30 ÷ 80 = 0.375 or 37.5%
P(Science | Freshman) = 10 ÷ 80 = 0.125 or 12.5%
For Sophomores:
P(Math | Sophomore) = 50 ÷ 120 = 0.417 or 41.7%
P(English | Sophomore) = 40 ÷ 120 = 0.333 or 33.3%
P(Science | Sophomore) = 30 ÷ 120 = 0.25 or 25%
For Math:
P(Freshman | Math) = 40 ÷ 90 = 0.444 or 44.4%
P(Sophomore | Math) = 50 ÷ 90 = 0.556 or 55.6%
For English:
P(Freshman | English) = 30 ÷ 70 = 0.429 or 42.9%
P(Sophomore | English) = 40 ÷ 70 = 0.571 or 57.1%
For Science:
P(Freshman | Science) = 10 ÷ 40 = 0.25 or 25%
P(Sophomore | Science) = 30 ÷ 40 = 0.75 or 75%
Row percentages: Within each grade, compare subject preferences
Column percentages: Within each subject, compare grade level distribution
Notice: Freshmen show stronger preference for Math (50%) than Sophomores (41.7%)
Row percentages show grade-level preferences: Freshmen prefer Math (50%) over English (37.5%) over Science (12.5%), while Sophomores show more balanced preferences. Column percentages show subject-level grade distribution: Math attracts more Sophomores (55.6%), while Science attracts more Sophomores (75%) than Freshmen (25%). The row percentages reveal grade-level preferences, while column percentages reveal subject popularity by grade.
• Row percentages: Answer "What percentage of group A prefers each option?"
• Column percentages: Answer "What percentage of option A comes from each group?"
• Sum property: Conditional percentages in each row/column sum to 100%
Divide by Row Total
Divide by Col Total
Divide by Grand Total
Conditional relative frequency: The proportion of observations that satisfy a condition, calculated as cell frequency divided by relevant marginal frequency.
Joint relative frequency: The proportion of observations in a specific cell, calculated as cell frequency divided by grand total.
Marginal relative frequency: The proportion of observations for each category, calculated as row or column total divided by grand total.
- Identify condition: Determine which variable is the given condition
- Locate relevant cell: Find the intersection of condition and outcome
- Find denominator: Use the marginal total for the condition variable
- Divide: Cell frequency ÷ Marginal frequency
- Interpret: Express as percentage of the condition group
• Row conditional: Divide by row total to see within-group preferences
• Column conditional: Divide by column total to see group composition
• Independence: If P(A|B) = P(A), variables are independent
• Sum property: Conditional frequencies in each group sum to 1
Association: A relationship between two variables where the conditional probability of one variable depends on the value of the other.
Independence: Two variables are independent if the conditional probability equals the marginal probability.
| Exercise Time | Morning | Evening | Total |
|---|---|---|---|
| Coffee Drinkers | 80 | 40 | 120 |
| Non-Coffee Drinkers | 60 | 120 | 180 |
| Total | 140 | 160 | 300 |
For Coffee Drinkers:
P(Morning | Coffee) = 80 ÷ 120 = 0.667 or 66.7%
P(Evening | Coffee) = 40 ÷ 120 = 0.333 or 33.3%
For Non-Coffee Drinkers:
P(Morning | No Coffee) = 60 ÷ 180 = 0.333 or 33.3%
P(Evening | No Coffee) = 120 ÷ 180 = 0.667 or 66.7%
P(Morning) = 140 ÷ 300 = 0.467 or 46.7%
P(Evening) = 160 ÷ 300 = 0.533 or 53.3%
Coffee drinkers: 66.7% prefer morning (vs 46.7% overall)
Non-drinkers: 33.3% prefer morning (vs 46.7% overall)
Large difference indicates association
There is a strong association between coffee drinking and exercise timing. Coffee drinkers are much more likely to prefer morning exercise (66.7%) compared to non-drinkers (33.3%). The conditional probabilities differ significantly from the marginal probabilities, indicating dependence between variables.
• Association detection: Compare conditional to marginal probabilities
• Independence test: P(A|B) = P(A) for independence
• Pattern recognition: Large differences indicate strong association
Medical effectiveness: Using conditional probabilities to assess treatment success rates.
Recovery probability: P(Recovery | Treatment Method).
| Outcome | Recovered | Did Not Recover | Total |
|---|---|---|---|
| Method A | 120 | 30 | 150 |
| Method B | 80 | 70 | 150 |
| Total | 200 | 100 | 300 |
P(Recovery | Method A) = 120 ÷ 150 = 0.80 or 80%
P(Recovery | Method B) = 80 ÷ 150 = 0.533 or 53.3%
P(Recovery) = 200 ÷ 300 = 0.667 or 66.7%
Method A: 80% recovery rate
Method B: 53.3% recovery rate
Method A has a 26.7 percentage point advantage
Method A is significantly more effective than Method B
Patients receiving Method A are 1.5 times more likely to recover
The difference is substantial (80% vs 53.3%)
Method A has a higher recovery probability (80%) compared to Method B (53.3%). Method A appears significantly more effective, with a 26.7 percentage point advantage. Based on conditional probabilities, Method A is the better choice for patient treatment.
• Effectiveness measure: P(Positive outcome | Treatment)
• Comparison: Compare conditional probabilities directly
• Decision making: Choose treatment with higher success probability
Conditional relative frequency: The proportion of observations in a specific category given that another variable has a particular value.
Two-way table: A table showing the frequency distribution of two categorical variables.
Joint frequency: The count of observations that fall into a specific combination of categories.
Marginal frequency: The total count for each category of one variable across all categories of the other variable.
Association: A relationship between two variables where the conditional probability of one variable depends on the value of the other.
- Construct table: Create a two-way table with joint and marginal frequencies
- Identify condition: Determine which variable is the given condition
- Locate cell: Find the intersection of condition and outcome
- Find denominator: Use the marginal total for the condition variable
- Divide: Calculate cell frequency ÷ marginal frequency
- Interpret: Express as a percentage of the condition group
• Row conditional: P(Outcome | Group) = Cell ÷ Row Total
• Column conditional: P(Group | Outcome) = Cell ÷ Column Total
• Independence: P(A|B) = P(A) and P(B|A) = P(B)
• Association: P(A|B) ≠ P(A) indicates relationship between variables
Conditional probability: Probability given a specific condition
Row percentages: Show preferences within groups
Column percentages: Show composition within categories
Association detection: Compare conditional to marginal probabilities
Independence: Conditional equals marginal probability
Analysis: Conditional relative frequencies reveal relationships between categorical variables by showing how probabilities change under specific conditions.
- Conditional probability: P(A|B) = P(A ∩ B) ÷ P(B)
- Row percentages: Compare outcomes within groups
- Column percentages: Compare groups within outcomes
- Association: Large differences indicate relationship
- Independence: Equal conditional and marginal probabilities