3.4 Contingency Tables and Probability Trees

3 min readjune 25, 2024

Contingency tables and probability trees are powerful tools for visualizing and calculating probabilities. These methods help organize data and map out possible outcomes, making it easier to understand complex probability scenarios.

By using these techniques, you can calculate joint, marginal, and conditional probabilities. They also allow you to see relationships between variables and events, helping you make informed decisions based on probability calculations.

Contingency Tables and Probability Trees

Probabilities from contingency tables

Top images from around the web for Probabilities from contingency tables
Top images from around the web for Probabilities from contingency tables
  • Contingency tables organize and display the frequency distribution of two
    • Rows represent one variable (gender) and columns represent the other (preferred color)
    • Each cell shows the frequency or count of observations for a specific combination of the two variables (males who prefer blue)
  • calculates the probability of two events occurring simultaneously
    • Calculate by dividing the frequency in a specific cell by the total number of observations
    • Formula: P(AB)=frequency(AB)totalP(A \cap B) = \frac{frequency(A \cap B)}{total}
    • Example: P(maleblue)=25100=0.25P(male \cap blue) = \frac{25}{100} = 0.25
  • calculates the probability of an event occurring regardless of the outcome of the other variable
    • Calculate by summing the frequencies in a row or column and dividing by the total number of observations
    • Formula for row marginal probability: P(A)=frequency(A)totalP(A) = \frac{frequency(A)}{total}
      • Example: P(male)=60100=0.6P(male) = \frac{60}{100} = 0.6
    • Formula for column marginal probability: P(B)=frequency(B)totalP(B) = \frac{frequency(B)}{total}
      • Example: P(blue)=40100=0.4P(blue) = \frac{40}{100} = 0.4
  • calculates the probability of an event occurring given that another event has already occurred
    • Calculate by dividing the joint probability by the marginal probability of the given event
    • Formula: P(AB)=P(AB)P(B)P(A|B) = \frac{P(A \cap B)}{P(B)}
    • Example: P(maleblue)=0.250.4=0.625P(male|blue) = \frac{0.25}{0.4} = 0.625
    • Helps determine if events are independent

Construction of tree diagrams

  • Tree diagrams visualize and represent probability problems graphically
    • Each branch represents a possible outcome (heads or tails on a coin flip)
    • Probabilities are written along the branches (0.5 for heads, 0.5 for tails)
  • Start with an initial node and draw branches for each possible outcome
    • Label each branch with the probability of that outcome occurring
  • For subsequent stages, draw branches from each previous outcome
    • Label these branches with conditional probabilities
    • Example: Drawing a second coin flip after the first flip resulted in heads
  • The sum of the probabilities of all branches stemming from a single node must equal 1
    • Example: P(heads)+P(tails)=0.5+0.5=1P(heads) + P(tails) = 0.5 + 0.5 = 1
  • Branches represent the of the probability experiment

Interpretation of tree diagrams

  • To find the probability of a specific path, multiply the probabilities along the branches leading to that outcome
    • Example: P(headsheads)=0.5×0.5=0.25P(heads \cap heads) = 0.5 \times 0.5 = 0.25
  • To find the overall probability of an outcome, sum the probabilities of all paths leading to that outcome
    • Example: P(1 heads)=0.25+0.25=0.5P(1 \space heads) = 0.25 + 0.25 = 0.5
  • Conditional probability can be calculated using the
    • Identify the paths that satisfy the given condition (paths with at least one heads)
    • Sum the probabilities of these paths and divide by the probability of the given condition
      • Example: P(at least 1 heads1st flip heads)=0.50.5=1P(at \space least \space 1 \space heads | 1st \space flip \space heads) = \frac{0.5}{0.5} = 1
  • can be applied using tree diagrams to update the probability of an event based on new information
    • Formula: P(AB)=P(BA)×P(A)P(B)P(A|B) = \frac{P(B|A) \times P(A)}{P(B)}
    • Example: P(1st headsat least 1 heads)=0.5×0.50.75=0.333P(1st \space heads | at \space least \space 1 \space heads) = \frac{0.5 \times 0.5}{0.75} = 0.333
  • Tree diagrams can illustrate the

Fundamental Probability Concepts

  • form the foundation of probability theory
  • Events can be mutually exclusive, meaning they cannot occur simultaneously
  • The law of total probability states that the probability of an event is the sum of the probabilities of all possible ways for the event to occur

Key Terms to Review (19)

Bayes' Theorem: Bayes' Theorem is a fundamental concept in probability and statistics that describes the likelihood of an event occurring given the prior knowledge of the conditions related to that event. It provides a way to update the probability of a hypothesis as more information or evidence becomes available.
Categorical variables: Categorical variables are variables that represent distinct categories or groups. These variables can take on a limited number of possible values, often labels or names.
Categorical Variables: Categorical variables are variables that represent discrete categories or groups, rather than numerical values. They are used to classify or group observations into distinct, non-overlapping categories.
Conditional Probability: Conditional probability is the likelihood of an event occurring given that another event has already occurred. It represents the probability of one event happening, given the knowledge of another event happening.
Conditional probability of A given B: Conditional probability of A given B, denoted as $P(A|B)$, is the probability that event A occurs given that event B has already occurred. It quantifies the relationship between two events in a probabilistic context.
Contingency table: A contingency table, also known as a cross-tabulation or crosstab, is a type of table in a matrix format that displays the frequency distribution of variables. It helps to analyze the relationship between two categorical variables.
Contingency Table: A contingency table, also known as a cross-tabulation or cross-tab, is a statistical tool used to summarize and analyze the relationship between two or more categorical variables. It displays the frequencies or counts of observations that fall into each combination of the categories of these variables.
Independence: Independence is a fundamental concept in probability and statistics that describes the relationship between two events or variables. When two events or variables are independent, the occurrence or value of one does not depend on or influence the occurrence or value of the other.
Joint Probability: Joint probability refers to the likelihood of two or more events occurring together or simultaneously. It is the probability of the intersection of two or more events, representing the combined likelihood of multiple events happening concurrently.
Law of Total Probability: The law of total probability is a fundamental concept in probability theory that describes how the probability of an event can be calculated when it is related to or dependent on other events. It provides a way to determine the overall probability of an event by considering the probabilities of its mutually exclusive and exhaustive subevents.
Marginal Probability: Marginal probability is the probability of an event occurring without considering the impact of other events. It represents the overall likelihood of an individual event happening, regardless of the relationship or dependence between variables.
Mutually Exclusive Events: Mutually exclusive events are a set of events where the occurrence of one event prevents the occurrence of the other events. In other words, if one event happens, the other events cannot happen simultaneously.
Probability Axioms: Probability axioms are the fundamental rules that define the mathematical foundation of probability theory. These axioms provide a framework for calculating and understanding the likelihood of events occurring in a given scenario.
Probability Tree: A probability tree is a graphical representation of the possible outcomes and their associated probabilities in a probabilistic scenario. It provides a visual aid to understand the relationships between events and the likelihood of their occurrence.
Sample space: Sample space is the set of all possible outcomes of a probability experiment. It provides a comprehensive list of every potential result that can occur.
Sample Space: The sample space is the set of all possible outcomes or results of a random experiment or event. It represents the complete set of possibilities that could occur in a given situation.
Test of independence: A test of independence assesses whether two categorical variables are independent of each other in a contingency table. It uses the chi-square statistic to determine if the observed frequencies differ significantly from expected frequencies.
Tree diagram: A tree diagram is a graphical tool used to map out and visualize the possible outcomes of a probability experiment. It helps in organizing and calculating probabilities for different events.
Tree Diagram: A tree diagram is a graphical representation that displays the possible outcomes or events in a probabilistic or decision-making scenario. It visually depicts the relationships and dependencies between various possibilities, often used in the context of contingency tables and probability trees.
© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.
Glossary
Glossary