A LITTLE BIT OF MEASURE THEORY 5
Going back to Example 1.1 from earlier, let U be uniform over {1,2,3,4,5,6},
b(u) be 1 when u ∈{1,2,3,4,5} and 0 otherwise, g(u)=u,and f (x,u)=x.Then
for X uniform over {1, 2,3,4,5,6},letW = b(U)g(U)+(1 −b(U )) f (X,U).Let
i ∈{1,2,3,4,5
},then
P(W = i)=P(U = i)+P(U > 5)P(X = i)=(1/6)+(1/6)(1/5)=6/30 = 1/5.
so W ∼ X.
For Example 1.2, let U be 1 with probability p and 0 otherwise. Then b(u)=u,
g(u)=1, f (x, u)=x + 1. It is straightforward to check that for X geometric with
parameter p, the relationship U +(1 −U )(X + 1) ∼ X holds, so the algorithm output
has the correct distribution.
Note th at in Ex ample 1.1 the output X does not depend on T = inf
{t : b(U
t
)=1}.
In the second example, X = T ,soX and T are highly dependent!
Definition 1.4. In Theorem 1.1, if X and T are independent, say that the algorithm
is interruptible. Otherwise, the algorithm is noninterruptible.
Also, in both these examples, the function f (X,U) did not actually depend on U.
So the value of U couldbeusedtocheckifb(U)=1inline2andthenthrownaway.
Thus the randomness in U only n eeded to be read once. If f (X ,U) does depend on
U, the randomness needs to be used twice, making the algorithm read twice.
Definition 1.5. A perfect simulation that uses X ∼ b(U)g(U)+(1 −b(U)) f (X ,U)
is read once if f (X,u)= f (X, u
) for all u, u
. Otherwise it is read twice.
In general, an interruptible algorithm is preferable to a noninterruptible one, and
a read-once algorithm is preferable to a read-twice method.
1.4 A little bit of measure theory
This section collects som e basic ideas from measure theory, which are useful in mak-
ing probability results precise. Like all probability texts, we begin with a space Ω
called either the sample space or outcome space, which (true to the name) will con-
tain all the possible outcomes from an experiment.
Given a particular experimental outcome
ω
∈ Ω, and a subset A ⊆ Ω,anatural
question to ask is what is the chance that
ω
∈A?ThesetofA for which this question
makes sense and can be answered with a number is called the set of measurable
sets. Mathematically, this collection of subsets of Ω is known as a
σ
-algebra. If a
set A can be measured, then it is important that the complement of the set A
C
also
can be measured. Moreover, it is helpful that if a sequence A
1
,A
2
,... of sets can be
measured, then so can their union. This is made precise in the following definition.
Definition 1.6. A c ollection F of subsets of Ω is a
σ
-algebra if
1. The set F is nonempty.
2. If A ∈ F ,thenA
C
∈ F .
3. If A
1
,A
2
,...∈ F ,then∪A
i
∈F .
Call a set C ∈ F a measurable set. Call (Ω,F ) a measurable space or measure
space.