Professional Documents
Culture Documents
Lecture 2 - Probability Theory
Lecture 2 - Probability Theory
1
Outline
- Probability space
- Conditional probability and independence
- Bayes theorem
- Random variables
- Expectation and variation
- Conditional distribution and joint distribution
- Probability estimation
- Standard distributions
2
Probability
3
Probability (cont)
- Basic concepts:
o Trial: experiment or observation
o Elementary outcomes: all possible results of an experiment
o Sample space: set of elementary outcomes
o Event: a subset of sample space
4
Examples
- Tossing a coin one time, the elementary outcomes are head and tail, the
sample space is the set Ω = {H, T}.
- Tossing a coin two times, the sample space is the set Ω = {TT, TH, HT,
HH}
- Tossing a dice one time, the sample space is a little bigger Ω = {1, 2, …, 6}
5
Events
The beauty of using events rather than elementary outcomes is that we can
combine events to make other events using set operations
- The number of possible events is 2n (n is the size of Ω)
- Ω is the certain event, ᴓ is the null event
- 𝐴 ∪ 𝐵 = {𝑤: 𝑤 ∈ 𝐴 or 𝑤 ∈ 𝐵}: the event A or the event B occurs
- 𝐴 ∩ 𝐵 = {𝑤: 𝑤 ∈ 𝐴 and 𝑤 ∈ 𝐵}: the event A and the event B both occur
- 𝐴\𝐵 = {𝑤: 𝑤 ∈ 𝐴 and 𝑤 ∉ 𝐵} : the event A occurs but not the event B
- 𝐴̅ = {𝑤: 𝑤 ∉ 𝐴 }: the event A does not occur
6
Events (cont)
7
Events (cont)
8
Events (cont)
𝐶 ∪ 𝐷 and 𝐶 ∩ 𝐷
9
Probability of events
𝑃(𝐴) = ∑ 𝑝𝑘
{𝑘:𝑤𝑘 ∈𝐴}
10
A classical definition of probability
In case all elementary outcomes have the same probability: P(wi) = 1/N for
every i. Then following the formula in the previous slide, we have:
|𝐴 | 𝑛
𝑃(𝐴) = =
|Ω| 𝑁
11
Some properties of probability
12
Example
13
Example (cont)
14
Conditional probability
15
Conditional probability (cont)
16
Conditional probability (cont)
17
Conditional probability (cont)
18
Example
Given a box containing a white balls and b black balls. Randomly pick up two
balls one after another without returning. Compute the probability of the event:
only the second ball is white.
Suppose that Ak represents the event “only k-th ball is white”, k = 1, 2, …
Using the joint probability formula:
𝑏 𝑎
𝑃(𝐴1̅ 𝐴2 ) = 𝑃(𝐴1̅ )𝑃(𝐴2 |𝐴1̅ ) = ×
𝑎+𝑏 𝑎+𝑏−1
19
Bayes formula
𝑃(𝐵𝐴) 𝑃(𝐴|𝐵)𝑃(𝐵)
𝑃(𝐵|𝐴) = =
𝑃(𝐴) 𝑃(𝐴)
If 𝑃(𝐴) > 0 and {B1, B2, …, Bn} is a complete system of events (⋃𝑖 𝐵𝑖 =
Ω, 𝑃(𝐵𝑖 ) > 0 for all i, 𝐵𝑖 ∩ 𝐵𝑗 = ∅ for 𝑖 ≠ 𝑗), then:
𝑃(𝐵𝑘 )𝑃(𝐴|𝐵𝑘 ) 𝑃(𝐵𝑘 )𝑃(𝐴|𝐵𝑘 )
𝑃(𝐵𝑘 |𝐴) = = 𝑛
𝑃(𝐴) ∑𝑖=1 𝑃(𝐵𝑖 )𝑃(𝐴|𝐵𝑖 )
Example: Given a box containing a white balls and b black balls. Randomly
pick up two balls one after another without returning. Compute the
probability of the event: 1st ball is white given the 2nd ball is also white.
20
Bayes formula (cont)
21
Independence
22
Independence (cont)
23
Random variables
24
Random variables (cont)
Note the notation! The variable is written with a capital X. The lower case x
represents a single value of X. For example x=2 if head comes up twice.
Probability mass function:
25
Mean and variance
𝐸 (𝑋) = ∑ 𝑥𝑝(𝑥)
𝑥
26
Mean and variance (cont)
27
Conditional distribution and joint
distribution
28
Marginal distribution
29
The binomial distribution
30
The binomial distribution (cont)
31
The normal distribution
32
The normal distribution (cont)
33