Union of sets

First taught in High school statistics

Definition

The union of two sets and , written , is the set of all elements that are in , in , or in both.

UAB1 36 82 4
Everything inside either circle is in A ∪ B.
Advertisement

Example: and .

Elements that are in both sets (2 and 4) are listed only once.

Think of the word "or": an element is in if it is in or in .

Counting: to find how many elements are in the union, add the two sets and subtract the overlap so it is not counted twice:

The same idea gives the addition rule in probability: . Compare with the intersection.

Advertisement