Skip to main content
Mathematics LibreTexts

10.2: Working with Events

  • Page ID
    59983
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    Complementary Events

    Now let us examine the probability that an event does not happen. As in the previous section, consider the situation of rolling a six-sided die and first compute the probability of rolling a six: the answer is \(P(\text{six}) =\dfrac{1}{6}\). Now consider the probability that we do not roll a six: there are 5 outcomes that are not a six, so the answer is \(P(\text{not a six}) = \dfrac{5}{6}\). Notice that

    \(P(\text{six}) + P(\text{not a six}) = \dfrac{1}{6} + \dfrac{5}{6} = \dfrac{6}{6} = 1\)

    This is not a coincidence. Consider a generic situation with n possible outcomes and an event \(E\) that corresponds to \(m\) of these outcomes. Then the remaining \(n - m\) outcomes correspond to \(E\) not happening, thus

    \(P(\text{not } E) = \dfrac{n-m}{n} = \dfrac{n}{n} - \dfrac{m}{n} = 1 - \dfrac{m}{n} = 1 - P(E) \)

    Definition: Complement of an Event

    The complement of an event is the event “\(E\) doesn’t happen.”

    The notation \(\overline{E}\) or \(E^c\) is used for the complement of event \(E\). We can compute the probability of the complement using \(P(\overline{E}) = 1 - P(E)\). Notice also that \(P(E) = 1 - P(\overline{E})\).

    Example \(\PageIndex{1}\)

    If you pull a random card from a deck of playing cards, what is the probability it is not a heart?

    Solution

    There are 13 hearts in the deck, so \(P(\text{heart}) = \dfrac{13}{52} = \dfrac{1}{4}\).

    The probability of not drawing a heart is the complement:

    \(P(\text{not heart}) = 1 - P(\text{heart}) = 1 - \dfrac{1}{4} = \dfrac{3}{4}\).

    Probability of Two Independent Events

    Example \(\PageIndex{2}\)

    Suppose we flipped a coin and rolled a die, and wanted to know the probability of getting a head on the coin and a 6 on the die.

    Solution

    We could list all possible outcomes: {H1, H2, H3, H4, H5, H6, T1, T2, T3, T4, T5, T6}.

    Notice there are \(2 \cdot 6 = 12\) total outcomes. Out of these, only \(1\) is the desired outcome, so the probability is \(\dfrac{1}{12}\).

    The prior example finding the probability for two independent events.

    Definition: Independent Events

    Events A and B are independent events if the probability of Event B occurring is the same whether or not Event A occurs.

    Example \(\PageIndex{3}\)

    Are these events independent?

    a) A fair coin is tossed two times. The two events are (1) first toss is a head and (2) second toss is a head.

    b) The two events (1) “It will rain tomorrow in Houston” and (2) “It will rain tomorrow in Galveston” (a city near Houston).

    c) You draw a card from a deck, then draw a second card without replacing the first.

    Solution

    a) The probability that a head comes up on the second toss is \(\dfrac{1}{2}\) regardless of whether or not a head came up on the first toss, so these events are independent.

    b) These events are not independent because it is more likely that it will rain in Galveston on days it rains in Houston than on days it does not.

    c) The probability of the second card being red depends on whether the first card is red or not, so these events are not independent.

    When two events are independent, the probability of both occurring is the product of the probabilities of the individual events.

    \(P(A \text{ and } B)\) for Independent Events

    If events \(A\) and \(B\) are independent, then the probability of both \(A\) and \(B\) occurring is

    \[P(A \text{ and } B) = P(A) \cdot P(B) \nonumber \]

    where \(P(A \text{ and } B)\) is the probability of events \(A\) and \(B\) both occurring, \(P(A)\) is the probability of event \(A\) occurring, and \(P(B)\) is the probability of event \(B\) occurring.

    If you look back at the coin and die example from earlier, you can see how the number of outcomes of the first event multiplied by the number of outcomes in the second event multiplied to equal the total number of possible outcomes in the combined event.

    Example \(\PageIndex{4}\)

    In your drawer, you have 10 pairs of socks, 6 of which are white, and 7 tee shirts, 3 of which are white. If you randomly reach in and pull out a pair of socks and a tee shirt, what is the probability both are white?

    Solution

    The probability of choosing a white pair of socks is \(\dfrac{6}{10}\).

    The probability of choosing a white tee shirt is \(\dfrac{3}{7}\).

    Since the probability of randomly selecting a white sock is the same whether or not we randomly select a white t-shirt from the drawer, then these are independent events. Hence, we can use the probability formula for independent events.

    The probability of both being white is \(\dfrac{6}{10} \cdot \dfrac{3}{7} = \dfrac{18}{70} = \dfrac{9}{35}\)

    Try It Now 2

    A card is pulled a deck of cards and noted. The card is then replaced, the deck is shuffled, and a second card is removed and noted. What is the probability that both cards are Aces?

    The previous examples looked at the probability of both events occurring. Now we will look at the probability of either event occurring

    Probability of Either Two Events Occurring

    Example \(\PageIndex{5}\)

    Suppose we flipped a coin and rolled a die, and wanted to know the probability of getting a head on the coin or a 6 on the die.

    Solution

    Here, there are still 12 possible outcomes: {H1, H2, H3, H4, H5, H6, T1, T2, T3, T4, T5, T6}.

    By simply counting, we can see that 7 of the outcomes have a head on the coin or a 6 on the die or both – we use or inclusively here (these 7 outcomes are H1, H2, H3, H4, H5, H6, T6), so the probability is \(\dfrac{7}{12}\). How could we have found this from the individual probabilities?

    As we would expect, \(\dfrac{1}{2}\) of these outcomes have a head, and \(\dfrac{1}{6}\) of these outcomes have a 6 on the die. If we add these, \(\dfrac{1}{2} + \dfrac{1}{6} = \dfrac{6}{12} + \dfrac{2}{12} = \dfrac{8}{12}\), which is not the correct probability. Looking at the outcomes we can see why: the outcome H6 would have been counted twice, since it contains both a head and a 6; the probability of both a head and rolling a 6 is \(\dfrac{1}{12}\).

    If we subtract out this double count, we have the correct probability: \(\dfrac{8}{12} - \dfrac{1}{12} = \dfrac{7}{12}\)

    Definition: \(P(A \text{ or } B)\)

    The probability of either \(A\) or \(B\) occurring (or both) is

    \[P(A \text{ or } B) = P(A) + P(B) – P(A \text{ and } B) \nonumber \]

    Example \(\PageIndex{6}\)

    Suppose we draw one card from a standard deck. What is the probability that we get a Queen or a King?

    Solution

    There are 4 Queens and 4 Kings in the deck. Hence, 8 outcomes corresponding to a Queen or King out of 52 possible outcomes. Thus, the probability of drawing a Queen or a King is

    \(P(\text{King or Queen}) = \dfrac{8}{52}\)

    Note that in this case, there are no cards that are both a Queen and a King, so \(P(\text{King or Queen}) = 0\). Using the probability rule, we get

    \(P(\text{King or Queen}) = P(\text{King}) + P(\text{Queen}) - P(\text{King and Queen}) = \dfrac{4}{52} + \dfrac{4}{52} - 0 = \dfrac{8}{52}\)

    In the last example, the events were mutually exclusive, so \(P(A \text{ or } B) = P(A) + P(B)\).

    Definition: Mutually Exclusive

    Two events are mutually exclusive if the events cannot occur at the same time. If this is the case, then we can use the formula

    \[P(A \text{ or } B) = P(A) + P(B) \nonumber \]

    to find the probability.

    Some examples:

    • If we toss a coin, the coin lands on heads or tails, but not both.
    • If we draw a card, the card cannot be a queen and king at the same time (or any two faces). Careful, though, because if you draw a card from a deck, then the card could be a heart and an 8 at the same time, making them not mutually exclusive.
    Example \(\PageIndex{7}\)

    Suppose we draw one card from a standard deck. What is the probability that we get a red card or a King?

    Solution

    Half the cards are red, so \(P(\text{red}) = \dfrac{26}{52}\)

    There are four kings, so \(P(\text{King}) = \dfrac{4}{52}\)

    There are two red kings, so \(P(\text{Red and King}) = \dfrac{2}{52}\)

    We can then calculate

    \(P(\text{Red or King}) = P(\text{Red}) + P(\text{King}) - P(\text{Red and King}) = \dfrac{26}{52} + \dfrac{4}{52} - \dfrac{2}{52} = \dfrac{28}{52}\)

    Probability of At Least One

    Definition: \(P(\text{at least one})\)

    The probability of at least one event occurring is

    \[P(\text{at least one}) = 1 - P(\text{none}) \nonumber \]

    Example \(\PageIndex{8}\)

    In a large population, 70% of the people have been vaccinated. If 5 people are randomly selected, what is the probability that at least one of them has been vaccinated?

    Solution

    Since we need to find the probability that at least one of the 5 selected people is vaccinated, we get

    \(P(\text{at least one}) = 1 - P(\text{none})\)

    \(P(\text{at least one is vaccinated}) = 1 - P(\text{none of the 5 are vaccinated})\)

    If 70% of the people are vaccinated, then this means 30% are not vaccinated. Hence,

    \(P(\text{at least one is vaccinated}) = 1 - P(\text{none of the 5 are vaccinated})\)

    \(= 1 – P(1^{st } \text{ isn’t vaccinated and \( 2^{nd}\) isn’t vaccinated…})\)

    \(= 1 - (0.30) (0.30) (0.30) (0.30) (0.30)\)

    \(= 1 - (0.30)^5 = 0.99757\)

    Thus, there is a 0.99757 or 99.757% chance that at least one of the selected 5 people is vaccinated.

    Try It Now 3

    In your drawer, you have 10 pairs of socks, 6 of which are white, and 7 tee shirts, 3 of which are white. If you reach in and randomly grab a pair of socks and a tee shirt, what the probability at least one is white?

    Example \(\PageIndex{9}\)

    The table below shows the number of survey subjects who have received and not received a speeding ticket in the last year, and the color of their car. Find the probability that a randomly chosen person:

    a) Has a red car and got a speeding ticket

    b) Has a red car or got a speeding ticket.

    Solution
    Speeding Ticket No Speeding Ticket Total
    Red Car 15 135 150
    Not Red Car 45 470 515
    Total 60 605 665

    We can see that 15 people of the 665 surveyed had both a red car and got a speeding ticket, so the probability is \(\dfrac{15}{665} ≈ 0.0226\)

    Notice that having a red car and getting a speeding ticket are not independent events, so the probability of both of them occurring is not simply the product of probabilities of each one occurring.

    We could answer this question by simply adding up the numbers: \(15\) people with red cars and speeding tickets + \(135\) with red cars but no ticket + \(45\) with a ticket but no red car = \(195\) people. So, the probability is \(\dfrac{195}{665} ≈ 0.2932\)

    We also could have found this probability by:

    \(P(\text{had a red car}) + P(\text{got a speeding ticket}) – P(\text{had a red car and got a speeding ticket})\)

    \(= \dfrac{150}{665} + \dfrac{60}{665} - \dfrac{15}{665} = \dfrac{195}{665}\)

    Conditional Probability

    Often it is required to compute the probability of an event given that another event has occurred.

    Example \(\PageIndex{10}\)

    What is the probability that two cards drawn at random from a deck of playing cards will both be aces?

    Solution

    It might seem that you could use the formula for the probability of two independent events and simply multiply \(\dfrac{4}{52} \cdot \dfrac{4}{52} = \dfrac{1}{169}\). This would be incorrect, however, because the two events are not independent. If the first card drawn is an ace, then the probability that the second card is also an ace would be lower because there would only be three aces left in the deck.

    Once the first card chosen is an ace, the probability that the second card chosen is also an ace is called the conditional probability of drawing an ace. In this case, the “condition” is that the first card is an ace. Symbolically, we write this as:

    \(P(\text{ace on second draw} | \text{an ace on the first draw})\)

    The vertical bar “|” is read as “given,” so the above expression is short for “The probability that an ace is drawn on the second draw given that an ace was drawn on the first draw.” What is this probability? After an ace is drawn on the first draw, there are 3 aces out of 51 total cards left. This means that the conditional probability of drawing an ace after one ace has already been drawn is \(\dfrac{3}{51} = \dfrac{1}{17}\).

    Thus, the probability of both cards being aces is \(\dfrac{4}{52} \cdot \dfrac{3}{51} = \dfrac{12}{2652} = \dfrac{1}{221}\).

    Definition: Conditional Probability

    The probability the event \(B\) occurs, given that event \(A\) has happened, is represented as \(P(B | A)\).

    This is read as “the probability of \(B\) given \(A\)”

    Example \(\PageIndex{11}\)

    Find the probability that a die rolled shows a 6, given that a flipped coin shows a head.

    Solution

    These are two independent events, so the probability of the die rolling a 6 is \(\dfrac{1}{6}\), regardless of the result of the coin flip.

    Example \(\PageIndex{12}\)

    The table below shows the number of survey subjects who have received and not received a speeding ticket in the last year, and the color of their car. Find the probability that a randomly chosen person:

    a) Has a speeding ticket given they have a red car

    b) Has a red car given they have a speeding ticket

    Speeding Ticket No Speeding Ticket Total
    Red Car 15 135 150
    Not Red Car 45 470 515
    Total 60 605 665
    Solution

    a) Since we know the person has a red car, we are only considering the 150 people in the first row of the table. Of those, 15 have a speeding ticket, so

    \(P(\text{ticket} | \text{red car}) = \dfrac{15}{150} = \dfrac{1}{10} = 0.1 \)

    b) Since we know the person has a speeding ticket, we are only considering the 60 people in the first column of the table. Of those, 15 have a red car, so

    \(P(\text{red car} | \text{ticket}) = \dfrac{15}{60} = \dfrac{1}{4} = 0.25 \)

    Notice from the last example that \(P(B | A)\) is not equal to \(P(A | B)\).

    These kinds of conditional probabilities are what insurance companies use to determine your insurance rates. They look at the conditional probability of you having accident, given your age, your car, your car color, your driving history, etc., and price your policy based on that likelihood.

    Conditional Probability Formula

    If events \(A\) and \(B\) are not independent, then

    \[P(A \text{ and } B) = P(A) \cdot P(B | A) \nonumber \]

    Example \(\PageIndex{13}\)

    If you pull 2 cards out of a deck, what is the probability that both are spades?

    Solution

    The probability that the first card is a spade is \(\dfrac{13}{52}\).

    The probability that the second card is a spade, given the first was a spade, is \(\dfrac{12}{51}\), since there is one less spade in the deck, and one less total cards.

    The probability that both cards are spades is \(\dfrac{13}{52} \cdot \dfrac{12}{51} = \dfrac{156}{2652} ≈ 0.0588 \)

    Example \(\PageIndex{14}\)

    If you draw two cards from a deck, what is the probability that you will get the Ace of Diamonds and a black card?

    Solution

    You can satisfy this condition by having Case A or Case B, as follows:

    Case A) you can get the Ace of Diamonds first and then a black card or

    Case B) you can get a black card first and then the Ace of Diamonds.

    Let’s calculate the probability of Case A. The probability that the first card is the Ace of Diamonds is \(\dfrac{1}{52}\). The probability that the second card is black given that the first card is the Ace of Diamonds is \(\dfrac{26}{51}\) because 26 of the remaining 51 cards are black. The probability is therefore \(\dfrac{1}{52} \cdot \dfrac{26}{51} = \dfrac{1}{102}\).

    Now for Case B: the probability that the first card is black is \(\dfrac{26}{52} = \dfrac{1}{2}\). The probability that the second card is the Ace of Diamonds given that the first card is black is \(\dfrac{1}{51}\). The probability of Case B is therefore \(\dfrac{1}{2} \cdot \dfrac{1}{51} = \dfrac{1}{102}\), the same as the probability of Case 1.

    Recall that the probability of \(A\) or \(B\) is \(P(A) + P(B) - P(A \text{ and } B)\). In this problem, \(P(A \text{ and } B) = 0\) since the first card cannot be the Ace of Diamonds and be a black card. Therefore, the probability of Case A or Case B is \(\dfrac{1}{101} + \dfrac{1}{101} = \dfrac{2}{101}\). The probability that you will get the Ace of Diamonds and a black card when drawing two cards from a deck is \(\dfrac{2}{101}\).

    Try It Now 4

    In your drawer, you have 10 pairs of socks, 6 of which are white. If you reach in and randomly grab two pairs of socks, what is the probability that both are white?

    Example \(\PageIndex{15}\)

    ample 18 A home pregnancy test was given to women, then pregnancy was verified through blood tests. The following table shows the home pregnancy test results. Find

    a) \(P(\text{not pregnant} | \text{positive test result})\)

    b) \(P(\text{positive test result} | \text{not pregnant})\)

    Positive Test Negative Test Total
    Pregnant 70 4 74
    Not Pregnant 5 14 19
    Total 75 18 93
    Solution

    a) Since we know the test result was positive, we’re limited to the 75 women in the first column, of which 5 were not pregnant. \(P(\text{not pregnant} | \text{positive test result}) = \dfrac{5}{75} ≈ 0.067\).

    b) Since we know the woman is not pregnant, we are limited to the 19 women in the second row, of which 5 had a positive test. \(P(\text{positive test result} | \text{not pregnant}) = \dfrac{5}{19} ≈ 0.263\).

    The second result is what is usually called a false positive: A positive result when the woman is not actually pregnant.


    This page titled 10.2: Working with Events is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by Darlene Diaz (ASCCC Open Educational Resources Initiative) via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.