Sets and Algebra of Sets
Set
Sample Space
- sample space
- a set describing all possible outcomes of a random experiment
I use to denote a sample space, but is another common choice. I draw a sample space as a rectangle, where you are to believe that there are all possible outcomes contained within the rectangle.
Sample Space
- subset
- is a subset of if all elements of are also elements of
We write and read this as is a subset of . The set is referred to as a superset of .
For the picture above, , which is to say that and further . If might be equal to its superset , the symbol could be used. This symbol is analogous to ; for two numbers , it might be the case that .
Sometimes there is no benefit from referencing the sample space, , and so pictures may exclude the sample space altogether.
Subset
- intersection
- TODO do better: the set of elements in both the first set and the second set
Example.
Let and . Then .
The symbol used for intersection is , sometimes called cap.
Intersection is a binary operation, much like addition . Intersection is a binary set operation, meaning it operates on two sets. One set written on the left of and one set written on the right.
Example.
Let and . Then .
One can take the intersection of more than two sets, even though the operation technically works two sets at a time. The notation is for sets .
Intersection
A set doesn't necessarily contain any elements. In relation to intersection, two sets need not have any elements in common.
- empty set
- the set that contains no elements
One symbol used for the empty set is , which is distinct from the Greek letter . Another way to write the empty set is with two curly braces and nothing between them .
Example.
Let and . Then .
Intersection
- union
- TODO do better: the set of elements in either the first set or the second set
The symbol for union is , sometimes called cup.
Example.
Let and . Then the union of and might be written .
Notice the keyword or in the definition union. What do you think is the keyword in the definition of intersection, separating the definitions of union and intersection?
Empty Set
- subset
- a set where every element in the smaller set is contained in a larger set
The symbol for subset is .
Example.
Let represent all letters of the English alphabet. The vowels are a subset of , .
Example.
Let represent the natural numbers. The even numbers are a subset of , .
Note that the word subset generally refers to the smaller of two sets. The word superset generally refers to the bigger.
If the subset is possibly equal to the superset, then the symbol is sometimes used.
Union
- complement
- TODO do better, what base set? the set of elements not in the base set
Many different symbols are used for the set complement. If is the base set, then the complement of might be written as , , or . The last can be more specifically called the relative complement or the set difference and is important when reference to a superset, say , contributes useful information. Think of the set difference as starting with the superset and then removing or subtracting out all of the elements of .
Example.
Let represent all the letters of the English alphabet. Let represent all the vowels. The set then represents all the consonants.
Complement
A partition is easy to see, but takes a few definitions to write down rigorously.
Example.
TODO insert picture
We state two definitions before giving the definition of partition.
- disjoint
- two sets are disjoint when their intersection is the empty set
- exhaustive
- a collection of sets whose union equals the complete space
- partition
- a collection of sets which are non-empty, (mutually) disjoint, and exhaustive of a superset
Example.
Let . A partition of is
Partition
Complement (set theory). Wikipedia: The Free Encyclopedia. Wikimedia Foundation, Inc. Accessed 2023-09-08.
Intersection. Wikipedia: The Free Encyclopedia. Wikimedia Foundation, Inc. Accessed 2023-09-08.
This work is licensed under the Creative Commons Attribution 4.0 International License.