CH 1
CH 1
Website:
http://www.cse.cuhk.edu.hk/~syzhang/course
/Prob17/
You can find the lecture slides, tutorial slides,
info for time, venue, TA, textbook, grading
method, etc.
No tutorial in the first week.
Announcements will be posted on web.
The important ones will be sent to your cuhk email
as well.
Content
Sets.
Probabilistic models.
Conditional probability.
Total Probability Theorem and Bayes’ Rule.
Independence.
Counting.
Sets
Subset: 𝑆 ⊆ 𝑇
Equal sets: 𝑆 = 𝑇
Countable vs. uncountable
Universal set Ω: The set which contains all
objects that could conceivably be of interest
in a particular context.
Complement: 𝑆 = 𝑆 𝑐 = Ω − 𝑆.
Sets
Sets.
Probabilistic models.
Conditional probability.
Total Probability Theorem and Bayes’ Rule.
Independence.
Counting.
Experiment and outcomes
3. (Normalization) 𝑃(Ω) = 1.
Probabilistic model: summary
An experiment produces exactly one out of several
possible outcomes.
The sample space is the set of all possible outcomes.
An event a subset of the sample space.
The probability law assigns to any event 𝐴 a number
𝑃 𝐴 ≥ 0.
Discrete Model
Consider Ω = 0,1 .
Any number in the interval is a possible outcome.
Assume uniform distribution: all outcomes
happen equally likely.
Then what’s the probability of “½” as an
outcome?
What if you replace ½ with any of your
favorite numbers?
Continuous Model
Sets.
Probabilistic models.
Conditional probability.
Total Probability Theorem and Bayes’ Rule.
Independence.
Counting.
Partial information
1. Nonnegativity:
𝑃 𝐴∩𝐵
𝑃 𝐴𝐵 = ≥ 0.
𝑃 𝐵
2. Normalization:
𝑃 𝛺∩𝐵 𝑃(𝐵)
𝑃 𝛺𝐵 = = = 1.
𝑃 𝐵 𝑃(𝐵)
3. Additivity: For two disjoint events 𝐴1 and 𝐴2 ,
see the next slide.
The argument for a countable collection of
disjoint sets is similar.
𝑃 𝐴1 ∪ 𝐴2 ∩ 𝐵
𝑃 𝐴1 ∪ 𝐴2 𝐵 =
𝑃 𝐵
𝑃 𝐴1 ∩ 𝐵 ∪ 𝐴2 ∩ 𝐵
=
𝑃 𝐵
𝑃 𝐴1 ∩ 𝐵 + 𝑃 𝐴2 ∩ 𝐵
=
𝑃(𝐵)
𝑃 𝐴1 ∩ 𝐵 𝑃 𝐴2 ∩ 𝐵
= +
𝑃(𝐵) 𝑃(𝐵)
= 𝑃 𝐴1 |𝐵 + 𝑃 𝐴2 |𝐵
Conditional probability: uniform case
Sample space:
𝐻𝐻𝐻, 𝐻𝐻𝑇, 𝐻𝑇𝐻, 𝐻𝑇𝑇,
Ω=
𝑇𝐻𝐻, 𝑇𝐻𝑇, 𝑇𝑇𝐻, 𝑇𝑇𝑇.
The probability of 𝑩:
𝑃 𝐵 = 4/8 = 1/2.
Conditional Probability: Example 1
Event 𝑨 ∩ 𝑩:
𝐴 ∩ 𝐵 = {𝐻𝐻𝐻, 𝐻𝐻𝑇, 𝐻𝑇𝐻}
The probability of 𝑨 ∩ 𝑩:
𝑃 𝐴 ∩ 𝐵 = 3/8.
The events 𝐴, 𝐵
𝐴 = {max(𝑋, 𝑌) = 𝑚} 𝑚 = 1,2,3,4
𝐵 = {min(𝑋, 𝑌) = 2}
2/5, if 𝑚 = 3 or 𝑚 = 4
𝑃 𝐴 𝐵 = 1/5, if 𝑚 = 2
0, if 𝑚 = 1
Conditional Probability: Example 3
4 possible outcomes:
SS: both succeed FF: both fail
SF: 𝐶 succeeds, 𝑁 fails FS: 𝐶 fails, 𝑁 succeeds
We know that
𝑃(𝑆𝑆) + 𝑃(𝑆𝐹) = 2/3
𝑃(𝑆𝑆) + 𝑃(𝐹𝑆) = 1/2
𝑃(𝑆𝑆) + 𝑃(𝑆𝐹) + 𝑃(𝐹𝑆) = 3/4
And the normalization equation
𝑃(𝑆𝑆) + 𝑃(𝑆𝐹) + 𝑃(𝐹𝑆) + 𝑃(𝐹𝐹) = 1
Conditional Probability: Example 3
𝑃 𝐴𝑖 = 𝑃 𝐴1
𝑖=1
⋅ 𝑃 𝐴2 𝐴1
⋅ 𝑃 𝐴3 𝐴1 ∩ 𝐴2
⋯
𝑛−1
⋅ 𝑃 𝐴𝑛 𝐴𝑖
𝑖=1
Multiplication Rule: Example 1
A prize is randomly
put behind one of the
three closed doors.
You point to one door.
A friend opens one of the remaining two
doors, after making sure that the prize is not
behind it.
Question: Should you stick to your initial
choice, or switch to the other unopened
door?
The Monty Hall Problem
Sets.
Probabilistic models.
Conditional probability.
Total Probability Theorem and Bayes’ Rule.
Independence.
Counting.
Total Probability Theorem
The probability of 𝐵:
𝑃 𝐵 = 𝑃 𝐴1 𝑃 𝐵 𝐴1 + 𝑃 𝐴2 𝑃 𝐵 𝐴2 + 𝑃(𝐴3 )𝑃(𝐵|𝐴3 )
= 0.50 × 0.3 + 0.25 × 0.4 + 0.25 × 0.5
= 0.375
Example: Four-Sided Die
Sets.
Probabilistic models.
Conditional probability.
Total Probability Theorem and Bayes’ Rule.
Independence.
Counting.
Independence
The probability of 𝐴𝑖 ∩ 𝐵𝑗 :
1
𝑃 𝐴𝑖 ∩ 𝐵𝑗 = 𝑃 the outcome of the two rolls is(𝑖, 𝑗) =
16
The probability of 𝐴𝑖 :
number of elements of 𝐴𝑖 4
𝑃 𝐴𝑖 = =
total number of possible outcomes 16
The probability of 𝐵𝑗 :
number of elements of 𝐵𝑗 4
𝑃 𝐵𝑗 = =
total number of possible outcomes 16
Check the independence condition
𝑃 𝐴𝑖 ∩ 𝐵𝑗 = 𝑃 𝐴𝑖 𝑃(𝐵𝑗 )
It holds, so the two events are independent.
Example: Dice rolling
The probability of 𝐴
number of elements of 𝐴 4
𝑃 𝐴 = =
total number of possible outcomes 16
The probability of 𝐵
number of elements of 𝐵 4
𝑃 𝐵 = =
total number of possible outcomes 16
The probability of 𝐴:
𝑃 𝐴 = 𝑃 𝐷 𝑃 𝐴 𝐷 + 𝑃 𝐷𝑐 𝑃 𝐴 𝐷𝑐 = 1/2
Similarly, we have 𝑃 𝐵 = 1/2.
Check the independence condition
𝑃 𝐴 ∩ 𝐵 = 𝑃 𝐷 𝑃 𝐴 ∩ 𝐵 𝐷 + 𝑃 𝐷𝑐 𝑃 𝐴 ∩ 𝐵 𝐷𝑐
1 1 1
= × 0.99 × 0.99 + × 0.01 × 0.01 ≅
2 2 2
≠𝑃 𝐴 𝑃 𝐵
Thus without the condition, 𝐴 and 𝐵 are dependent.
Independence of many events
𝑃 𝐴𝑖 = 𝑃 𝐴𝑖
𝑖∈𝑆 𝑖∈𝑆
Note, pairwise independence does not imply
independence.
Content
Sets.
Probabilistic models.
Conditional probability.
Total Probability Theorem and Bayes’ Rule.
Independence.
Counting.
Counting
Next:
present the basic principle of counting
apply it to a number of situations that are often
encountered in probabilistic models.
2 stages
AB, BA, AC, CA, AD, DA, BC, CB, BD, DB,
CD, DC,
There are
four choices for the group of the first graduate
student,
three choices for the second,
two for the third,
one for the fourth.
Thus, there is a total of 4! choices for this
step.
Allocation of under