Tree diagrams

    Understanding Tree Diagrams in Probability

    Tree diagrams are visual tools used to represent all possible outcomes of a sequence of events, especially when these events are dependent on each other. They are particularly useful for calculating probabilities of compound events, where the outcome of one event influences the probabilities of subsequent events. Each branch in a tree diagram represents a possible outcome, and the probability of that outcome is typically written along the branch.

    Constructing a Tree Diagram

    To construct a tree diagram for a sequence of events:

    • Start with a single node representing the beginning of the process.
    • From this node, draw branches for each possible outcome of the first event. Label each branch with the outcome and its corresponding probability.
    • From the end of each of these branches, draw new branches for the possible outcomes of the second event, given the outcome of the first event. Label these with conditional probabilities.
    • Continue this process for all subsequent events.
    • The probabilities written on the branches are conditional probabilities (e.g., P(B|A)), meaning the probability of event B occurring given that event A has already occurred.

    Calculating Probabilities with Tree Diagrams

    Tree diagrams are powerful for computing several types of probabilities:

    • Probability of a specific sequence of events (Joint Probability): To find the probability of a specific path from the start to the end of the diagram, multiply the probabilities along that path. For example, if you have two events, A and B, the probability of both A and B occurring in that sequence is P(A and B) = P(A) * P(B|A). This is an application of the multiplication rule of probability.
    • Probability of an event (Marginal Probability): If an event can occur through multiple distinct paths in the tree diagram, sum the probabilities of all those paths. For instance, to find P(B), you would sum P(A1 and B) + P(A2 and B) + ... for all possible preceding events A1, A2, etc. This is the law of total probability.
    • Conditional Probability (Bayes' Theorem): Tree diagrams can also help visualize and calculate conditional probabilities in reverse using Bayes' Theorem. For example, to find P(A|B), you would use the formula P(A|B) = [P(B|A) * P(A)] / P(B). The numerator is a path probability from the tree, and the denominator P(B) is typically found by summing relevant path probabilities.

    Example: Medical Testing

    Consider a medical test for a rare disease. Suppose 1% of the population has the disease (D), and 99% does not (D'). The test is 90% accurate if you have the disease (positive result | D) and 95% accurate if you don't (negative result | D').

    • First Event: Having the disease (D or D'). P(D) = 0.01, P(D') = 0.99.
    • Second Event: Test result (Positive or Negative).
    • From D: P(Positive | D) = 0.90, P(Negative | D) = 0.10.
    • From D': P(Negative | D') = 0.95, P(Positive | D') = 0.05.

    Paths and their probabilities:

    • D and Positive: 0.01 * 0.90 = 0.009
    • D and Negative: 0.01 * 0.10 = 0.001
    • D' and Positive: 0.99 * 0.05 = 0.0495
    • D' and Negative: 0.99 * 0.95 = 0.9405

    Using these, we can find P(Positive) = 0.009 + 0.0495 = 0.0585. We can also calculate P(D | Positive) = P(D and Positive) / P(Positive) = 0.009 / 0.0585 ≈ 0.1538, illustrating how tree diagrams help with inverse conditional probabilities.

    Practice questions

    1

    Which type of probability is calculated by multiplying probabilities along a single path of a tree diagram?

    2

    What kind of probabilities are typically written on the branches of a tree diagram after the first set of outcomes?

    3

    If an event can occur through multiple distinct paths in a tree diagram, how is the total probability of that event found?

    4

    A company produces light bulbs at two factories: Factory A (60% of production) and Factory B (40% of production). 1% of bulbs from Factory A are defective, and 2% from Factory B are defective. What is the probability that a randomly chosen bulb is from Factory A AND is defective?

    Practice more free →

    Free AP4U account — unlimited practice, AI grader, and progress tracking.

    Canonical: https://apforu.com/ap/statistics/unit-4-probability-random-variables-and-probability-distributions/tree-diagrams