Free preview
15 lessons
Essential Probability & Statistics for ML
Free preview
Essential Probability & Statistics for ML · 15 lessons
No surprise gaps
Actually remember it
Skip what you know
One subscription. All learning paths included.
Our content is best on a larger screen
Exactly one of ,
We are often interested in determining when exactly one of two events has occurred, but not both. For example, let be the event "a student passes the first exam" and the event "the student passes the second exam". The student passes exactly one exam by passing the first and failing the second, or by failing the first and passing the second.
The first case is and the second is . Either case counts, so we take the union of the two events.
Definition
The event that exactly one of and occurs is
This is not , because the union also contains the overlap , where both events occur.
The diagram below builds the event on a Venn diagram in four steps. Work through them with the buttons.
The shaded region holds the outcomes in
It is also the set difference
Two coins are flipped, so . Let be the event "the first coin shows heads" and the event "the second coin shows heads". Write the event "exactly one head" as a set expression in and , and list its outcomes.
Solution
Exactly one head means one coin shows heads and the other does not. Either the first coin shows heads and the second does not, which is , or the second shows heads and the first does not, which is . Either case counts, so the event is the union:
To list it, we write out the two events and their complements:
The only outcome in both and is , and the only outcome in both and is :
These are the differences and . Joining them gives the event:
The outcome lies in the overlap, where both events occur, and lies outside both circles, where neither occurs. Neither is in the shaded regions below.
Practice questions
4 questions
A standard die is rolled, so . Let be "the roll is even" and be "the roll is greater than ".
Which set is the event that exactly one of , occurs?
Select the correct answer:
+ 3 more questions
Exactly one as union minus overlap
Another way to build "exactly one of , " starts from the union. The union is the event that at least one of , occurs. It contains every outcome where exactly one occurs, but also the overlap , where both occur.
So we remove the overlap from the union. This is the set difference
The diagram below builds the event in two steps. Work through them with the buttons.
The union holds every outcome where
Writing the set difference as an intersection with a complement gives a second form.
Theorem
The event that exactly one of and occurs is
On the diagram, removing the overlap from the union leaves the outcomes in only, , and those in only, . So both forms describe the same event as .
| Event | Reads as |
|---|---|
| but not , or but not | |
| at least one, with both removed | |
| at least one, and not both |
All three describe the same event. Many events can be written in more than one way, and which form is easiest to work with depends on the information we have.
Here, if and are listed, the first applies directly. If we know only the union and the overlap, the second does. If we know only that at least one occurs and that not both occur, the third does.
A spinner lands on one of the numbers to , so . Let be "the number is at most " and be "the number is odd". Find the event that exactly one of , occurs.
Solution
Listing the outcomes of each event:
The union holds the numbers in at least one event, and the overlap holds the numbers in both:
Exactly one event occurs on the union with the overlap removed:
The numbers and are at most but even, and is odd but greater than .
Practice questions
4 questions
Two events and in have
Which set is the event that exactly one of , occurs?
Select the correct answer:
+ 3 more questions