1  Basic set theory

Reference: Chapter 1. Resnick ().

In probability, an event is interpreted as a collection of possible outcomes of a random experiment.

Definition 1.1 (Random experiment)
A random experiment is any repeatable procedure that results in one out of a well-defined set of possible outcomes.

  • The set of possible outcomes is called sample space and denoted with Ω. An element of Ω is denoted as ω and is an outcome
  • A set of zero or more outcomes ω is an event A, where we denote with F a class of subsets AΩ.
  • A map (function) that goes from the space of the events F to the space of probabilities (real numbers in [0,1]) is the probability law and is denoted with P.

Together, sample space, event space and probability law characterize a random experiment.

There are several definitions related to sets and their operation.

Definition 1.2 (Complementation)
The complement of a set A is denoted by Ac and represents the set of elements that do not belong to A, i.e. (1.1)Ac={ωΩ:ωA}.

Definition 1.3 (Containment)
A set A is said to be contained in a set B if every element of A is also an element of B. Formally, (1.2)ABωAωBωΩ.

Definition 1.4 (Equality)
Given two sets, A is equal to B, written A=B, if and only if every element of A is an element of B and every element of B is an element of A. Formally, (1.3)ABandBA.

1.1 Set operations

Let’s now state some elementary operations between sets.

Figure 1.1: Elementary set operations.

Definition 1.5 (Union)
The union of two sets, written AB, is the set of ω that belongs either to A or B, i.e. (1.4)AB={ωΩ:ωA or ωB}.

As a consequence of the definition of the union the following relations holds true, i.e.  AA=AAΩ=ΩA=AAAc=Ω

Definition 1.6 (Intersection)
The intersection of A and B is written AB and is the set of elements that belongs at the same time to A and B. AB={ωΩ:ωA and ωB}.

As a consequence of the definition of the intersection the following relations holds, i.e.  AA=AAΩ=AA=AAc= Moreover, let’s state the distributive laws of the union and the intersection, i.e.  (1.5)Intersection.(AB)C=(AC)(BC)Union.(AB)C=(AC)(BC) And the De Morgan’s laws: (1.6)Intersection.(AB)c=(AcBc)Union.(AB)c=(AcBc)

Definition 1.7 (Difference)
The difference between two sets A and B, written AB (or also A/B), is the set of elements of A that do not belong to B. Formally (1.7)AB=ABc={ωΩ:ωA and ωB}.

Disjoint reppresentation of a set

Given two set A and B, then each one can be written as the union of disjoint sets. In fact, their union can be decomposed into the union of three disjoint sets, i.e.  (1.8)AB=(AB)(ABc)(AcB), and therefore for example the set A can be written as (1.9)A=(AB)(AB)=(AB)(ABc).

Definition 1.8 (Symmetric difference)
The symmetric difference between two sets A and B is written AΔB and is the union of elements of A that do not belong to B and of elements of B that do not belong to A, i.e. AΔB=(AB)(BA)==(ABc)(AcB)=={ω:ωA,ωB}{ω:ωB,ωA}

Proposition 1.1 Given two set A,B, the symmetric difference can be written as AΔB=(AB)(AcBc).

Proof. Let’s denote with C=AcB, then apply the distributive law of the union twice () and develop the computations, i.e. AΔB=(ABc)(AcB)==(ABc)C==(AC)(BcC)==[A(AcB)][Bc(AcB)]==[((AAc)(AB)](BcAc)(BcB)==(AB)(AcBc)

1.2 Indicator function

Definition 1.9 (Indicator function)
An indicator function is a function that associate an ωAΩ to a real number, i.e. either 0 or 1. It is a tool that allows to transfer a computation from the set domain into the real numbers domain, i.e. {0,1}. Formally, 1A(ω):Ω{0,1}, i.e.  1A(ω)={1ωA0ωAc.

Indicator function in R

Remark 1.1. If xR, then the equivalent operator an indicator function is the heavyside function in a point aR (see here), i.e. (1.10)Ha(x)=H(xa)={0x<a1xa. The first derivative of the heavyside with respect to x is the dirac delta function (see here), i.e. (1.11)ddxHa(x)=δa(x)=δ(xa)={1x=a0othewise. A fundamental property of the dirac delta is that for a general function f Thanks to a property of the diract function, i.e.  (1.12)f(y)δ(ya)dy=f(a).

Proposition 1.2 The containment between two sets can be equivalently written in terms of indicator functions: AB1A(ω)1B(ω),ωΩ.

Proof. Let’s start by assuming AB and let’s distinguish two main cases.

  1. Assuming ωA implies that ωB, and therefore one have an equality 1=1A1B=1.
  2. Assuming ωAc implies [ωB][ωBc]. In this situation for both cases one will have that 1A1B, in fact:
    • Considering ωB implies that 0=1A<1B=1.
    • Considering ωBc implies that 0=1A1B=0.

Hence, assuming AB implies that 1A(ω)1B(ω) for all ωΩ. Now let’s assume the contrary: 1A1B and let’s again distinguish in two main cases:

  1. Assuming ωA, i.e. 1A=1, the inequality 1A1B holds and since the indicator function is bounded by 1 by definition it is possible to write 1=1A1B1. Therefore, one obtain 1B=1 and so ωB.
  2. Assuming ωAc, i.e. 1A=0, the inequality 1A1B holds and it is possible to write 0=1A1B1. Hence, when ωAc, there are two possible cases, i.e. 
    • 1B=1, but this implies that ωB.
    • 1B=0, but this implies that ωBc.

When an ωA implies that ωB, but the contrary do not holds true. Hence, it is possible to conclude that AB.

1.3 Limits of sets

Let’s define the infimum (inf) and the supremum (sup) of a sequence of sets {An}n1 as infkn=k=nAksupkn=k=nAk, Informally, the infimum of a sequence of sets is the smallest set in k=n,,, on the other hand, the supremum of a sequence of sets is the biggest set in k=n,,.

Then, the liminf is defined as limninfAn=supn1infknAk=n=1k=nAk, The liminf (limit inferior of sets) is the set of all elements that eventually always belong to the sequence {An}n1. By definition, the limit of the infimum (liminf) is the biggest (union) among all the smallest (intersection) sets. In other words, xlim infAn if there exists some index N such that for all nN, we have xAn.

Instead, the limsup is defined as limnsupAn=infn1supknAk=n=1k=nAk. The limsup (limit superior of sets) is the set of all elements that belong infinitely often to the sequence {An}n1. By definition, the limit of the supremum (limsup) is the smallest (intersection) among all the biggest (union) sets. In other words, xlim supAn if for infinitely many n, xAn.

Remark 1.2. By De Morgan’s laws (): (limnsupAn)c=(n=1k=nAk)c=n=1k=nAkc=limninfAnc, and similarly (limninfAn)c=(n=1k=nAk)c=n=1k=nAkc=limnsupAnc.

1.4 Monotone Sequences

Let’s define a sequence of sets {An}n1 as monotone non-decreasing if A1A2, while we define it monotone non-increasing if A1A2. In general, a monotone non-decreasing sequence is denoted with An, while a non-increasing one with An. In general, the limit of a monotone sequence always exists.

Definition 1.10 (Limit of Monotone Sequences)
Let’s consider a monotone sequence of sets {An}. Then, if

  1. An is a sequence of non-decreasing sets, i.e. A1A2, then the limit exists, i.e.  AnlimnAn=n=1An.

  2. An is a sequence of non-increasing sets, i.e. A1A2, then the limit exists, i.e.  AnlimnAn=n=1An.

1.5 Fields and σ-fields

Definition 1.11 (Field)
Let’s define a field A as a non-empty class of subsets of Ω closed under complementation, finite union and intersection. The minimal requirements for a class of subsets to be a field are:

  1. ΩA, i.e. the sample space if in A.
  2. AAAcA, i.e. if a set A is in A, then also its complement is in A.
  3. A,BAABA, i.e. if two sets A and B are in A, then also their union (or intersection) is in A.

Definition 1.12 (σ-field)
Let’s define a σ-field B as a non-empty class of subsets of Ω closed under complementation, countable union and intersection. The minimal requirements for a class of subsets to be a σ-field are:

  1. ΩB, i.e. the sample space if in B.
  2. BBBcB, i.e. if a set B is in B, then also its complement is in B.
  3. BiB,i1n1BnB, i.e. if a countable sequence of sets Bi is in B, then also its countable union (or intersection) is in B.
Field vs σ-Field

The main difference between a field and a σ-field is in the third property of the definitions. A field is closed under finite union, namely the union of a finite sequence of events An indexed by n{0,1,2,,n} (property 3 of ). On the other hand, a σ-field is closed under countable union, namely the union of an infinite sequence of events An indexed by n{0,1,2,,n,n+1,} (property 3. of the ).

Exercise 1.1 Let the sample space be Ω={1,0,1}. Generate a σ-algebra according to

Solution 1.1. Let the sample space be Ω={1,0,1}. A natural choice of σ–algebra on a finite set is the power set: P(Ω)={,{1},{0},{1},{1,0},{1,1},{0,1},Ω}.