Introductory university-level calculus, linear algebra, abstract algebra, probability, statistics, and stochastic processes.
Set operations
Get link
Facebook
X
Pinterest
Email
Other Apps
-
We may construct a new set by combining existing sets through set operations. Thus, sets equipped with set operations form an algebra of sets, so to speak. We will see set operations are closely related to logical operations.
Definition (union of sets)
Let and be sets. Then, their union, denoted , is defined as
That is, is a set consisting of elements that are in or in .
Remark: "" and "" are logical propositions (predicates).
Example: If and , then .
Definition (intersection of sets)
Let and be sets. Then, their intersection, denoted , is defined as
That is, is a set consisting of elements that are in and in .
Remark: The logical "and" (i.e., conjunction) is often written as a comma (",") so that the above definition is often written as
Example: If and , then .
Definition (disjoint sets)
The two sets and are said to be disjoint if .
We know that addition and multiplication of real numbers are commutative. That is, for any , we have
and
Similarly, the set union and intersection are commutative:
Lemma
Let and be sets. Then,
Proof. Let us prove this for the union. Suppose . Then, by definition of union, . But this proposition is equivalent to . Again by the definition of union, this means that . Therefore, . By reversing this argument, we can also show that . Therefore, . More concisely, we can say
The proof for the intersection is left as an exercise. ■
We also know that the addition and multiplication of real numbers are associative. That is, for any , we have
and
This means that, if we first add and , and then add , the result is the same as if we first add and , and then add (similar for the multiplication). The associativity also holds for set union and intersection.
Lemma
Let and be sets. Then,
Proof. Exercise. ■
For ordinary numbers, we have the distributive law. That is, for any , we have
Similar, but different, laws apply to set union and intersection.
Lemma
For any sets and , we have
Proof. Exercise. ■
Note that both the union and intersection distribute over one another. In contrast, addition does not distribute over multiplication:
In ordinary numbers, the number 0 (zero) plays a special role. For any , we have In sets, the empty set plays a similar role.
Lemma
For any set , we have
Proof. Noting that is always false, is true if and only if is true (if in doubt, write down the truth table). Thus,
The other equality is an exercise. ■
Definition (Set difference)
Let and be sets. The set difference, denoted , is defined as
Note that may be also written as
Lemma
and are disjoint. That is,
Proof. Exercise. Hint: may be also written as . ■
It is often convenient to consider a universal set (or universe), that is, the set of all things we ever want to consider, as long as it makes sense. In other words, everything we consider in mathematics is (supposed to be) an element of that universal set. If is a universal set, then, by definition, is always true for any .
Definition (Set complement)
Let be a universal set. For any set , its complement, denoted , is defined as
Remark: Some people have different notations for the set complement: instead of , we may use or , or something else.
Lemma
For any set , we have
That is, the complement of the complement of is itself.
Proof. By definition, and
Since (equivalence), we have
Thus, because is always true () by definition. ■
Lemma
Let be a universal set and be any set. Then,
Proof. Exercise. ■
Theorem (De Morgan's laws (set version))
For any sets and , we have
Proof. Exercise. ■
Set of sets
A set can contain sets as its elements. For example,
is a set. The set of all subsets of a set is called the power set.
Definition (Power set)
Let be a set. The set of all subsets of is called the power set of and denoted or . That is,
Example. Let . Then, .
Example. Let . Then, .
Exercise. What is , the power set of the empty set?
Cartesian products and tuples
We can combine two or more sets to make another set.
Definition (Cartesian product)
Let and be sets. The Cartesian product of and , denoted , is the set defined as
That is, is the set of all ordered pairs, one from , the other from . (We may simply say "pairs" to mean ordered pairs.)
Example. Let and . Then, . □
Note that does not imply . The order matters! Let be two (ordered) pairs. We say that two ordered pairs are equal, if and only if and .
Since is a set, we can make a Cartesian product between and yet another set, say : . That is,
Note that this set is different from as
Nevertheless, we may define them to be equal:
More precisely, we regard the pairs and as equal if and only if and .
Remark: We are actually defining a bijection by . If there exists a bijection between two sets, then these sets are said to be isomorphic. This means they are essentially identical. See the post on maps for some more details about bijections.
Accordingly, we omit the parenthesis:
So,
The elements of are called (ordered) triples.
More generally, let be sets, and we define
the elements of which are called -tuples, or simply tuples.
These can be the same set. In that case, we define the Cartesian power as
Defining the birth process Consider a colony of bacteria that never dies. We study the following process known as the birth process , also known as the Yule process . The colony starts with cells at time . Assume that the probability that any individual cell divides in the time interval is proportional to for small . Further assume that each cell division is independent of others. Let be the birth rate. The probability of a cell division for a population of cells during is . We assume that the probability that two or more births take place in the time interval is . That is, it can be ignored. Consequently, the probability that no cell divides during is . Note that this process is an example of the Markov chain with states \({n_0}, {n_0 + 1}, {n_0 + 2}...
Generational growth Consider the following scenario (see the figure below): A single individual (cell, organism, etc.) produces descendants with probability , independently of other individuals. The probability of this reproduction, , is known. That individual produces no further descendants after the first (if any) reproduction. These descendants each produce further descendants at the next subsequent time with the same probabilities. This process carries on, creating successive generations. Figure 1. An example of the branching process. Let be the random variable representing the population size (number of individuals) of generation . In the above figure, we have , , , , We shall assume as the initial condition. Ideally, our goal would be to find how the population size grows through generations, that is, to find the probability for e...
In mathematics, we must prove (almost) everything and the proofs must be done logically and rigorously. Therefore, we need some understanding of basic logic. Here, I will informally explain some rudimentary formal logic. Definitions (Proposition): A proposition is a statement that is either true or false. "True" and "false" are called the truth values, and are often denoted and . Here is an example. "Dr. Akira teaches at UBD." is a statement that is either true or false (we understand the existence of Dr. Akira and UBD), hence a proposition. The following statement is also a proposition, although we don't know if it's true or false (yet): Any even number greater than or equal to 4 is equal to a sum of two primes. See also: Goldbach's conjecture Next, we define several operations on propositions. Note that propositions combined with these operations are again propositions. (Conjunction, logical "and"): Let ...
Comments
Post a Comment