This is “Complements, Intersections, and Unions”, section 3.2 from the book Beginning Statistics (v. 1.0). For details on it (including licensing), click here.

For more information on the source of this book, or why it is available for free, please see the project's home page. You can browse or download additional books there. To download a .zip file containing this book to use offline, simply click here.

Has this book helped you? Consider passing it on:
Creative Commons supports free culture from music to education. Their licenses helped make this book available to you.
DonorsChoose.org helps people like you help teachers fund their classroom projects, from art supplies to books to calculators.

3.2 Complements, Intersections, and Unions

Learning Objectives

  1. To learn how some events are naturally expressible in terms of other events.
  2. To learn how to use special formulas for the probability of an event that is expressed in terms of one or more other events.

Some events can be naturally expressed in terms of other, sometimes simpler, events.

Complements

Definition

The complement of an eventThe event does not occur. A in a sample space S, denoted Ac, is the collection of all outcomes in S that are not elements of the set A. It corresponds to negating any description in words of the event A.

Example 10

Two events connected with the experiment of rolling a single die are E: “the number rolled is even” and T: “the number rolled is greater than two.” Find the complement of each.

Solution:

In the sample space S={1,2,3,4,5,6} the corresponding sets of outcomes are E={2,4,6} and T={3,4,5,6}. The complements are Ec={1,3,5} and Tc={1,2}.

In words the complements are described by “the number rolled is not even” and “the number rolled is not greater than two.” Of course easier descriptions would be “the number rolled is odd” and “the number rolled is less than three.”

If there is a 60% chance of rain tomorrow, what is the probability of fair weather? The obvious answer, 40%, is an instance of the following general rule.

Probability Rule for Complements

P(Ac)=1P(A)

This formula is particularly useful when finding the probability of an event directly is difficult.

Example 11

Find the probability that at least one heads will appear in five tosses of a fair coin.

Solution:

Identify outcomes by lists of five hs and ts, such as tthtt and hhttt. Although it is tedious to list them all, it is not difficult to count them. Think of using a tree diagram to do so. There are two choices for the first toss. For each of these there are two choices for the second toss, hence 2×2=4 outcomes for two tosses. For each of these four outcomes, there are two possibilities for the third toss, hence 4×2=8 outcomes for three tosses. Similarly, there are 8×2=16 outcomes for four tosses and finally 16×2=32 outcomes for five tosses.

Let O denote the event “at least one heads.” There are many ways to obtain at least one heads, but only one way to fail to do so: all tails. Thus although it is difficult to list all the outcomes that form O, it is easy to write Oc={ttttt}. Since there are 32 equally likely outcomes, each has probability 1/32, so P(Oc)=132, hence P(O)=11320.97 or about a 97% chance.

Intersection of Events

Definition

The intersection of eventsBoth events occur. A and B, denoted AB, is the collection of all outcomes that are elements of both of the sets A and B. It corresponds to combining descriptions of the two events using the word “and.”

To say that the event AB occurred means that on a particular trial of the experiment both A and B occurred. A visual representation of the intersection of events A and B in a sample space S is given in Figure 3.4 "The Intersection of Events ". The intersection corresponds to the shaded lens-shaped region that lies within both ovals.

Figure 3.4 The Intersection of Events A and B

Example 12

In the experiment of rolling a single die, find the intersection ET of the events E: “the number rolled is even” and T: “the number rolled is greater than two.”

Solution:

The sample space is S={1,2,3,4,5,6}. Since the outcomes that are common to E={2,4,6} and T={3,4,5,6} are 4 and 6, ET={4,6}.

In words the intersection is described by “the number rolled is even and is greater than two.” The only numbers between one and six that are both even and greater than two are four and six, corresponding to ET given above.

Example 13

A single die is rolled.

  1. Suppose the die is fair. Find the probability that the number rolled is both even and greater than two.
  2. Suppose the die has been “loaded” so that P(1)=112, P(6)=312, and the remaining four outcomes are equally likely with one another. Now find the probability that the number rolled is both even and greater than two.

Solution:

In both cases the sample space is S={1,2,3,4,5,6} and the event in question is the intersection ET={4,6} of the previous example.

  1. Since the die is fair, all outcomes are equally likely, so by counting we have P(ET)=26.
  2. The information on the probabilities of the six outcomes that we have so far is

    Outcome123456Probablity112pppp312

Since P(1)+P(6)=412=13 and the probabilities of all six outcomes add up to 1,

P(2)+P(3)+P(4)+P(5)=113=23

Thus 4p=23, so p=16. In particular P(4)=16. Therefore

P(ET)=P(4)+P(6)=16+312=512

Definition

Events A and B are mutually exclusiveEvents that cannot both occur at once. if they have no elements in common.

For A and B to have no outcomes in common means precisely that it is impossible for both A and B to occur on a single trial of the random experiment. This gives the following rule.

Probability Rule for Mutually Exclusive Events

Events A and B are mutually exclusive if and only if

P(AB)=0

Any event A and its complement Ac are mutually exclusive, but A and B can be mutually exclusive without being complements.

Example 14

In the experiment of rolling a single die, find three choices for an event A so that the events A and E: “the number rolled is even” are mutually exclusive.

Solution:

Since E={2,4,6} and we want A to have no elements in common with E, any event that does not contain any even number will do. Three choices are {1,3,5} (the complement Ec, the odds), {1,3}, and {5}.

Union of Events

Definition

The union of eventsOne or the other event occurs. A and B, denoted AB, is the collection of all outcomes that are elements of one or the other of the sets A and B, or of both of them. It corresponds to combining descriptions of the two events using the word “or.”

To say that the event AB occurred means that on a particular trial of the experiment either A or B occurred (or both did). A visual representation of the union of events A and B in a sample space S is given in Figure 3.5 "The Union of Events ". The union corresponds to the shaded region.

Figure 3.5 The Union of Events A and B

Example 15

In the experiment of rolling a single die, find the union of the events E: “the number rolled is even” and T: “the number rolled is greater than two.”

Solution:

Since the outcomes that are in either E={2,4,6} or T={3,4,5,6} (or both) are 2, 3, 4, 5, and 6, ET={2,3,4,5,6}. Note that an outcome such as 4 that is in both sets is still listed only once (although strictly speaking it is not incorrect to list it twice).

In words the union is described by “the number rolled is even or is greater than two.” Every number between one and six except the number one is either even or is greater than two, corresponding to ET given above.

Example 16

A two-child family is selected at random. Let B denote the event that at least one child is a boy, let D denote the event that the genders of the two children differ, and let M denote the event that the genders of the two children match. Find BD and BM.

Solution:

A sample space for this experiment is S={bb,bg,gb,gg}, where the first letter denotes the gender of the firstborn child and the second letter denotes the gender of the second child. The events B, D, and M are

B={bb,bg,gb}D={bg,gb}M={bb,gg}

Each outcome in D is already in B, so the outcomes that are in at least one or the other of the sets B and D is just the set B itself: BD={bb,bg,gb}=B.

Every outcome in the whole sample space S is in at least one or the other of the sets B and M, so BM={bb,bg,gb,gg}=S.

The following Additive Rule of Probability is a useful formula for calculating the probability of AB.

Additive Rule of Probability

P(AB)=P(A)+P(B)P(AB)

The next example, in which we compute the probability of a union both by counting and by using the formula, shows why the last term in the formula is needed.

Example 17

Two fair dice are thrown. Find the probabilities of the following events:

  1. both dice show a four
  2. at least one die shows a four

Solution:

As was the case with tossing two identical coins, actual experience dictates that for the sample space to have equally likely outcomes we should list outcomes as if we could distinguish the two dice. We could imagine that one of them is red and the other is green. Then any outcome can be labeled as a pair of numbers as in the following display, where the first number in the pair is the number of dots on the top face of the green die and the second number in the pair is the number of dots on the top face of the red die.

111213141516212223242526313233343536414243444546515253545556616263646566
  1. There are 36 equally likely outcomes, of which exactly one corresponds to two fours, so the probability of a pair of fours is 1/36.
  2. From the table we can see that there are 11 pairs that correspond to the event in question: the six pairs in the fourth row (the green die shows a four) plus the additional five pairs other than the pair 44, already counted, in the fourth column (the red die is four), so the answer is 11/36. To see how the formula gives the same number, let AG denote the event that the green die is a four and let AR denote the event that the red die is a four. Then clearly by counting we get P(AG)=636 and P(AR)=636. Since AGAR={44}, P(AGAR)=136; this is the computation in part (a), of course. Thus by the Additive Rule of Probability,

    P(AGAR)=P(AG)+P(AR)P(AGAR)=636+636136=1136

Example 18

A tutoring service specializes in preparing adults for high school equivalence tests. Among all the students seeking help from the service, 63% need help in mathematics, 34% need help in English, and 27% need help in both mathematics and English. What is the percentage of students who need help in either mathematics or English?

Solution:

Imagine selecting a student at random, that is, in such a way that every student has the same chance of being selected. Let M denote the event “the student needs help in mathematics” and let E denote the event “the student needs help in English.” The information given is that P(M)=0.63, P(E)=0.34, and P(ME)=0.27. The Additive Rule of Probability gives

P(ME)=P(M)+P(E)P(ME)=0.63+0.340.27=0.70

Note how the naïve reasoning that if 63% need help in mathematics and 34% need help in English then 63 plus 34 or 97% need help in one or the other gives a number that is too large. The percentage that need help in both subjects must be subtracted off, else the people needing help in both are counted twice, once for needing help in mathematics and once again for needing help in English. The simple sum of the probabilities would work if the events in question were mutually exclusive, for then P(AB) is zero, and makes no difference.

Example 19

Volunteers for a disaster relief effort were classified according to both specialty (C: construction, E: education, M: medicine) and language ability (S: speaks a single language fluently, T: speaks two or more languages fluently). The results are shown in the following two-way classification table:

Specialty Language Ability
S T
C 12 1
E 4 3
M 6 2

The first row of numbers means that 12 volunteers whose specialty is construction speak a single language fluently, and 1 volunteer whose specialty is construction speaks at least two languages fluently. Similarly for the other two rows.

A volunteer is selected at random, meaning that each one has an equal chance of being chosen. Find the probability that:

  1. his specialty is medicine and he speaks two or more languages;
  2. either his specialty is medicine or he speaks two or more languages;
  3. his specialty is something other than medicine.

Solution:

When information is presented in a two-way classification table it is typically convenient to adjoin to the table the row and column totals, to produce a new table like this:

Specialty Language Ability Total
S T
C 12 1 13
E 4 3 7
M 6 2 8
Total 22 6 28
  1. The probability sought is P(MT). The table shows that there are 2 such people, out of 28 in all, hence P(MT)=2280.07 or about a 7% chance.
  2. The probability sought is P(MT). The third row total and the grand total in the sample give P(M)=828. The second column total and the grand total give P(T)=628. Thus using the result from part (a),

    P(MT)=P(M)+P(T)P(MT)=828+628228=12280.43

    or about a 43% chance.

  3. This probability can be computed in two ways. Since the event of interest can be viewed as the event CE and the events C and E are mutually exclusive, the answer is, using the first two row totals,

    P(CE)=P(C)+P(E)P(CE)=1328+728028=20280.71

    On the other hand, the event of interest can be thought of as the complement Mc of M, hence using the value of P(M) computed in part (b),

    P(Mc)=1P(M)=1828=20280.71

    as before.

Key Takeaway

  • The probability of an event that is a complement or union of events of known probability can be computed using formulas.

Exercises

    Basic

  1. For the sample space S={a,b,c,d,e} identify the complement of each event given.

    1. A={a,d,e}
    2. B={b,c,d,e}
    3. S
  2. For the sample space S={r,s,t,u,v} identify the complement of each event given.

    1. R={t,u}
    2. T={r}
    3. ∅ (the “empty” set that has no elements)
  3. The sample space for three tosses of a coin is

    S={hhh,hht,hth,htt,thh,tht,tth,ttt}

    Define events

    H:at least one head is observedM:more heads than tails are observed
    1. List the outcomes that comprise H and M.
    2. List the outcomes that comprise HM, HM, and Hc.
    3. Assuming all outcomes are equally likely, find P(HM), P(HM), and P(Hc).
    4. Determine whether or not Hc and M are mutually exclusive. Explain why or why not.
  4. For the experiment of rolling a single six-sided die once, define events

    T:the number rolled is threeG:the number rolled is four or greater
    1. List the outcomes that comprise T and G.
    2. List the outcomes that comprise TG, TG, Tc, and (TG)c.
    3. Assuming all outcomes are equally likely, find P(TG), P(TG), and P(Tc).
    4. Determine whether or not T and G are mutually exclusive. Explain why or why not.
  5. A special deck of 16 cards has 4 that are blue, 4 yellow, 4 green, and 4 red. The four cards of each color are numbered from one to four. A single card is drawn at random. Define events

    B:the card is blueR:the card is redN:the number on the card is at most two
    1. List the outcomes that comprise B, R, and N.
    2. List the outcomes that comprise BR, BR, BN, RN, Bc, and (BR)c.
    3. Assuming all outcomes are equally likely, find the probabilities of the events in the previous part.
    4. Determine whether or not B and N are mutually exclusive. Explain why or why not.
  6. In the context of the previous problem, define events

    Y:the card is yellowI:the number on the card is not a oneJ:the number on the card is a two or a four
    1. List the outcomes that comprise Y, I, and J.
    2. List the outcomes that comprise YI, YJ, IJ, Ic, and (YJ)c.
    3. Assuming all outcomes are equally likely, find the probabilities of the events in the previous part.
    4. Determine whether or not Ic and J are mutually exclusive. Explain why or why not.
  7. The Venn diagram provided shows a sample space and two events A and B. Suppose P(a)=0.13, P(b)=0.09, P(c)=0.27, P(d)=0.20, and P(e)=0.31. Confirm that the probabilities of the outcomes add up to 1, then compute the following probabilities.

     

    1. P(A).
    2. P(B).
    3. P(Ac) two ways: (i) by finding the outcomes in Ac and adding their probabilities, and (ii) using the Probability Rule for Complements.
    4. P(AB).
    5. P(AB) two ways: (i) by finding the outcomes in AB and adding their probabilities, and (ii) using the Additive Rule of Probability.
  8. The Venn diagram provided shows a sample space and two events A and B. Suppose P(a)=0.32, P(b)=0.17, P(c)=0.28, and P(d)=0.23. Confirm that the probabilities of the outcomes add up to 1, then compute the following probabilities.

     

    1. P(A).
    2. P(B).
    3. P(Ac) two ways: (i) by finding the outcomes in Ac and adding their probabilities, and (ii) using the Probability Rule for Complements.
    4. P(AB).
    5. P(AB) two ways: (i) by finding the outcomes in AB and adding their probabilities, and (ii) using the Additive Rule of Probability.
  9. Confirm that the probabilities in the two-way contingency table add up to 1, then use it to find the probabilities of the events indicated.

    U V W
    A 0.15 0.00 0.23
    B 0.22 0.30 0.10
    1. P(A), P(B), P(AB).
    2. P(U), P(W), P(UW).
    3. P(UW).
    4. P(Vc).
    5. Determine whether or not the events A and U are mutually exclusive; the events A and V.
  10. Confirm that the probabilities in the two-way contingency table add up to 1, then use it to find the probabilities of the events indicated.

    R S T
    M 0.09 0.25 0.19
    N 0.31 0.16 0.00
    1. P(R), P(S), P(RS).
    2. P(M), P(N), P(MN).
    3. P(RS).
    4. P(Rc).
    5. Determine whether or not the events N and S are mutually exclusive; the events N and T.

    Applications

  1. Make a statement in ordinary English that describes the complement of each event (do not simply insert the word “not”).

    1. In the roll of a die: “five or more.”
    2. In a roll of a die: “an even number.”
    3. In two tosses of a coin: “at least one heads.”
    4. In the random selection of a college student: “Not a freshman.”
  2. Make a statement in ordinary English that describes the complement of each event (do not simply insert the word “not”).

    1. In the roll of a die: “two or less.”
    2. In the roll of a die: “one, three, or four.”
    3. In two tosses of a coin: “at most one heads.”
    4. In the random selection of a college student: “Neither a freshman nor a senior.”
  3. The sample space that describes all three-child families according to the genders of the children with respect to birth order is

    S={bbb,bbg,bgb,bgg,gbb,gbg,ggb,ggg}.

    For each of the following events in the experiment of selecting a three-child family at random, state the complement of the event in the simplest possible terms, then find the outcomes that comprise the event and its complement.

    1. At least one child is a girl.
    2. At most one child is a girl.
    3. All of the children are girls.
    4. Exactly two of the children are girls.
    5. The first born is a girl.
  4. The sample space that describes the two-way classification of citizens according to gender and opinion on a political issue is

    S={mf,ma,mn,ff,fa,fn},

    where the first letter denotes gender (m: male, f: female) and the second opinion (f: for, a: against, n: neutral). For each of the following events in the experiment of selecting a citizen at random, state the complement of the event in the simplest possible terms, then find the outcomes that comprise the event and its complement.

    1. The person is male.
    2. The person is not in favor.
    3. The person is either male or in favor.
    4. The person is female and neutral.
  5. A tourist who speaks English and German but no other language visits a region of Slovenia. If 35% of the residents speak English, 15% speak German, and 3% speak both English and German, what is the probability that the tourist will be able to talk with a randomly encountered resident of the region?

  6. In a certain country 43% of all automobiles have airbags, 27% have anti-lock brakes, and 13% have both. What is the probability that a randomly selected vehicle will have both airbags and anti-lock brakes?

  7. A manufacturer examines its records over the last year on a component part received from outside suppliers. The breakdown on source (supplier A, supplier B) and quality (H: high, U: usable, D: defective) is shown in the two-way contingency table.

    H U D
    A 0.6937 0.0049 0.0014
    B 0.2982 0.0009 0.0009

    The record of a part is selected at random. Find the probability of each of the following events.

    1. The part was defective.
    2. The part was either of high quality or was at least usable, in two ways: (i) by adding numbers in the table, and (ii) using the answer to (a) and the Probability Rule for Complements.
    3. The part was defective and came from supplier B.
    4. The part was defective or came from supplier B, in two ways: by finding the cells in the table that correspond to this event and adding their probabilities, and (ii) using the Additive Rule of Probability.
  8. Individuals with a particular medical condition were classified according to the presence (T) or absence (N) of a potential toxin in their blood and the onset of the condition (E: early, M: midrange, L: late). The breakdown according to this classification is shown in the two-way contingency table.

    E M L
    T 0.012 0.124 0.013
    N 0.170 0.638 0.043

    One of these individuals is selected at random. Find the probability of each of the following events.

    1. The person experienced early onset of the condition.
    2. The onset of the condition was either midrange or late, in two ways: (i) by adding numbers in the table, and (ii) using the answer to (a) and the Probability Rule for Complements.
    3. The toxin is present in the person’s blood.
    4. The person experienced early onset of the condition and the toxin is present in the person’s blood.
    5. The person experienced early onset of the condition or the toxin is present in the person’s blood, in two ways: (i) by finding the cells in the table that correspond to this event and adding their probabilities, and (ii) using the Additive Rule of Probability.
  9. The breakdown of the students enrolled in a university course by class (F: freshman, So: sophomore, J: junior, Se: senior) and academic major (S: science, mathematics, or engineering, L: liberal arts, O: other) is shown in the two-way classification table.

    Major Class
    F So J Se
    S 92 42 20 13
    L 368 167 80 53
    O 460 209 100 67

    A student enrolled in the course is selected at random. Adjoin the row and column totals to the table and use the expanded table to find the probability of each of the following events.

    1. The student is a freshman.
    2. The student is a liberal arts major.
    3. The student is a freshman liberal arts major.
    4. The student is either a freshman or a liberal arts major.
    5. The student is not a liberal arts major.
  10. The table relates the response to a fund-raising appeal by a college to its alumni to the number of years since graduation.

    Response Years Since Graduation
    0–5 6–20 21–35 Over 35
    Positive 120 440 210 90
    None 1380 3560 3290 910

    An alumnus is selected at random. Adjoin the row and column totals to the table and use the expanded table to find the probability of each of the following events.

    1. The alumnus responded.
    2. The alumnus did not respond.
    3. The alumnus graduated at least 21 years ago.
    4. The alumnus graduated at least 21 years ago and responded.

    Additional Exercises

  1. The sample space for tossing three coins is

    S={hhh,hht,hth,htt,thh,tht,tth,ttt}
    1. List the outcomes that correspond to the statement “All the coins are heads.”
    2. List the outcomes that correspond to the statement “Not all the coins are heads.”
    3. List the outcomes that correspond to the statement “All the coins are not heads.”

Answers

    1. {b,c}
    2. {a}
    1. H={hhh,hht,hth,htt,thh,tht,tth}, M={hhh,hht,hth,thh}
    2. HM={hhh,hht,hth,thh}, HM=H, Hc={ttt}
    3. P(HM)=48, P(HM)=78, P(Hc)=18
    4. Mutually exclusive because they have no elements in common.
    1. B={b1,b2,b3,b4}, R={r1,r2,r3,r4}, N={b1,b2,y1,y2,g1,g2,r1,r2}
    2. BR=, BR={b1,b2,b3,b4,r1,r2,r3,r4}, BN={b1,b2}, RN={b1,b2,y1,y2,g1,g2,r1,r2,r3,r4}, Bc={y1,y2,y3,y4,g1,g2,g3,g4,r1,r2,r3,r4}, (BR)c={y1,y2,y3,y4,g1,g2,g3,g4}
    3. P(BR)=0, P(BR)=816, P(BN)=216, P(RN)=1016, P(Bc)=1216, P((BR)c)=816
    4. Not mutually exclusive because they have an element in common.
    1. 0.36
    2. 0.78
    3. 0.64
    4. 0.27
    5. 0.87
    1. P(A)=0.38, P(B)=0.62, P(AB)=0
    2. P(U)=0.37, P(W)=0.33, P(UW)=0
    3. 0.7
    4. 0.7
    5. A and U are not mutually exclusive because P(AU) is the nonzero number 0.15. A and V are mutually exclusive because P(AV)=0.
    1. “four or less”
    2. “an odd number”
    3. “no heads” or “all tails”
    4. “a freshman”
    1. “All the children are boys.”

      Event: {bbg,bgb,bgg,gbb,gbg,ggb,ggg},

      Complement: {bbb}

    2. “At least two of the children are girls” or “There are two or three girls.”

      Event: {bbb,bbg,bgb,gbb},

      Complement: {bgg,gbg,ggb,ggg}

    3. “At least one child is a boy.”

      Event: {ggg},

      Complement: {bbb,bbg,bgb,bgg,gbb,gbg,ggb}

    4. “There are either no girls, exactly one girl, or three girls.”

      Event: {bgg,gbg,ggb},

      Complement: {bbb,bbg,bgb,gbb,ggg}

    5. “The first born is a boy.”

      Event: {gbb,gbg,ggb,ggg},

      Complement: {bbb,bbg,bgb,bgg}

  1. 0.47

    1. 0.0023
    2. 0.9977
    3. 0.0009
    4. 0.3014
    1. 920/1671
    2. 668/1671
    3. 368/1671
    4. 1220/1671
    5. 1003/1671
    1. {hhh}
    2. {hht,hth,htt,thh,tht,tth,ttt}
    3. {ttt}