Beruflich Dokumente
Kultur Dokumente
Probability and
Random Variables
We will cover:
Random Experiments and Random Variables
Axioms of Probability
Mutual Exclusivity
Conditional Probability
Independence
Law of Total Probability
Bayes’ Theorem
❑ Probability:
• the quality or state of being possible
• something (as an event or circumstance) that is possible
• the ratio of the number of outcomes in an exhaustive set
of equally likely outcomes that produce a given event to
the total number of possible outcomes, the chance that a
given event will occur
We will revisit these definitions in a little bit …
Procedure
(e.g., flipping a coin)
Sample Space
(Set of All Possible
Outcome Outcomes)
(e.g., the value
observed [head, tail] after
flipping the coin)
s1 s5
s6
s2 s4
s3
If A1 ∩ A2=Ø,
A1 s1
s5
s1 s5
s6
s2 s4
s3
s1 s5
s6
s2 s4
s3
s1 s5 s1 s5
Event B has
already occurred
s6 => s2, s4, s3 s6
s2 s4 s2 s4
cannot occur
s3 s3
S S
s1 s5 s1 s5
Event B has
already
s6 occurred s6
s2 s4 s2 s4
s3 s3
S S
S|B = {s1, s5, s6}
What’s missing here?
Copyright © Syed Ali Khayam 2008
EA|B= A ∩ B = {s6}
Conditional Probability
The probability of an event A in the conditional sample space is:
Pr A∩B
Pr B
Pr{s6 } 1/6 1
= Pr{B} 3/6 3
s1 s5 s1 s5
Event B has
already
s6 occurred s6
s2 s4 s2 s4
s3 s3
S S
S|B = {s1, s5, s6}
Copyright © Syed Ali Khayam 2008
Independence
❑ Two events are independent if they do not provide
any information about each other:
Pr(A|B) = Pr(A)
❑ Implications:
Pr(A|B) = Pr(A)
Pr A ∩ B = Pr(A)
Pr(B)
Copyright © Syed Ali Khayam 2008
Pr(A ∩ B) = Pr(A) Pr(B)
Independence: Example
Are events A and C independent?
Assume that all outcomes are equally likely
s2
s6
s4
s5
s1 s3
s2
s6
s4
s5
s1 s3
S
Copyright © Syed Ali Khayam 2008
Independence: Example
❑ Are events A and C independent?
Pr{A ∩ C} = Pr{s5} = 1/6
Pr{A}Pr{C} = (3/6)x(2/6) = 1/6
Yes!
s2
s6
s4
s5
s1 s3
S
Copyright © Syed Ali Khayam 2008
Independence: Example
Are events A and B independent?
Assume that all outcomes are equally likely
s2
s6
s4
s5
s1 s3
S
Copyright © Syed Ali Khayam 2008
Independence: Example
❑ Are events A and B independent?
Pr{A ∩ B} = Pr{s5} = 1/6
Pr{A}Pr{B} = (3/6)x(3/6) = ¼
No!
s2
s6
s4
s5
s1 s3
S
Copyright © Syed Ali Khayam 2008
Mutual Exclusivity and Independence
Experiment:
Roll a fair dice twice and record the dots on the top face:
A2
3. In general, we have:
Pr{R0|T0}
T0 R0
T1 R1
Pr{R1|T1}
Pr{R0|T0}
T0 R0
T1 R1
Pr{R1|T1}
Pr{R0|T0}
T0 R0
T1 R1
Pr{R1|T1}
Pr{R0|T0}
T0 R0
T1 R1
Pr{R1|T1}
Pr{R0|T0}
T0 R0
T1 R1
Pr{R1|T1}
1 e01
Pr A ∩ B = Pr A B Pr B = e01 x = 2
2
1 1 1
Pr A Pr B = x =
Copyright © Syed Ali Khayam 2008
2 2 4
Four “Rules of Thumb”
4. Whenever you see two events which have an AND relationship (i.e., A ∩ B), check if
they are independent. If so, set Pr{A ∩ B} = Pr{A}Pr{B}
Example: On a binary channel, find the probability that a 0 is transmitted and a 1 is
received?
A: “a 0 is transmitted” AND
B: “a 1 is received”
Probability of above event is: Pr{A ∩ B}
Are A and B independent?
No.
Pr{R0|T0}
T0 R0
T1 R1
Pr{R1|T1}
1 e01
Pr A ∩ B = Pr A B Pr B = e01 x = 2
2
1 1 1
Pr A Pr B = x =
Copyright © Syed Ali Khayam 2008
2 2 4
Total Probability
B2
s1 s5
B3
B1 B4 s6
s4
s2
s3
B2
s1 s5
B1 A A s6
B4 s4
s2
B3
s3
B2
s1 s5
B1 A A s6
B4 s4
s2
B3
s3
B2
s1 s5
B1 A A s6
B4 s4
s2
B3
s3
B2
s1 s5
B1 A A s6
B4 s4
s2
B3
s3
B2
s1 s5
B1 A A s6
B4 s4
s2
B3
s3
What is the probability of A? Pr{A} = Pr{A ∩ B1} + Pr{A ∩ B2} + … + Pr{A ∩ BN}
B2
s1 s5
B1 A A s6
B4 s4
s2
B3
s3
B2
s1 s5
B1 A A s6
B4 s4
s2
B3
s3
B2
s1 s5
B1 A A s6
B4 s4
s2
B3
s3
B2
s1 s5
B1 A A s6
B4 s4
s2
B3
s3
B2
s1 s5
B1 A A s6
B4 s4
s2
B3
s3
Bayes’ Rule
B2
s1 s5
B1 A A s6
B4 s4
s2
B3
s3
Sample Space
Random Variable X
1 2 3 4 5 6 Outcomes x
Sample Space SX
Announcement of Quiz
Study Material:
Book: Probability, Statistics and Random Processes for Electrical Engineers 3rd
Edition, Albert Leon Garcia
Chapter 2: Basic Concepts of Probability Theory
• Topic: 2.1, 2.2, 2.4, 2.5 (Examples included)
• End Problems: 2.23, 2.62-2.96