Skip to main content
Statistics LibreTexts

3.4: Union and Intersection

  • Page ID
    36656
  • \( \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}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    Learning Objectives
    • Find the probability of the intersection of events
    • Find the probability of the union of events

    Mutually Exclusive Events

    When two events cannot happen at the same time, they are called mutually exclusive or disjoint events.

    Mutually exclusive Venn Diagram:  rectangle with blue circle labeled A and yellow circle labeled B.  Circles do not overlap.

    Figure \(\PageIndex{1}\)

    Not mutually exclusive Venn Diagram:  rectangle with blue circle labeled A overlapping with yellow circle labeled B.  Area of overlap in the circles is A and B.

    Figure \(\PageIndex{2}\)

    Mutually exclusive Venn Diagram:  rectangle with blue circle labeled Freshman and yellow circle labeled Sophomore.  Circles do not overlap.

    Figure \(\PageIndex{3}\)

    Not mutually exclusive Venn Diagram:  rectangle with blue circle labeled Freshman and yellow circle labeled Business Majors.  Circles do overlap.

    Figure \(\PageIndex{4}\)

    For example, a student cannot be a freshman and a sophomore at the same time, see Figure \(\PageIndex{3}\). These are mutually exclusive events. A student could be freshman and a business major at the same time so the event "freshman" and the event "business majors" are not mutually exclusive, as shown in Figure \(\PageIndex{4}\).

    Intersection

    When we are finding the probability of both A and B happening at the same time, we denote this as \(P(A \cap B)\). This overlap is called the intersection.

    Definition: Intersection

    When two events A and B occur at the same time, it is called the intersection of A and B and is denoted as \((A \cap B)\). Think of the symbol \(\cap\) as an A in “and.”

    Formula

    If two events are mutually exclusive, then \(A \cap B\) = { }, the empty set (also denoted as \(\varnothing\)) and \(P(A \cap B)\) = 0.

    Union

    When either event A, event B, or both occur, then it is called the union of A or B, which is denoted as \(A \cup B\). When finding the probability of A or B, it is denoted as \(P(A \cup B)\). When we write “or” in statistics, we mean “and/or” unless we explicitly state otherwise. Thus, "A or B occurs" means A, B, or both A and B occur.

    Figure \(\PageIndex{5}\) is a Venn diagram for the union of sets A or B, which is both sets put together.

    Not mutually exclusive Venn Diagram:  rectangle with green circle overlapping with another green circle.  All green area is the union of circle A and circle B.

    Figure \(\PageIndex{5}\)

    Formula: Addition Rule

    Addition Rule: \(P(A \cup B) = P(A) + P(B) - P(A \cap B)\).

    If two events are mutually exclusive, then the probability of them occurring at the same time is \(P(A \cap B) = 0\). So if A and B are mutually exclusive, then the \(P(A \cup B) = P(A) + P(B)\) as shown in Figure \(\PageIndex{1}\). It is best to write out the rule with the intersection so that you do not forget to subtract any overlapping intersection.

    Example \(\PageIndex{1}\)

    The family college data set contains a sample of 792 cases with two variables: teen and parents. The teen variable is either college or not, where the college label means the teen went to college immediately after high school. The parents variable takes the value degree if at least one parent of the teenager completed a college degree. Make a Venn Diagram for the data.

    Example from OpenIntroStatistics.

    Teen/Parents Degree No Degree Total
    College 231 214 445
    No College 49 298 347
    Total 280 512 792
    Solution

    Find the relative frequencies by dividing each cell by the grand total, 792.

    Teen/Parents Degree No Degree Total
    College 0.29 0.27 0.56
    No College 0.06 0.38 0.44
    Total 0.35 0.65 1

    Use shapes to show the overlaps between the groups, as show in the completed Venn diagram in Figure \(\PageIndex{6}\). Note that you do not need to use circles to represent the sets.

    Not mutually exclusive Venn Diagram:  rectangle with red rectangle labeled "parent completed a college degree" overlapping with blue rectangle labeled "Teenager went to college."  Area of overlap in the rectangles is labeled 0.29.  Area in red rectangle only (not overlapping blue) is labeled 0.06.  Area in blue rectangle only (not overlapping red) is labeled 0.27.  Area outside both colored rectangles but inside the bounding rectangle is labeled "Neither: 0.38."

    Figure \(\PageIndex{6}\)

    Example \(\PageIndex{2}\)

    A random sample of 500 people was taken from the 2020 United States Census. Their marital status and race were recorded in the following contingency table using the census labels. A person is randomly chosen from the census data. Find the following.

    Marital Status/Race American Indian Black Asian White 2 Major Races Total
    Divorced 0 6 1 30 1 38
    Married 1 25 23 156 4 209
    Single 2 33 21 155 11 222
    Widowed 0 7 2 22 0 31
    Total 3 71 47 363 16 500
    1. P (Single \(\cap\) American Indian)
    2. P(Single \(\cup\) American Indian)
    3. Probability that the person is Asian or Married.
    4. P(Single \(\cap\) Married)
    5. P(Single \(\cup\) Married)
    Solution
    1. The intersection for a contingency table is found by simply finding where the row and column meet. There are 2 Single American Indians, therefore the P(Single \(\cap\) American Indian) = P(Single and American Indian) = \(\dfrac{2}{500} = \dfrac{1}{250}\) = 0.004.
    2. There are 222 Single people, there are 3 American Indians, but we do not want to count the 2 Single American Indians twice, therefore the P(Single \(\cup\) American Indian) = P(Single or American Indian) = \(\dfrac{222}{500} + \dfrac{3}{500} - \dfrac{2}{500} = \dfrac{223}{500}\) = 0.446.
    3. The union for a contingency table is found by either using the Addition Rule or adding up all the numbers in the corresponding row and column. There are 47 Asian people, there are 209 Married people, but we do not want to count the 23 Married Asian people twice. Thus, P(Asian \(\cup\) Married) = P(Asian or Married) = P(Asian) + P(Married) - P(Asian \(\cap\) Married) = \(\dfrac{47}{500} + \dfrac{209}{500} - \dfrac{23}{500} = \dfrac{233}{500}\) = 0.466.
    4. The events Single and Married are mutually exclusive so P(Single \(\cap\) Married) = 0. Alternatively, there is no place in the table where the Single row and Married row meet.
    5. The events Single and Married are mutually exclusive so the P(Single \(\cup\) Married) = P(Single) + P(Married) – P(Single \(\cap\) Married) = \(\dfrac{222}{500} + \dfrac{209}{500} - 0 = \dfrac{431}{500}\) = 0.862.
    Example \(\PageIndex{3}\)

    Use a random experiment consisting of rolling two dice and adding the numbers on the faces.

    1. Find the probability of rolling a sum of 8.
    2. Find the probability of rolling a sum of 8 or a sum of 5.
    3. Find the probability of rolling a sum of 8 or a double (each die has the same number).
    Solution
    1. There are 36 possible outcomes for rolling the two dice as shown in the following sum table. There are 5 pairs where the sum of the two dice is an 8, the pairs (2,6), (3,5), (4,4), (5,3) and (6,2). Note that the events (2,6) and (6,2) are different outcomes since the numbers come from different dice.
    1st die/2nd die 1 2 3 4 5 6
    1 2 3 4 5 6 7
    2 3 4 5 6 7 8
    3 4 5 6 7 8 9
    4 5 6 7 8 9 10
    5 6 7 8 9 10 11
    6 7 8 9 10 11 12

    Thus, P(8) =\(\dfrac{5}{36}\) = 0.1389.

    1. Highlight all the places where a sum of 5 or a sum of 8 occurs. There are 9 pairs where the sum of the two dice is a 5 or an 8. Note that rolling a sum of 5 is mutually exclusive from rolling a sum of 8 so the probability is zero for the intersection of the two events.
    1st die/2nd die 1 2 3 4 5 6
    1 2 3 4 5 6 7
    2 3 4 5 6 7 8
    3 4 5 6 7 8 9
    4 5 6 7 8 9 10
    5 6 7 8 9 10 11
    6 7 8 9 10 11 12

    Thus, the P(5 \(\cup\) 8) = P(5) + P(8) – P(5 \(\cap\) 8) = \(\dfrac{4}{36} + \dfrac{5}{36} - 0 = \dfrac{9}{36} = \dfrac{1}{4}\) = 0.25.

    1. The events rolling a sum of 8 and rolling doubles are not mutually exclusive since the pair of fours (4, 4) falls into both events. An easy way is to highlight all the places a sum 8 or doubles occur, count the highlighted values, and divide by the total. Thus, P(8 or Doubles) = \(\dfrac{10}{36} = \dfrac{5}{18}\) = 0.2778.
    1st die/2nd die 1 2 3 4 5 6
    1 2 3 4 5 6 7
    2 3 4 5 6 7 8
    3 4 5 6 7 8 9
    4 5 6 7 8 9 10
    5 6 7 8 9 10 11
    6 7 8 9 10 11 12

    When using the Addition Rule, we subtract this overlap out one time to account for the pair of 4s being counted twice, once in both events. P(8 \(\cup\) Doubles) = P(8) + P(Doubles) – P(8 \(\cap\) Doubles) = \(\dfrac{5}{36} + \dfrac{6}{36} - \dfrac{1}{36} = \dfrac{10}{36} = \dfrac{5}{18}\) = 0.2778.

    Example \(\PageIndex{4}\)

    Randomly pick a card from a standard deck. A standard deck of cards, not including jokers consists of 4 suits called clubs = ♣, spades = ♠, hearts = , and diamonds = . The clubs and spades are the black cards. The hearts and diamonds are the red cards. Each suit has 13 cards. The numbered cards shown in Figure \(\PageIndex{7}\), are Ace = 1 or A, 2, 3, 4, 5, 6, 7, 8, 9, 10. The face cards are the Jack = J, Queen = Q, and King = K.

    Deck of cards:  ace, 2, 3, 4, 5, 6, 7, 8, 9, 19, jack, queen and king for clubs (black), spades (black), hearts (red) and diamonds (red).

    Figure \(\PageIndex{7}\)

    1. Find the probability of selecting a card that shows a club.
    2. Find the probability of selecting a heart or a spade card.
    3. Find the probability of selecting a spade or a face card.
    Solution
    1. There are 52 cards in a standard deck and 13 clubs. Thus, P(♣) = \(\dfrac{13}{52} = \dfrac{1}{4}\) = 0.25.
    2. There are 52 cards in a standard deck and 13 cards of each suit. Hearts and spades are mutually exclusive since there are no hearts that are also spades. Thus, P( \(\cup\) ♠) = P() + P(♠) - P( \(\cap\) ♠) = \(\dfrac{13}{52} + \dfrac{13}{52} - 0 = \dfrac{26}{52} = \dfrac{1}{2}\) = 0.5.
    3. There are 13 spades and 12 face cards. However, there are 3 cards that are both spades and face cards. P(♠ \(\cup\) FC) = P(♠) + P(FC) – P(♠ \(\cap\) FC) = \(\dfrac{13}{52} + \dfrac{12}{52} - \dfrac{3}{52} = \dfrac{22}{52} = \dfrac{11}{26}\)= 0.4231.

    Deck of cards:  ace, 2, 3, 4, 5, 6, 7, 8, 9, 19, jack, queen and king for clubs (black), spades (black), hearts (red) and diamonds (red).  Blue outline around spades and all face cards.

    Since the sample space is small, you could just count how many spades and face cards there are.

    Words Are Important!

    When working with probability, words such as “more than” or “less than” can drastically change the answer. Figure \(\PageIndex{8}\) shows some of the common phrases you may run into while reading a problem. It will be essential later in the course that you can correctly match these phrases with their correct symbol.

    =
    is the same as is less than or equal to is greater than or equal to
    is equal to is at most is at least
    is exactly the same as is not greater than is not less than
    has not changed from within  
    > <
    is not more than less than
    is not equal to greater than below
    is different from above lower than
    has changed from higher than shorter than
    is not the same as longer than smaller than
      bigger than decreased
      increased reduced

    Figure \(\PageIndex{8}\)

    Example \(\PageIndex{5}\)

    Use a random experiment consisting of rolling two dice and adding the numbers on the faces.

    1. Find the probability of rolling a sum of less than 5.
    2. Find the probability of rolling a sum of 5 or less.
    Solution
    1. Let X be the sum of the faces when rolling two dice. A sum less than 5 would not include 5. For notation, we use P(X < 5), which is read as the “probability that X is less than five.” Highlight all the sums that are less than 5.
    1st die/2nd die 1 2 3 4 5 6
    1 2 3 4 5 6 7
    2 3 4 5 6 7 8
    3 4 5 6 7 8 9
    4 5 6 7 8 9 10
    5 6 7 8 9 10 11
    6 7 8 9 10 11 12

    Thus, P(X < 5) = \(\dfrac{6}{36} = \dfrac{1}{6}\) = 0.1667.

    1. Let X be the sum of the faces when rolling two dice. A sum of 5 or less includes 5. For notation, we can use P(X ≤ 5), which is read as the “probability that X is less than or equal to five.” Highlight all the sums that are 5 or less.
    1st die/2nd die 1 2 3 4 5 6
    1 2 3 4 5 6 7
    2 3 4 5 6 7 8
    3 4 5 6 7 8 9
    4 5 6 7 8 9 10
    5 6 7 8 9 10 11
    6 7 8 9 10 11 12

    Thus, P(X ≤ 5) = \(\dfrac{10}{36} = \dfrac{5}{18}\) = 0.2778.


    This page titled 3.4: Union and Intersection is shared under a CC BY-SA 4.0 license and was authored, remixed, and/or curated by Rachel Webb via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.