| Participates | Does Not Participate | Total | |
|---|---|---|---|
| Freshman | 80 | 45 | 125 |
| Sophomore | 90 | 35 | 125 |
| Junior | 100 | 25 | 125 |
| Senior | 110 | 15 | 125 |
| Total | 380 | 120 | 500 |
Calculate P(Participates|Junior), P(Junior|Participates), and determine if there is an association between grade level and participation.
Conditional Probability: P(A|B) = P(A and B)/P(B), which is the probability of A occurring given that B has occurred.
Joint Probability: P(A and B) = (count in cell where A and B intersect)/(total count).
Marginal Probability: P(A) = (total for A)/(grand total).
- Identify the condition (what we know happened)
- Identify the event we want to find the probability of
- Apply the formula: P(Event|Condition) = (count where both occur)/(count where condition occurs)
- For P(A|B): numerator = cell count for A and B, denominator = total for B
P(Participates|Junior) = (Number of Juniors who participate)/(Total number of Juniors)
= 100/125 = 0.8 or 80%
P(Junior|Participates) = (Number of Juniors who participate)/(Total number who participate)
= 100/380 ≈ 0.263 or 26.3%
P(Participates) = Total who participate / Grand total
= 380/500 = 0.76 or 76%
Compare conditional probability to marginal probability:
- P(Participates|Junior) = 80%
- P(Participates) = 76%
- Since 80% ≠ 76%, there appears to be an association
Freshman: 80/125 = 64%
Sophomore: 90/125 = 72%
Junior: 100/125 = 80%
Senior: 110/125 = 88%
P(Junior|Participates) = 0.263 (26.3%)
There is a strong positive association between grade level and participation.
P(Participates|Junior) = 0.8 (80%) and P(Junior|Participates) = 0.263 (26.3%). There is a strong positive association between grade level and participation in extracurricular activities. Participation rates increase systematically from 64% for freshmen to 88% for seniors.
• Conditional Probability Formula: P(A|B) = P(A ∩ B)/P(B)
• Association Detection: If P(A|B) ≠ P(A), then A and B are associated
• Independence Test: If P(A|B) = P(A) for all B, then A and B are independent
• Direction Matters: P(A|B) ≠ P(B|A) in general
| Regular Exercise | Occasional Exercise | No Exercise | Total | |
|---|---|---|---|---|
| Smoker | 40 | 30 | 30 | 100 |
| Non-smoker | 120 | 80 | 100 | 300 |
| Total | 160 | 110 | 130 | 400 |
Perform a chi-square test of independence to determine if there is an association between smoking status and exercise frequency.
Chi-Square Test of Independence: A statistical test used to determine if there is a significant association between two categorical variables.
Null Hypothesis (H₀): The two variables are independent (no association).
Alternative Hypothesis (H₁): The two variables are dependent (there is an association).
χ² = Σ [(Observed - Expected)² / Expected]
Expected Count = (Row Total × Column Total) / Grand Total
Degrees of Freedom = (r - 1)(c - 1)
Smoker + Regular Exercise: (100 × 160) / 400 = 40
Smoker + Occasional Exercise: (100 × 110) / 400 = 27.5
Smoker + No Exercise: (100 × 130) / 400 = 32.5
Non-smoker + Regular Exercise: (300 × 160) / 400 = 120
Non-smoker + Occasional Exercise: (300 × 110) / 400 = 82.5
Non-smoker + No Exercise: (300 × 130) / 400 = 97.5
Smoker + Regular: (40 - 40)² / 40 = 0
Smoker + Occasional: (30 - 27.5)² / 27.5 = 0.227
Smoker + No: (30 - 32.5)² / 32.5 = 0.192
Non-smoker + Regular: (120 - 120)² / 120 = 0
Non-smoker + Occasional: (80 - 82.5)² / 82.5 = 0.076
Non-smoker + No: (100 - 97.5)² / 97.5 = 0.064
χ² = 0 + 0.227 + 0.192 + 0 + 0.076 + 0.064 = 0.559
df = (rows - 1) × (columns - 1) = (2 - 1) × (3 - 1) = 2
For α = 0.05 and df = 2, critical value ≈ 5.99
Since 0.559 < 5.99, we fail to reject H₀
At the 5% significance level, there is insufficient evidence to conclude that there is an association between smoking status and exercise frequency.
We fail to reject the null hypothesis. No significant association found.
With χ² = 0.559 and df = 2, we fail to reject the null hypothesis at α = 0.05. There is insufficient evidence to conclude that there is a significant association between smoking status and exercise frequency. The variables appear to be independent.
• Expected Frequency: E = (Row Total × Column Total) / Grand Total
• Chi-Square Statistic: χ² = Σ[(O - E)²/E]
• Degrees of Freedom: df = (r-1)(c-1)
• Decision Rule: Reject H₀ if χ² > critical value
| Recovered | Did Not Recover | Total | |
|---|---|---|---|
| Received Drug | 110 | 40 | 150 |
| Received Placebo | 70 | 80 | 150 |
| Total | 180 | 120 | 300 |
Calculate the relative risk and determine if the drug is effective.
Relative Risk (RR): The ratio of the probability of an outcome in the exposed group to the probability of the same outcome in the unexposed group.
Relative Risk Formula: RR = P(outcome|exposed) / P(outcome|unexposed)
Interpretation: RR = 1 (no association), RR > 1 (increased risk), RR < 1 (decreased risk/protection).
P(Recovery|Drug): 110/150 = 0.733 or 73.3%
P(Recovery|Placebo): 70/150 = 0.467 or 46.7%
RR = P(Recovery|Drug) / P(Recovery|Placebo)
RR = 0.733 / 0.467 = 1.57
P(No Recovery|Drug): 40/150 = 0.267 or 26.7%
P(No Recovery|Placebo): 80/150 = 0.533 or 53.3%
Reduction in risk: 53.3% - 26.7% = 26.6%
Odds of recovery with drug: 110/40 = 2.75
Odds of recovery with placebo: 70/80 = 0.875
Odds Ratio: 2.75 / 0.875 = 3.14
Since RR = 1.57 > 1, the drug increases the probability of recovery.
Patients receiving the drug are 1.57 times more likely to recover than those receiving placebo.
The odds ratio of 3.14 indicates even stronger association in the odds scale.
The drug is effective in increasing recovery rates.
The relative risk is 1.57, indicating that patients receiving the drug are 1.57 times more likely to recover than those receiving placebo. The drug is effective, with recovery rates increasing from 46.7% with placebo to 73.3% with the drug (a 26.6 percentage point improvement).
• Relative Risk: RR = P(outcome|exposed) / P(outcome|unexposed)
• Effectiveness: RR > 1 indicates beneficial effect when outcome is favorable
• Interpretation: RR of 1.57 means 57% higher probability of favorable outcome
• Clinical Significance: Consider both statistical and practical significance
Two-Way Table: A contingency table displaying the frequency distribution of two categorical variables, showing the intersection of categories from both variables.
Marginal Distribution: The distribution of one variable in the table, calculated by summing across the other variable (row totals or column totals).
Conditional Distribution: The distribution of one variable given a specific value of the other variable, calculated as proportions within rows or columns.
Association: A relationship between two variables where the conditional distribution of one variable depends on the value of the other variable.
Independence: Two variables are independent if knowing the value of one variable provides no information about the value of the other variable.
- Data Organization: Construct a two-way table with appropriate row and column labels
- Calculate Marginal Totals: Sum rows and columns to get totals
- Determine Marginal Proportions: Calculate overall proportions for each category
- Calculate Conditional Proportions: Calculate proportions within each row/column
- Compare Distributions: Compare conditional distributions to marginal distributions
- Statistical Testing: Perform chi-square test for formal independence assessment
- Measure Association Strength: Calculate relative risk, odds ratio, or phi coefficient
- Interpret Results: Draw conclusions about the nature and strength of association
• Conditional Probability: P(A|B) = P(A∩B)/P(B) = (Cell Count)/(Row/Column Total)
• Expected Frequency: E = (Row Total × Column Total)/Grand Total
• Chi-Square Statistic: χ² = Σ[(O - E)²/E]
• Degrees of Freedom: df = (r-1)(c-1) where r = rows, c = columns
• Independence Test: P(A|B) = P(A) if and only if A and B are independent
• Relative Risk: RR = P(outcome|exposed)/P(outcome|unexposed)
• Odds Ratio: OR = (a/c)/(b/d) where a,b,c,d are cell counts in 2×2 table
| Brand A | Brand B | Brand C | Total | |
|---|---|---|---|---|
| Low Income | 80 | 120 | 100 | 300 |
| Medium Income | 120 | 100 | 80 | 300 |
| High Income | 100 | 80 | 120 | 300 |
| Total | 300 | 300 | 300 | 900 |
Perform a comprehensive analysis to determine if there is an association between income level and brand preference.
Market Segmentation Analysis: Using two-way tables to identify patterns in consumer preferences across different demographic groups.
Brand Loyalty: The tendency of consumers to consistently purchase the same brand over time.
Overall Brand Preferences:
- Brand A: 300/900 = 33.3%
- Brand B: 300/900 = 33.3%
- Brand C: 300/900 = 33.3%
Income Distribution:
- Low Income: 300/900 = 33.3%
- Medium Income: 300/900 = 33.3%
- High Income: 300/900 = 33.3%
Brand Preferences by Income Level:
- Low Income: A (26.7%), B (40.0%), C (33.3%)
- Medium Income: A (40.0%), B (33.3%), C (26.7%)
- High Income: A (33.3%), B (26.7%), C (40.0%)
Clear differences exist between conditional and marginal distributions:
- Low income prefers Brand B (40% vs 33.3% overall)
- Medium income prefers Brand A (40% vs 33.3% overall)
- High income prefers Brand C (40% vs 33.3% overall)
Calculate expected frequencies:
- Low Income + Brand A: (300 × 300) / 900 = 100
- Medium Income + Brand B: (300 × 300) / 900 = 100
- High Income + Brand C: (300 × 300) / 900 = 100
χ² = Σ[(O - E)²/E] = 40, df = (3-1)(3-1) = 4
Critical value at α = 0.05: 9.49
Since 40 > 9.49, we reject H₀
The association has significant marketing implications:
- Brand A should target medium-income consumers
- Brand B should focus on low-income markets
- Brand C should emphasize high-income demographics
Each income level shows distinct brand preference patterns.
There is a strong association between income level and smartphone brand preference (χ² = 40, p < 0.001). Low-income consumers prefer Brand B (40%), medium-income prefer Brand A (40%), and high-income prefer Brand C (40%). This pattern suggests income-based market segmentation is effective for smartphone marketing.
• Association Assessment: Compare conditional distributions to marginal distributions
• Statistical Testing: Use chi-square test to confirm significance
• Business Application: Translate statistical findings into actionable insights
• Pattern Recognition: Look for consistent directional changes across categories
| High Performance | Average Performance | Low Performance | Total | |
|---|---|---|---|---|
| Traditional Method | 45 | 105 | 100 | 250 |
| Interactive Method | 85 | 115 | 50 | 250 |
| Blended Method | 70 | 90 | 40 | 200 |
| Total | 200 | 310 | 190 | 700 |
Conduct a comprehensive analysis to evaluate teaching method effectiveness and make policy recommendations.
Educational Effectiveness Analysis: Using statistical methods to evaluate the impact of different teaching approaches on student outcomes.
Performance Metrics: Quantitative measures used to assess educational outcomes and teaching effectiveness.
Overall Performance Levels:
- High Performance: 200/700 = 28.6%
- Average Performance: 310/700 = 44.3%
- Low Performance: 190/700 = 27.1%
Performance by Teaching Method:
- Traditional: High (18.0%), Average (42.0%), Low (40.0%)
- Interactive: High (34.0%), Average (46.0%), Low (20.0%)
- Blended: High (35.0%), Average (45.0%), Low (20.0%)
High Performance Rates:
- Traditional: 45/250 = 18.0%
- Interactive: 85/250 = 34.0%
- Blended: 70/200 = 35.0%
Low Performance Rates:
- Traditional: 100/250 = 40.0%
- Interactive: 50/250 = 20.0%
- Blended: 40/200 = 20.0%
Expected frequencies for each cell:
- Traditional + High: (250 × 200) / 700 = 71.4
- Interactive + High: (250 × 200) / 700 = 71.4
- Blended + High: (200 × 200) / 700 = 57.1
After calculating all expected frequencies:
χ² = 34.7, df = (3-1)(3-1) = 4
Critical value at α = 0.05: 9.49
Since 34.7 > 9.49, we reject H₀
Based on the analysis:
- Interactive and Blended methods show superior performance
- Traditional method has highest failure rate (40% low performance)
- Interactive and Blended methods reduce failure rate to 20%
- Recommend transitioning from Traditional to Interactive or Blended
Interactive and Blended methods are significantly more effective than Traditional.
There is a strong association between teaching method and student performance (χ² = 34.7, p < 0.001). The Interactive (34% high performance) and Blended (35% high performance) methods are significantly more effective than the Traditional method (18% high performance). The Traditional method also has the highest failure rate (40% low performance) compared to Interactive and Blended methods (20% each). Educational policy should favor Interactive and Blended teaching methods.
• Effectiveness Measurement: Compare success rates across different interventions
• Policy Translation: Convert statistical findings to actionable recommendations
• Statistical Significance: Use formal tests to validate observed differences
• Practical Importance: Consider both statistical and practical significance
Two-Way Table: A contingency table displaying the frequency distribution of two categorical variables, showing the intersection of categories from both variables. Provides a foundation for analyzing relationships between variables.
Contingency Table: Another term for two-way table, emphasizing that the table shows how one variable is contingent upon another.
Marginal Distribution: The distribution of one variable in the table, calculated by summing across the other variable (row totals or column totals). Represents the overall distribution of each variable independently.
Conditional Distribution: The distribution of one variable given a specific value of the other variable, calculated as proportions within rows or columns. Shows how one variable behaves under specific conditions of the other.
Association: A relationship between two variables where the conditional distribution of one variable depends on the value of the other variable. Indicated when conditional probabilities differ from marginal probabilities.
Independence: Two variables are independent if knowing the value of one variable provides no information about the value of the other variable. Occurs when P(A|B) = P(A) for all values of B.
- Data Collection: Gather data on two categorical variables of interest
- Table Construction: Organize data into a two-way table with clear row and column labels
- Calculate Totals: Compute row totals, column totals, and grand total
- Calculate Marginal Proportions: Determine overall proportions for each category
- Calculate Conditional Proportions: Determine proportions within each row/column
- Visual Inspection: Look for patterns in the data before formal testing
- Association Assessment: Compare conditional distributions to marginal distributions
- Statistical Testing: Perform chi-square test or other appropriate tests
- Effect Size Calculation: Calculate relative risk, odds ratio, or other measures
- Interpretation: Draw conclusions about the relationship between variables
- Application: Translate findings into practical recommendations
• Conditional Probability: P(A|B) = P(A∩B)/P(B) = (Cell Count)/(Row/Column Total)
• Expected Frequency: E = (Row Total × Column Total)/Grand Total
• Chi-Square Statistic: χ² = Σ[(O - E)²/E]
• Degrees of Freedom: df = (r-1)(c-1) where r = rows, c = columns
• Independence Test: P(A|B) = P(A) if and only if A and B are independent
• Relative Risk: RR = P(outcome|exposed)/P(outcome|unexposed)
• Odds Ratio: OR = (a/c)/(b/d) where a,b,c,d are cell counts in 2×2 table
• Association Strength: Larger differences between conditional and marginal probabilities indicate stronger associations
↓
Response Variable (Columns)
→
Intersection = Cell Count