Prob-Lec1
Prob-Lec1
Elementary Probability
1 / 79
What is probability?
2 / 79
A simple question
3 / 79
A simple question
• “Too easy!
I don’t need to study probability theory to answer this question.
The probability is about 0.9 ”.
4 / 79
Another question
5 / 79
The Monty Hall problem (1)
6 / 79
The Monty Hall problem (2)
In another situation...
• Suppose the host suddenly forgets where the car is. Since the
show is still going on, he has to open a door randomly anyway.
Luckily, that door is the goat!
• Now the host asks you if you want to switch. Do you want to
change?
7 / 79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT
Course outline
1. Elementary probability
2. Conditional probability
5. Joint distributions
8. Markov Chains
18//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
Example
Rolling a die and flipping a coin can have a total of 6 · 2 = 12
different outcomes, combined.
39//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
1. Permutations
Definition
Let H = {h1 , h2 , . . . , hn } be a set of n different objects. The
permutations of H are the different orders in which one can
write all of the elements of H. There are n! = 1 · 2 · 3 · · · n of
them. We set 0! = 1.
4 //281
10 79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
1. Permutations
Definition
Let H = {h1 , h2 , . . . , hn } be a set of n different objects. The
permutations of H are the different orders in which one can
write all of the elements of H. There are n! = 1 · 2 · 3 · · · n of
them. We set 0! = 1.
Example
The results of a horse race with horses
H = {A, B, C, D, E, F, G} are permutations of H. A possible
outcome is (E, G, A, C, B, D, F) (E is the winner, G is second,
etc.). There are 7! = 5 040 possible outcomes.
4 //281
11 79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
Definition
Let H = {h1 . . . h1 , h2 . . . h2 , . . . , hr . . . hr } be a set of r different
types of repeated objects: n1 many of h1 , n2 of h2 , . . . nr of hr .
The permutations with repetitions of H are the different orders
in which one can write all of the elements of H. There are
n n!
:=
n1 , n2 , . . . , nr n1 ! · n2 ! · · · nr !
5 //281
12 79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
Example
We can make
11 11!
= = 83 160
5, 2, 2, 1, 1 5! · 2! · 2! · 1! · 1!
6 //281
13 79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
3. k-permutations
Definition
Let H = {h1 , h2 , . . . , hn } be a set of n different objects. The
k-permutations of H are the different ways in which one can
n!
pick and write k of the elements of H in order. There are (n−k )!
of these k-permutations.
7 //281
14 79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
3. k-permutations
Definition
Let H = {h1 , h2 , . . . , hn } be a set of n different objects. The
k-permutations of H are the different ways in which one can
n!
pick and write k of the elements of H in order. There are (n−k )!
of these k-permutations.
Example
The first three places of a horse race with horses
H = {A, B, C, D, E, F, G} form a 3-permutation of H. A
possible outcome is (E, G, A) (E is the winner, G is second, A
7!
is third.). There are (7−3)! = 210 possible outcomes for the first
three places.
7 //281
15 79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
5. k-combinations
Definition
Let H = {h1 , h2 , . . . , hn } be a set of n different objects. The
k-combinations of H are the different ways in which one can
pick k of the elements of H without order. There are
n n!
:=
k k! · (n − k)!
9 //281
16 79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
5. k-combinations
Example
There are
30 30!
= = 142 506
5 5! · (30 − 5)!
possible ways to form a committee of 5 students out of a class
of 30 students.
10
17//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
5. k-combinations
Example
There are
30 30!
= = 142 506
5 5! · (30 − 5)!
possible ways to form a committee of 5 students out of a class
of 30 students.
Remark
In a similar way, there are
n n!
:=
k1 , k2 , . . . , kr k1 ! · k2 ! · · · kr !
11
19//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
12
20//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
Proof.
Either write out the factorials, or count the number of
k-combinations of n objects in two ways:
◮ the first object is chosen, and the remaining k − 1 objects
need to be picked out of n − 1, or
◮ the first object is not chosen, and all k objects need to be
picked out of n − 1.
12
21//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
13
22//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
14
23//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
Sample space
Here we are (almost) going to define a mathematical model for
various experiments. To do it properly, we would need some
tools from measure theory. This will be skipped for now, but
you are welcome to revisit this point some time later during your
studies!
15
24//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
Sample space
Here we are (almost) going to define a mathematical model for
various experiments. To do it properly, we would need some
tools from measure theory. This will be skipped for now, but
you are welcome to revisit this point some time later during your
studies!
◮ We always consider an experiment. Ω will denote the set of
all possible outcomes of this experiment.
◮ An event will be a collection of possible outcomes.
Therefore, and event E will be considered a subset of Ω:
E ⊆ Ω.
15
25//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
Sample space
Here we are (almost) going to define a mathematical model for
various experiments. To do it properly, we would need some
tools from measure theory. This will be skipped for now, but
you are welcome to revisit this point some time later during your
studies!
◮ We always consider an experiment. Ω will denote the set of
all possible outcomes of this experiment.
◮ An event will be a collection of possible outcomes.
Therefore, and event E will be considered a subset of Ω:
E ⊆ Ω.
◮ Sometimes Ω is too large, and not all its subsets can be
defined as events. This is where measure theory helps...
◮ It makes perfect sense to define the union E ∪ F and the
intersection E ∩ F of two events, E and F .
15
26//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
Sample space
Ω Ω
E F E F
E ∪F E ∩F
Notation: sometimes E ∪ F = E + F , E ∩ F = EF .
16
27//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
1. Examples
Example
Experiment: Is it going to rain today?
Sample space: Ω = {r, n}.
|Ω| = 2.
An event: E = {r}.
|E| = 1.
17
28//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
1. Examples
Example
Experiment: Finishing order of a race of 7 horses.
Sample space: Ω = {permutations of A, B, C, D, E, F, G}.
|Ω| = 7!.
An event: E = {horse B wins}
= {permutations that start with B}.
|E| = 6!.
Another event: F = {G wins, D is second}.
= {permutations starting as (G, D, . . . )}.
|F | = 5!.
1. Examples
Example
Experiment: Flipping two coins.
Sample space: Ω = {ordered pairs of the two outcomes}.
= {(H, H), (H, T ), (T , H), (T , T )}.
|Ω| = 4.
An event: E = {the two coins come up different}
= {(H, T ), (T , H)}.
|E| = 2.
Another event: F = {both flips come up heads}.
= {(H, H)}.
|F | = 1.
Notice: E ∪ F = {(H, T ), (T , H), (H, H)}
= {at least one H}.
19
30//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
1. Examples
Example
Experiment: Rolling two dice.
Sample space: Ω = {ordered pairs of the two outcomes}
= {(i, j) : i, j = 1 . . . 6}.
|Ω| = 36.
An event: E = {the sum of the rolls is 4}
= {(1, 3), (2, 2), (3, 1)}.
|E| = 3.
Another event: F = {the two rolls are the same}.
= {(i, i) : i = 1 . . . 6}.
|F | = 6.
Notice: E ∩ F = {(2, 2)}.
20
31//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
1. Examples
Example
Experiment: Repeatedly rolling a die until we first see 6.
Sample space: Ω = {sequences of numbers between 1}
and 5, and then a 6}.
|Ω| = ∞.
An event: E = {roll 4 first, get 6 on the third roll}
= {(4, k, 6) : k = 1 . . . 5}.
|E| = 5.
21
32//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
1. Examples
Example
Experiment: Lifetime of a device (measured in years).
Sample space: Ω = [0, ∞)
|Ω| = ∞ (uncountable).
An event: E = {shouldn’t have bought it} = {0}
|E| = 1.
Another event: F = {device lasts for at least 5 years}
= [5, ∞).
|F | = ∞.
Another event: G = {device is dead by its 6th birthday}
= [0, 6).
|G| = ∞.
Notice: F ∩ G = [5, 6), F ∪ G = [0, ∞) = Ω.
22
33//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
Remark
The union E ∪ F of events E and F always means E OR F .
The intersection E ∩ F of events E and F always means E
AND F .
Similarly:
Remark
S
The union i Ei of events Ei always means at least one of the
Ei ’s. T
The intersection i Ei of events Ei always means each of the
Ei ’s.
23
34//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
Definition
If E ∩ F = ∅, then we say that the events E and F are
mutually exclusive events.
24
35//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
Example
The experiment is rolling a die.
E = {rolling 1 on a die} ⊆ {rolling an odd no. on a die} = F .
Ω
F
2
3
6 E
1
5 4
E ⊆F
25
36//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
4. Complementary events
Definition
The complement of an event E is E c : = Ω − E. This is the
event that E does not occur.
Ω
E
Ec
Notice: E ∩ E c = ∅, E ∪ E c = Ω.
Notation: sometimes E c = Ē = E ∗ .
26
37//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
Commutativity: E ∪ F = F ∪ E,
E ∩ F = F ∩ E.
27
38//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
E ∩ (F ∩ G) = (E ∩ F ) ∩ G = E ∩ F ∩ G.
E F
28
39//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
G G
29
40//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
G G
E ∪F
29
41//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
G G
(E ∪ F ) ∩ G
29
42//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
G G
(E ∪ F ) ∩ G E ∩G
29
43//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
G G
(E ∪ F ) ∩ G F ∩G
29
44//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
G G
(E ∪ F ) ∩ G (E ∩ G) ∪ (F ∩ G)
29
45//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
G G
(E ∪ F ) ∩ G (E ∩ G) ∪ (F ∩ G)
(E ∩ F ) ∪ G = (E ∪ G) ∩ (F ∪ G).
E F E F
G G
29
46//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
G G
(E ∪ F ) ∩ G (E ∩ G) ∪ (F ∩ G)
(E ∩ F ) ∪ G = (E ∪ G) ∩ (F ∪ G).
E F E F
G G
E ∩F
29
47//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
G G
(E ∪ F ) ∩ G (E ∩ G) ∪ (F ∩ G)
(E ∩ F ) ∪ G = (E ∪ G) ∩ (F ∪ G).
E F E F
G G
(E ∩ F ) ∪ G
29
48//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
G G
(E ∪ F ) ∩ G (E ∩ G) ∪ (F ∩ G)
(E ∩ F ) ∪ G = (E ∪ G) ∩ (F ∪ G).
E F E F
G G
(E ∩ F ) ∪ G E ∪G
29
49//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
G G
(E ∪ F ) ∩ G (E ∩ G) ∪ (F ∩ G)
(E ∩ F ) ∪ G = (E ∪ G) ∩ (F ∪ G).
E F E F
G G
(E ∩ F ) ∪ G F ∪G
29
50//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
G G
(E ∪ F ) ∩ G (E ∩ G) ∪ (F ∩ G)
(E ∩ F ) ∪ G = (E ∪ G) ∩ (F ∪ G).
E F E F
G G
(E ∩ F ) ∪ G (E ∪ G) ∩ (F ∪ G)
29
51//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
30
52//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
E ∪F
30
53//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
(E ∪ F )c
30
54//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
(E ∪ F )c Ec
30
55//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
(E ∪ F )c Fc
30
56//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
(E ∪ F )c Ec ∩ F c
30
57//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
(E ∪ F )c Ec ∩ F c
(E ∩ F )c = E c ∪ F c .
E F E F
30
58//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
(E ∪ F )c Ec ∩ F c
(E ∩ F )c = E c ∪ F c .
E F E F
E ∩F
30
59//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
(E ∪ F )c Ec ∩ F c
(E ∩ F )c = E c ∪ F c .
E F E F
(E ∩ F )c
30
60//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
(E ∪ F )c Ec ∩ F c
(E ∩ F )c = E c ∪ F c .
E F E F
(E ∩ F )c Ec
30
61//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
(E ∪ F )c Ec ∩ F c
(E ∩ F )c = E c ∪ F c .
E F E F
(E ∩ F )c Fc
30
62//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
(E ∪ F )c Ec ∩ F c
(E ∩ F )c = E c ∪ F c .
E F E F
(E ∩ F )c Ec ∪ F c
30
63//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
Probability
32
64//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
Probability
Notation:
n
[
Ei = E1 ∪ E2 ∪ · · · ∪ En , or
i=1
[∞
Ei = E1 ∪ E2 ∪ . . . ,
i=1
n
X
P{Ei } = P{E1 } + P{E2 } + · · · + P{En } , or
i=1
∞
X
P{Ei } = P{E1 } + P{E2 } + . . . .
i=1
33
65//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
Proof.
We know that E and E c are mutually exclusive, and
E ∪ E c = Ω. Therefore by Axiom 3, and then 2,
Corollary
We have P{∅} = P{Ωc } = 1 − P{Ω} = 1 − 1 = 0.
35
67//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
Proof by induction.
When n = 2,
[ o
nn+1 n [
n o n[
n o
P Ei = P Ei ∪ En+1 ≤ P Ei + P{En+1 }
i=1 i=1 i=1
n
X n+1
X
≤ P{Ei } + P{En+1 } = P{Ei }.
i=1 i=1
36
68//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
37
69//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
Example
In the sports club,
36 members play tennis, 22 play tennis and squash,
28 play squash, 12 play tennis and badminton,
18 play badminton, 9 play squash and badminton,
4 play tennis, squash and badminton.
38
70//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
Solution
Introduce probability by picking a random member out of those
N enrolled to the club. Then
T : = {that person plays tennis},
S : = {that person plays squash},
B : = {that person plays badminton}.
39
71//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
Solution (. . . cont’d)
− ···
+ (−1)n+1 P{E1 ∩ E2 ∩ · · · ∩ En }.
41
73//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
Corollary
If E ⊆ F , then P{E} ≤ P{F }.
Example
E = {rolling 1 on a die} ⊆ {rolling an odd no. on a die} = F .
Ω
F
2
3
6 E
1
6 = P{E} ≤ P{F } = 12 . 1
5 4
E ⊆F
42
74//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
1
P{ω} = ∀ω ∈ Ω.
N
Definition
These outcomes ω ∈ Ω are also called elementary events.
|E| 6 1
P{E} = = = .
|Ω| 36 6
Example
An urn contains 6 red and 5 blue balls. We draw three balls at
random, at once (that is, without replacement). What is the
chance of drawing one red and two blue balls?
45
77//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
46
78//281
79
Prob. Cond. Discr. Cont. Joint E, cov LLN, CLT Combi. Sample sp. Probability Equally l.
|E| 6 · 10 4
P{E} = = = .
|Ω| 11 · 10 · 9/6 11
47
79//281
79