Set Theory

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 {1,2,3} is a set of the numbers 1, 2, and 3 and {a} is the set containing a single element a. For a set A, we denote aA (read, a in A) to mean that a is an element of the set A. We denote aA (read, a not in A) to mean that a is not an element of A.

Ordering and repetition doesn’t matter for sets. So {a,b,c}={a,c,b} and {a,a,b}={a,b}

If a set is empty, we call this the null or empty set and denote it as or {}.

Let A and B be sets. Then if for each xA we have that xB, then we say that A is a subset of B. We also say that A is contained in B which we write as AB (or that B contains A which is denoted as BA).

By definition, A is always a subset of itself. Additionally, the empty set is always a subset of A.

Two sets are equal if and only if both AB and BA 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 R). For any pair of real numbers a and b such that a<b, the set of all real numbers x such that axb is called the closed interval from a to b and denoted as [a,b]. Similarly, for a<x<b, we denote the set as (a,b) and call it the open interval from a to b. a<xb and ax<b are half-open intervals and denoted as (a,b] and [a,b) respectively. Note that (a,b)[a,b]R.

Additionally, sets can contain other sets. For example, the set {{a,b},{1,2}} is a set that contains 2 objects, 1 of which is a set that contains a and b and the other is a set that contains the numbers 1 and 2.

Let A be any set. The set of all possible subsets of A is called the power set and is denoted as 2A. That is, B2ABA.

Set Operations: Union, Intersection, and Complement

Let A and B be sets. The union of the sets A and B is the set of all elements x such that xA or xB (“or” in mathematics is inclusive) which we denote AB={x:xA or xB}. The intersection of A and B is the set of all elements x such that xA and xB which we denote AB={x:xA and xB}.

Let AS. The complement of A in S is the set of all elements in S but not in A which we denote by CS(A) or Ac if we assume to be in S. Ac={x:xA}

Theorem 1.1.1 (DeMorgan's Laws): Let AS,BS. Then

a.) (AB)c=AcBc

b.) (AB)c=AcBc

Proof of (a): Suppose x(AB)c. Then xS and xAB. Thus, xA and xB, which is the same as xAc and xBc. Therefore, xAcBc. This shows that (AB)cAcBc. Conversely, suppose xAcBc. Then xS and xAc and xBc. Thus, xA and xB and therefore xAB. It follows that x(AB)c and thus AcBc(AB)c. Hence, we have shown that ACBc=(AB)c.

The proof of (b) follows similarly.

Indexed Families of Sets

Let I be a set, not necessarily countable. For each αI, let Aα be a subset of a given set S. We call I an indexing set and the collection of the subsets of S indexed by the elements of I an indexed family of subsets of S. We denote this indexed family of subsets of S by {Aα}αI (read, “A sub-alpha, alpha in I”).

Let {Aα}αI be an indexed family of subsets of a set S. The union of this indexed family, written αIAα, (read "union over α in I of Aα") is the set of all elements xS such that xAβ for at least one index βI. The intersection of this indexed family, written αIAα (read "intersection over α in I of Aα") is the set of all elements xS such that xAβ for each βI.

For example, let A1,A2,A3,A4 be respectively the set of freshmen, sophomores, juniors, and seniors at UCSD. Here, we have I={1,2,3,4} as an indexing set, and αIAα is the set of undergraduates while αIAα=.

If I=, then αAα= αAα=S.

Theorem 1.1.2 (DeMorgan's Laws): Let {Aα}αI be an indexed family of subsets of a set S. Then

a.) (αIAα)c=αIAαc

b.) (αIAα)c=αIAαc

Products of Sets

Let x and y be objects. Then the ordered pair (x,y) is a sequence of two objects. Note that unlike sets, where ordering doesn’t matter, if xy, then (x,y)(y,x).

Let A and B be sets. The Cartesian product of A and B, written A×B, (read “A cross B”) is the set whose elements are all ordered pairs (x,y) such that xA and yB.

For example, {a,b}×{1,2}={(a,1),(a,2),(b,1),(b,2)}. Also, the familiar 2d coordinate plane is the Cartesian product of R and R, denoted R×R or R2.

Unless A=B, then A×B and B×A are distinct.

Let A1,A2,,An be a finite sequence of sets, indexed by {1,2,,n}. The direct product of A1,A2,,An, written i=1nAi is the set consisting of all sequences (a1,a2,,an) such that a1A1,a2A2,,anAn.

The set of points of Euclidean n-space is an example of a direct product of sets. Rn=i=1nAi

An element xRn is a sequence x=(x1,,xn) of real numbers. In general, if the sets A1,,An are all equal to the same set A, we write An=i=1nAi and call an element a=(a1,a2,,An)An an n-tuple.