SDS CH4 - Probability Theory and Contingency Tables Lecture Notes
Course Administrative Timeline and Preparation
- Current Progress: The class is starting Tutorial 4, which covers Chapter 4 material.
- Schedule: - Term 2 will encompass six weeks of instruction following the upcoming recess. - Assessment 2 (A2) follows Term 2. - Tutorial 4 will be split over two sessions: approximately half today, and the remainder in two weeks (after recess). - Tutorials 5 and 6 will follow the completion of Tutorial 4. - A dedicated revision week is scheduled before the A1 exam.
- Exam Context: Tutorial 4 is the final practical component that will be included in the A1 exam.
- Methodology: Exercises are performed using pen and paper rather than Excel templates, as Chapter 4 focuses on probability calculations best suited for manual notation.
Question 1: Contingency Tables and Basic Probability Rules
- Contingency Table Construction: A contingency table displays frequencies for two categorical variables (e.g., Event A and Event B).
- Initial Data (Counts): - Event and : - Event and : - Event and : - Event and :
- Marginal Totals (Calculated by summing rows and columns): - Total for Event : - Total for Event : - Total for Event : - Total for Event : - Grand Total (Sample Space ):
- Calculations: - Simple Probability of A: Represents the marginal probability. - - Probability of A Complement: - Method 1 (Direct): - Method 2 (Complement Rule): Since and are mutually exclusive and exhaustive, - Joint Probability (Intersection): The probability that both events occur simultaneously. - - Addition Rule (Union): The probability that event A or event B (or both) occurs. - Formula: - Calculation:
- Theoretical Justification for the Addition Rule: - When calculating the area of and the area of , the intersection (overlap) is counted twice (once in and once in ). - Subtracting the joint probability corrects this double-counting to provide the pure total area occupied by both events.
Question 3: Three Approaches to Probability
- A Priori Approach: - Probability is determined based on prior knowledge or theoretical properties rather than data collection. - Example: Tossing a fair coin. We know theoretically that the probability of heads is without needing to perform the experiment. Large number simulations will eventually even out to this theoretical probability. - Example: Rolling two dice to get a sum of seven. Knowing the dice are not "loaded" and have six sides allows for a theoretical calculation prior to the roll.
- Subjective Approach: - Probability is based on an individual's personal judgment, opinion, or confidence level. - Used when there are too many variables to quantify empirically or when historical data does not guarantee future outcomes. - Example: Predicting that Italy will win the next soccer World Cup. This relies on subjective confidence rather than a fixed physical law or perfect historical replicate.
- Empirical Approach: - Probability is determined by gathering and analyzing historical data or experimental results. - Example: Calculating the chance that a commuter train will be more than 10 minutes late. This requires gathering specific data on arrival times to determine the frequency of delays.
Question 4 and 11: Application of Workforce Demographics
- Event Definitions: - Simple Event: Involves only one characteristic (e.g., an employee being younger than 40). - Joint Event: Involves two or more characteristics occurring simultaneously (e.g., an employee being younger than 40 AND working in production). - Complement: Every outcome in the sample space not included in the primary event (e.g., the complement of "younger than 40" is "40 or older").
- Data from Question 11 Table (): - Workers < 40: 334 total (Production: 320, Sales: 14) - Workers 40: 116 total (Production: 80, Sales: 36) - Total Production: 400 - Total Sales: 50
- Probabilistic Calculations: - P(Production): Marginal probability. - - P(Older and Production): Joint probability. - - P(Older or Production): Addition rule. -
- Conditional Probabilities (Question 11): - P(Sales | >= 40): Probability of working in sales GIVEN they are 40 or older. - - P(Sales | < 40): Probability of working in sales GIVEN they are younger than 40. - - Contextual Note: There is a higher probability of sales placement for those with more experience ().
Question 6: Constructs from Probability Values
- Scenario: Car manufacturing and warranty repairs (US vs. Non-US companies).
- Given Probabilities: - - -
- Inferred Probabilities (Filling the Table): - - - - -
- Unions and Complements: - - -
Question 7 and 9: Conditional Probability and Independence
- Conditional Probability Formula: The probability of A occurring given that B has already occurred. -
- Statistical Independence: - Events A and B are independent if the occurrence of one does not affect the probability of the other. - Condition 1: - Condition 2:
- Verification Example (Q7): - Given and . - Since , the events are not independent.
- Multiplication Rule (Q9): - If and and they are independent: -
Question 14: Sampling and Card Game Applications
- Standard Deck Parameters: 52 total cards, 4 suits (Hearts, Diamonds, Clubs, Spades), 13 faces per suit.
- Sampling Without Replacement: The sample size decreases with each draw. - Example: Drawing two queens. - Draw 1: queens out of cards. - Draw 2: queens left out of cards left. -
- Sampling With Replacement: The sample size remains constant. - Draw 1: - Draw 2: (the card was put back). - - Note: Probability increases when sampling with replacement as the favorable outcomes are not depleted.
- Application: Blackjack Probability: - Rules: - Ace = 11 points (usually 1 or 11, but 11 for this calculation). - Jack, Queen, King (Face cards) = 10 points. - Cards 2–10 = Face value. - Blackjack = Getting 21 points in the first two cards. - 10-Valued Cards: There are 4 types (10, J, Q, K) across 4 suits, totaling cards. - Blackjack Paths: - Path 1: Ace followed by a 10-valued card: - Path 2: 10-valued card followed by an Ace: - Total Probability: -
Questions & Discussion
Question: Why did we use the addition rule formula specifically in Question 1?
Answer: Because calculating by simply adding the separate marginal probabilities results in double-counting the intersection. The rule subtracts the intersection once to yield the correct total area for the union.
Question: How do we define "independent" versus "mutually exclusive"?
Answer: Mutually exclusive means two events cannot happen at the same time (). Independence means the occurrence of one does not change the probability of the other ().
Question: Where did the 16 come from in the Blackjack calculation?
Answer: Blackjack rules count 10s, Jacks, Queens, and Kings as 10 points. Since there are 4 suits, we have 4 types of 10-point cards times 4 suits, equaling 16 cards in total worth 10 points.