In this section we introduce set theory with the aim of defining sample spaces and events.
Sets and Subsets
A set is a collection of objects. For example, the set is a set of the numbers 1, 2, and 3 and is the set containing a single element . For a set , we denote (read, in ) to mean that is an element of the set . We denote (read, not in ) to mean that is not an element of .
Ordering and repetition doesn’t matter for sets. So and
If a set is empty, we call this the null or empty set and denote it as or .
Let and be sets. Then if for each we have that , then we say that is a subset of We also say that is contained in which we write as (or that contains which is denoted as ).
By definition, is always a subset of itself. Additionally, the empty set is always a subset of .
Two sets are equal if and only if both and are true. This is typically how we prove equality of sets.
You have certainly encountered subsets of the real numbers (We denote the set of real numbers to be ). For any pair of real numbers and such that , the set of all real numbers such that is called the closed interval from to and denoted as . Similarly, for , we denote the set as and call it the open interval from to . and are half-open intervals and denoted as and respectively. Note that .
Additionally, sets can contain other sets. For example, the set is a set that contains 2 objects, 1 of which is a set that contains and and the other is a set that contains the numbers 1 and 2.
Let be any set. The set of all possible subsets of is called the power set and is denoted as . That is, .
Set Operations: Union, Intersection, and Complement
Let and be sets. The union of the sets and is the set of all elements such that or (“or” in mathematics is inclusive) which we denote
The intersection of and is the set of all elements such that and which we denote
Let . The complement of in is the set of all elements in but not in which we denote by or if we assume to be in .
Theorem 1.1.1 (DeMorgan's Laws):
Let Then
a.)
b.)
Proof of (a): Suppose Then and Thus, and which is the same as and Therefore, This shows that
Conversely, suppose Then and and Thus, and and therefore It follows that and thus
Hence, we have shown that
The proof of (b) follows similarly.
Indexed Families of Sets
Let be a set, not necessarily countable. For each let be a subset of a given set We call an indexing set and the collection of the subsets of indexed by the elements of an indexed family of subsets of We denote this indexed family of subsets of by (read, “A sub-alpha, alpha in ”).
Let be an indexed family of subsets of a set The union of this indexed family, written (read "union over in of ") is the set of all elements such that for at least one index The intersection of this indexed family, written (read "intersection over in of ") is the set of all elements such that for each
For example, let be respectively the set of freshmen, sophomores, juniors, and seniors at UCSD. Here, we have as an indexing set, and is the set of undergraduates while
If then
Theorem 1.1.2 (DeMorgan's Laws):
Let be an indexed family of subsets of a set Then
a.)
b.)
Products of Sets
Let and be objects. Then the ordered pair is a sequence of two objects. Note that unlike sets, where ordering doesn’t matter, if then
Let and be sets. The Cartesian product of and , written (read “ cross ”) is the set whose elements are all ordered pairs such that and
For example, Also, the familiar 2d coordinate plane is the Cartesian product of and , denoted or
Unless then and are distinct.
Let be a finite sequence of sets, indexed by The direct product of , written
is the set consisting of all sequences such that
The set of points of Euclidean -space is an example of a direct product of sets.
An element is a sequence of real numbers. In general, if the sets are all equal to the same set , we write
and call an element an -tuple.