EECE 380
Random Processes for Electrical
Engineering
Fall 2026
Lecture #2
Probability Theory
1
Examples on Random Experiments
1. Select a ball from an urn containing balls numbered 1 to 50. Note the
number of the ball.
2. Toss a coin three times and note the sequence of heads and tails.
3. Toss a coin three times and note the numbers of heads.
4. Pick a number randomly between 0 and 100.
5. Pick two numbers at random between 0 and 100 (form a pair).
6. A block of information is transmitted repeatedly over a noisy channel
until an error-free block arrives at the receiver. Count the number of
transmission required.
7. Measure the lifetime of a given computer chip in a specified
environment.
• Unambiguous statement of exactly what is measured or observed
•
•
May involve more than one measurement or observation.
Some sequential experiments may be viewed as a sequence of simple
sub-experiments.
Do not consistently yield the same result, thus need to determine the set
of possible results: sample space and events.
2
1
Fundamentals of Probability Theory
●
Sample space: the set of
all possible outcomes,
denoted by 𝝮 .
●
Outcomes are denoted
by sk (or xk)and each sk
lies in 𝝮, i.e., sk ∈ 𝝮 .
Or 𝝮 = { s1, s2, s3, …}
●
Events are subsets of
the sample space for
which measures of their
occurrences, called
probabilities, can be
defined or determined.
Sample
Space
Event
Space
Probability
Measure
𝝮
Three Axioms of Probability:
(1) P(𝝮) = 1 ;
(2) $ ! " # !" ! ! ;
(3) If A and B is the union of two mutually exclusive events, then
"" # ! ! ! = "" #! + "" ! !
3
Set Theory/Operations/Venn Diagrams
The totality of all !! ! known a priori, constitutes a
set W, the set of all experimental outcomes.
" = {"!$ ! ! # !!! ! ! !!}
• Mutually exclusive
• Collectively exhaustive
W has subsets #" "" ! "!! If A is a subset of W, then
" ! ! implies # " !! From A and B, we can generate
other related subsets " " !!" " ! !!" "!"!! etc.
" # ! = {!$ % $ ! "!!!&'!!!$ ! !}
" " ! = {!$ % $ ! "!!!"#$!!!$ ! !}
"" !"""""= {"" ! " ! !}
A
B
"! !
!
B
A
"! !
!
A
4
2
Set Theory/Operations
• If " " ! = ! ! the empty set, then A and B are
said to be mutually exclusive (M.E).
• A partition of W is a collection of mutually
exclusive subsets of W such that their union is
W.
#! " #" = # &"""#$%""""! #! = !!
! ='
!!
A
B
!!
"!
"!
"!
"" ! = !
5
Example: Experiment of Tossing a Coin
Tossing a coin 3 times and observing the sequence of
heads (H) and tails (T):
●
Set W = {HHH, HHT, HTH, HTT, THH,THT,TTH, TTT}
the eight sample points are exhaustive and mutually exclusive
●
Subset (Event) examples:
“two heads” A= {HHT, HTH, THH}
“second differs from the other two” B = {HTH,THT}
" " !!" " ! !!" "!"!!
" # ! = {!$ % $ ! "!!!&'!!!$ ! !}
" " ! = {!$ % $ ! "!!!"#$!!!$ ! !}
Are A and B mutually exclusive events?
Are A and B partition of W?
6
3
Properties of Set Operations
Commutativity:
! ! " = " ! !! ! + " = " + !
" ! ! = ! ! "! "! = !"
Associativity:
# ! " " ! ! ! = " # ! "! ! !
" # ! "! ! ! = # ! " " ! ! !
Distributive:
" " " # ! ! ! = " " " #! ! " " " ! !
" ! " # " ! ! = " " ! #! " " " ! ! !
7
Properties of Set Operations
" = " " # = " " " ! ! !! = " " " !! ! " " " !! = "! ! " !
"! !
!!!
!!!
" = " " # = " " " ! ! !! = " " " !! ! " " " !! = "! ! "!
8
4
De-Morgan’s Laws
" ! ! = " " !!"!!!!!!!!!! " " ! = " ! !
A
B
"! !
A
B
"! !
A
B
A
B
A
B
"! !
• If in a set identity we replace all sets by their
complements, all unions by intersections, and all
intersections by unions, the identity is preserved.
9
Event Space (Field)
A collection of subsets of a nonempty set W, Event Space F:
I-.""""*+ " # ! ! '""""#$%&""" # ! !
I--."""*+ " # ! ! """"(&)"""" ! ! '"""#$%&""" # " " ! ! !
It is easy to show that " ! !"! " ! !"!etc., also belong to F.
For example, from (i) we have # ! ! "!" ! ! "!
using (ii) this gives " # " " ! ! "!
applying (i) again we get " # # " = # " " ! ! "! where
we have used De Morgan’s theorem.
{
}
# = "## "# !# "# !# " ! !# " " !# " ! !#! "!
*From here on wards, we shall reserve the term ‘event’ only to members of F.
10
5
Example: Experiment of Tossing a Coin
Consider the experiment where two coins are simultaneously
tossed. The various elementary events are
!( = # " " " !"$$$! ' = # " " ! !"$$$!& = #! " " !"$$$! % = #! " ! !
and " = {"!' # ! & # ! % # ! $ }"!
The subset ! = {!!% " ! $ " ! # }! is the same as “Head has
occurred at least once” and qualifies as an event.
The subset ! = {!! % " ! $ " ! # }! is the same as “The tail
has occurred at lease once” and qualifies as an event.
= "! !
an outcome belongs to A and B = " ! !
an outcome belongs to A or B
an outcome fall outside A = !
Obviously P(A) = P(B), how about P(AB)?
11
Coin Tossing Experiment
Example: in a coin tossing experiment, where the same
coin is tossed indefinitely, define
A = “head eventually appears”.
Is A an event? Our intuitive experience surely tells us that
A is an event. Let
A# = {()02$011)0/'$.&/$%()$+'%$%,-)$&*$%()$#%($%&''}
$$$$$= #"
"!
"" #
" "%
" " " !!
!
"
# !+
Clearly #" " #! = ! ! Moreover the above A is
" = "$ ! "# ! "" ! ! ! "! !!!
12
6
Example on Continuous Sample Space
Pick two numbers (x and y) at random between zero and one.
13
Review
Operations of event A, B:
" " !!" " ! !!" "!"!!
A+B, AB, Ac, Bc
Question: A+A = ? AA = ? A+𝝮 = ? A 𝝮 = ?
Venn Diagrams:
B
A
"" ! = !
A
A+B = ABc + AB + AcB
A
B
"! !
A
B
A
B
C
B
D
14
7
Axioms of Probability
For any event A, we assign a number P(A), called the
probability of the event A. This number satisfies the
following three conditions that act the axioms of
probability.
#I!$$$$" # #! $ .
0&($*$,1,+/',.'*'!(!!%)*+,-%'!"#$%&
#II!$$$" ##! = ./+010#,#$%&+- &$*(&)*+,(&'($&#'&!"#$%
#III!$$*+ $ # " ! = % )$$$$%&'($$$$" # # ! !! = " # #! + " # ! !"
(Note that (iii) states that if A and B are mutually exclusive
(M.E.) events, the probability of their union is the sum of
their probabilities.)
15
Compute Probability
a.Since" ! " ! = !"! we have using (ii)
%&$ " " "# = ! $!# = "!
But " ! # ! " ! "! and using (iii),
'(# ! " !! = " # !! + (# !! = $''''%&'''(# !! = $ ! " # !!"
b. Similarly, for any A, " ! " {"! } = {"! }"!
Hence it follows that "! ( " " {"! }) = ! $ "# + ! $! #"!
But " ! ! {"" } = !! and thus#!{#! } = "!
c. Suppose A and B are not mutually exclusive
How does one compute $# # " ! ! ? = !
16
8
Compute Probability
We can re-express ! " ! ! in terms of M.E. sets so that
we can make use of the probability axioms.
" " ! ! = " ! "!!
A ! "!
where A and ! "! are clearly M.E. events.
Thus using axiom (iii)
!" ! !
# # " ! ! ! = # # " ! "! ! = # # "! + # # "! !"
To compute ## "! !" we can express B as
" = " " # = " " " ! ! !! = " " " !! ! " " " !! = "! ! " !
Thus ## " ! = ## "!! + ## " !!"
since "! = !" and ! " = "!
are M.E. events.
# " !" ! = # " " ! ! # " !" !
# # ! " " ! = # # !! + # # " ! ! # # !"!"
A
B
"! !
17
Example: Experiment of Tossing a Coin
Tossing a coin 3 times and observing the sequence of
heads (H) and tails (T):
●
Sample space S = {HHH, HHT, HTH, HTT, THH,THT,TTH, TTT}
the eight sample points are exhaustive and mutually exclusive
●
Event examples:
“two heads” E1= {HHT, HTH, THH}
“second differs from the other two” E2 = {HTH,THT}
●
Probability: P(E1)=1/8+1/8+1/8=3/8; P(E2)=1/8+1/8=2/8
" # ! % ! !$ ? = !
" # ! % !$ ? = !
Are E1 and E2 mutually exclusive events?
18
9
The second roll
Example: Rolling a Pair of 4-Sided Dice
4
3
2
1
1
2
3
The first roll
4
A = {the first roll is equal to the second}
P(A) = ?
B = {the first roll is larger than the second}
P(B) = ?
C = {at least one roll is equal to 4}
P(C) = ?
19
Coin Tossing Experiment
Example: in a coin tossing experiment, where the same
coin is tossed indefinitely, define
A = “head eventually appears”.
Is A an event? Our intuitive experience surely tells us that
A is an event. Let
A# = {()02$011)0/'$.&/$%()$+'%$%,-)$&*$%()$#%($%&''}
$$$$$= #"
"!
"" #
" "%
" " " !!
!
"
# !+
Clearly #" " #! = ! ! Moreover the above A is
" = "$ ! "# ! "" ! ! ! "! !!!
*We cannot use probability axiom (iii) to compute P(A), since the
axiom only deals with two (or a finite number) of M.E. events.
20
10
Definition of s-Field
A field F is a s-field if in addition to the previous stated
conditions, we have the following:
For every sequence "! ! ! = " " !! of pair wise disjoint
events belonging to F, their union also belongs to F, i.e.,
"
" = ! "# ! ! !
# ="
Another axiom to the set of probability axioms
(iv) If Ai are pair wise mutually exclusive, then
( "
% "
# && ! "! ## = ! # # "! !"
' ! =$ $ ! =$
21
Coin Tossing Experiment
The coin tossing experiment: from experience we know
that if we keep tossing a coin, eventually, a head must
show up, i.e., " $ !# = "!
!
But " = ! "! "
and using the fourth probability axiom,
! =!
"
( "
%
# # "! = # &
"
=
# # "! !"
#
!
!
! #
&
' ! =$
$ ! =$
For a fair coin since only one in 2n outcomes is in
favor of An , we have
"
"
"
"
#% "! $ = ! &&&&'()&&&&&&! #% "! $ = ! ! = "!
#
! ="
! =" #
justify the ‘reasonableness’ of the fourth axiom!!
22
11
Continuous Models: Waiting for the Bus
Modelling assumption: the bus always comes within at most one
hour; but it is equally likely to come at any time within this hour.
• The natural sample space for this problem is Ω = [0,1].
• Probability measure:
the probability that the bus arrives at a time in the set A equal
to the probability that the bus arrives at a time in B. Why?
• the probability of any event A ⊆ Ω as P(A) = length(A).
Check this choice to verify that it satisfies the properties of
Probability Definition: clearly P(Ω) = length([0, 1]) = 1; P(A) =
length(A) ∈ [0, 1] for every A ⊆ [0, 1]; and the length of the
union of two disjoint sets is the sum of their lengths.
23
Waiting for the Bus Example
• P(The bus comes at exactly time x) = P{x} = 0
if you are asked to guess the time the bus will arrive exactly
(with infinite precision), you will never be correct.
• the sum rule to hold for a sequence of mutually exclusive events
the set [0,1] is uncountable!
Any event we will encounter in our application will always be
measurable. You can never run into trouble unless you are doing
abstract mathematics.
24
12
More Continuous Models
Romeo and Juliet have a date at a given time, and each will
arrive at the meeting place with a delay between 0 and 60
minutes, with all pairs of delays being equally likely. The
first to arrive will wait for 10 minutes and will leave if the
other has not yet arrived. What is the probability that they
will meet? In order to have at least 50% chance to meet,
how long should the waiting time be?
25
Axioms of Probability
The triplet (W, F, P) composed of a nonempty set W
of elementary events, a s-field F of subsets of W,
and a probability measure P on the sets in F
subject the four axioms form a probability model.
The probability of more complicated events must
follow from this framework by deduction.
26
13
Conditional Probability
Following the bus waiting example, please guess whether bus came
within the first 5 minutes.
• In the absence of any further information, it is quite unlikely: the
probability that this happens is P([0, 1/12 ]) = 1/12.
• Now suppose, I tell you that the bus actually came in the first 10
minutes. Given this additional information, it seems much more
likely that the bus came in the first 5 minutes than without this
information.
• Intuitively, the probability that the bus came within the first 5
minutes, given the knowledge that it came in the first 10 minutes, is
1/2 , as is suggested by the following picture:
The probabilities should change if we gain information about what
events occur. To reason rigorously in problems of this kind, we can use
the formal notion of conditional probability.
27
Conditional Probability
28
14
Conditional Probability
In N independent trials, suppose NA, NB, NAB
denote the number of times events A, B and AB
occur respectively. According to the frequency
interpretation of probability, for large N
A # "" !
!"
!
!
%$$$A # # " ! # %$$$A # "# " ! "# !
!
!
!
Among the NA occurrences of A, only NAB of them
are also found among the NB occurrences of B.
Thus the ratio
A #! A #! # A " " #! !
=
=
A!
A! # A
"" ! !
29
Conditional Probability
A #! A #! # A " " #! !
=
=
A!
A! # A
"" ! !
This is a measure of “the event A given that B has already
occurred”. We denote this conditional probability by
We define
As we show below, the above definition satisfies all
probability axioms discussed earlier.
30
15
Conditional Probability
𝝮
𝝮
A AB B
A
A #! A #! # A " " #! !
=
=
A!
A! # A
"" ! !
" $ ! # ! "!
a measure of the event A given that B has already occurred
P(A|B) = Probability of “the event A given
that B has occurred”.
The above definition satisfies all probability axioms
discussed earlier.
31
Conditional Probability
" $ #! # "
"!
"$ ! # > "
" $ !! # " $ ! #
(ii) " $! % ! # =
=
= "! since W B = B.
"$ ! #
"$ ! #
(i) " $ # % ! # =
(iii) Suppose " " ! = ! ! Then
" ## A ! # " " ! " " # A! ! #! "
"# A ! # $ ! " =
=
!
"# ! "
"# ! "
But #" " !" = ! ! hence
# # A" ! !" ! = # # A" ! + # #!" !"
#$ A ! " # ! ! =
# $ A! ! # $"! !
+
= # $ A # ! ! + # $" # ! !"
#$ ! !
#$ ! !
satisfying all probability axioms. Thus P(A|B) defines a
legitimate probability measure.
32
16
Properties of Conditional Probability
a. If ! ! "!""" "! = !! and
"# # $ !" =
" # #! " " # ! "
=
=!
"# !"
"# !"
since if " ! !! then occurrence of B implies
automatic occurrence of the event A. As an example,
in a dice tossing experiment.
! = !"#$%"&'()*('+',-.(("/!"#$%"&'()*(0-.
Then " ! !! and #% " $ ! # = "!
b. If ! ! "!""" !" = !! and
"# ! $ #! =
" # !#! " # !!
=
> " # !!"
"# #!
"# #!
Consider the dice tossing experiment
! = !"#$%"&'()*(+,-(" .!"#$%"&'()*('/'0,-
33
Properties of Conditional Probability
A collection of sets A1, … , An is a
partition if it is both mutually
exclusive and collectively exhaustive
B
B
C1 = BA1 , C2 = BA2 , …. , Ci = BAi
B = A1B ∪ A2B ∪ ⋯ ∪ AiB
34
17
Properties of Conditional Probability
We can use the conditional probability to express the
probability of a complicated event in terms of “simpler”
related events.
Let "# ! "" !!! "! are pair wise disjoint and their union is W.
!
Thus #" #! = ! ! and ! #" = !!
" ="
" = " # #% ! #$ ! ! ! #! " = "#% ! "#$ ! ! ! "#! !
A" " A! = ! # #A" " #A! = ! !
Therefore
!
!
" =!
" =!
A $ B " = ! A $ B#" " = ! A $ B % #" " A $ #" "#
*Law of Total Probability
35
Properties of Conditional Probability
A company has three machines B1, B2, and B3 making 1 kΩ resistors.
Resistors within 50 Ω of the nominal value are considered acceptable. It has
been observed that 80% of the resistors produced by B1 and 90% of the
resistors produced by B2 are acceptable. The percentage for machine B3 is
60%. Each hour, machine B1 produces 3000 resistors, B2 produces 4000
resistors, and B3 produces 3000 resistors. All of the resistors are mixed
together at random in one bin and packed for shipment. What is the probability
that the company ships an acceptable resistor?
Solution: Let A = {resistor is acceptable}. We can form the probability model:
P [A|B1] = 0.8, P [A|B2] = 0.9, P [A|B3] = 0.6.
The total production: 3000 + 4000 + 3000 = 10,000 resistors/hour. The fraction
from each machine: P[B1] = 3000/10,000 = 0.3. P[B2] = 0.4 and P[B3] = 0.3.
Apply the law of total probability:
P[A] = P[A|B1]P[B1] + P[A|B2]P[B2] + P[A|B3]P[B3]
= (0.8)(0.3) + (0.9)(0.4) + (0.6)(0.3) = 0.78.
The acceptable probability for all resistors shipped by the company is 78%.
36
18
Bayes’ Theorem
"# # $ ! " =
" # #! "
!
"# ! "
" # # $ !" =
" # #!"
" # !# "
=
!
" # !"
" # !"
" # #! ! = " # # $ ! ! " # ! !"
" # !# ! = " # # $ !! " # !!"
" # ! $ # ! " # # ! = " # # $ !! " # !!"
or
"" ! # # ! =
" " # # !!
! " " !!
"" # !
This is known as Bayes’ theorem.
37
Bayes’ Theorem
P(A) represents the a-priori probability of the event A.
Suppose B has occurred, and assume that A and B are
not independent. How can this new information be used
to update our knowledge about A? Bayes’ rule take into
account the new information (“B has occurred”) and
gives out the a-posteriori probability of A given B.
We can also view the event B as new knowledge obtained
from a fresh experiment. We know something about A as
P(A). The new information is available in terms of B. The
new information should be used to improve our
knowledge/understanding of A. Bayes’ theorem gives the
exact mechanism for incorporating such new information.
38
19
Bayes’ Theorem
A more general version of Bayes’ theorem involves
partition of W.
A # #" $ B " =
A # B $ #" " A # #" "
=
A# B "
A # B $ #" " A # #" "
!
! A# B $ #" " A# #" "
!
" =%
represent a set of mutually exclusive events with #" !##" = " ! !!
associated a-priori probabilities A& #" $%##" = " ! !! With the
new information “B has occurred”, the information about
Ai can be updated by the n conditional probabilities
B ' A & #" $%!!" = # ! !!"!
39
Example 1: Medical Diagnostics
Your doctor fears your symptoms may be consistent with a serious
disease (say, cancer) and send you to a medical test. Medical
statistics show that patients who have this disease test positive
95% of the time, while patients who do not have the disease test
positive 2% of the time (a pretty accurate test). In the general
population, one in a thousand people in your age group have this
disease.
A week after the test, your doctor calls you back with the result.
The test came back positive! Given this information, what is the
probability that you actually have the feared disease?
Let’s denote
A: the event that the test comes back positive
B: the event that you have the disease
How to find out the probability P(B|A): you have the disease
given that the test comes back positive.
40
20
Example 2
Two boxes B1 and B2 contain 100 and 200 light bulbs respectively. The
first box (B1) has 15 defective bulbs and the second 5. Suppose a box
is selected at random and one bulb is picked out.
(a) What is the probability that it is defective?
Solution: Note that box B1 has 85 good and 15 defective bulbs.
Similarly box B2 has 195 good and 5 defective bulbs. Let D =
“Defective bulb is picked out”.
*$
$
Then # ' " & !* % =
= "!*$)((((# ' " & !# % =
= "!"#$!
*""
#""
Since a box is selected at random, they are equally likely
#
" % !# $ = " % !" $ = !
"
Thus B1 and B2 form a partition
" * # ) = " * # + !' ) " * !' ) + " * # + !& ) " * !& )
((((((((((= "!'% !
'
'
+ "!"&% ! = "!"#$%!
&
&
41
Example 2
(b) Suppose we test the bulb and it is found to be defective. What is
the probability that it came from box 1? # $ "% # ! ? = !
" * #% + ! ) =
" * ! + #% ) " * #% ) &!%# ! % ( '
=
= &!"#$%!
"* !)
&!&"$#
Notice that initially " & !' % = $#"! then we picked out a box at random
and tested a bulb that turned out to be defective. Can this
information shed some light about the fact that we might have
picked up box 1?
# ) "* ( !' = $#%"& > $#"! indeed it is more likely at this point that we
must have chosen box 1 in favor of box 2. (Recall box 1 has six
times more defective bulbs compared to box 2).
42
21
Example 3
Example: A box contains 6 white and 4 black balls. Remove two balls at
random without replacement. What is the probability that the first one is
white and the second one is black?
Let W1 = “first ball removed is white”
B2 = “second ball removed is black”
# #"% ! !$ ? = !
!" ! "# = !""# = "#!"!
" #!%#& ! = " # #&!% ! = " # #& $ !% ! " #!% !"
" )!$ ( =
&
&
#
=
= !
& + ' $% "
# ,"& !" + =
# ' ") & !( % =
#
#
= !
$+# "
* (
(
" =
! %!"#$!
' ) &'
43
Example 4 – Tree Diagram
Suppose we have two coins: one fair, and one biased with ¾ probability
of head. No idea of which one is which.
Pick up a coin at random and flip it, the outcome is a head (H). Then
what is the probability that we picked the biased coin?
Solution:
Let’s name the biased coin as C1 , and the fair coin as C2 .
Let H and T denote the possible outcomes of the flip. We try to
determine P[C1|H], given that the outcome of the flip is a head, the
probability that we picked the biased coin.
Many random experiments have an inherently sequential character. Tree
diagrams can display the outcomes of the sub-experiments in a
sequential experiment. Each possible outcome corresponds to a leaf of
the tree and is associated with the path from the root to that leaf. Every
node of the tree can be identified with an event.
44
22
Example 4 – Tree Diagram
P[H] = P[C1H] +P[C2H]
P[C1|H] = P[C1H] / P[H]
45
The Prisoner’s Problem
The release of two out of three prisoners has been announced.
but their identity is kept secret. One of the prisoners considers
asking a friendly guard to tell him who is the prisoner other
than himself that will be released, but hesitates based on the
following rationale: at the prisoner's present state of
knowledge, the probability of being released is 2/3, but after he
knows the answer, the probability of being released will
become 1/2, since there will be two prisoners (including
himself) whose fate is unknown and exactly one of the two will
be released. What is wrong with this line of reasoning?
46
23
Bayes’ Theorem
"# # $ ! " =
" # #! "
!
"# ! "
" # # $ !" =
" # #!"
" # !# "
=
!
" # !"
" # !"
" # #! ! = " # # $ ! ! " # ! !"
" # !# ! = " # # $ !! " # !!"
" # ! $ # ! " # # ! = " # # $ !! " # !!"
or
"" ! # # ! =
" " # # !!
! " " !!
"" # !
This is known as Bayes’ theorem.
47
Example on Conditional Probability
Two boxes B1 and B2 contain 100 and 200 light bulbs respectively. The
first box (B1) has 15 defective bulbs and the second 5. Suppose a box
is selected at random and one bulb is picked out.
(a) What is the probability that it is defective?
Solution: Note that box B1 has 85 good and 15 defective bulbs.
Similarly box B2 has 195 good and 5 defective bulbs. Let D =
“Defective bulb is picked out”.
*$
$
Then # ' " & !* % =
= "!*$)((((# ' " & !# % =
= "!"#$!
*""
#""
Since a box is selected at random, they are equally likely
#
" % !# $ = " % !" $ = !
"
Thus B1 and B2 form a partition
" * # ) = " * # + !' ) " * !' ) + " * # + !& ) " * !& )
((((((((((= "!'% !
'
'
+ "!"&% ! = "!"#$%!
&
&
48
24
Example on Conditional Probability
(b) Suppose we test the bulb and it is found to be defective. What is
the probability that it came from box 1? # $ "% # ! ? = !
" * #% + ! ) =
" * ! + #% ) " * #% ) &!%# ! % ( '
=
= &!"#$%!
"* !)
&!&"$#
Notice that initially " & !' % = $#"! then we picked out a box at random
and tested a bulb that turned out to be defective. Can this
information shed some light about the fact that we might have
picked up box 1?
# ) "* ( !' = $#%"& > $#"! indeed it is more likely at this point that we
must have chosen box 1 in favor of box 2. (Recall box 1 has six
times more defective bulbs compared to box 2).
(Tree diagram approach)
49
More Examples
Example: A box contains 6 white and 4 black balls. Remove two balls at
random without replacement. What is the probability that the first one is
white and the second one is black?
Let W1 = “first ball removed is white”
B2 = “second ball removed is black”
# #"% ! !$ ? = !
!" ! "# = !""# = "#!"!
" #!%#& ! = " # #&!% ! = " # #& $ !% ! " #!% !"
" )!$ ( =
&
&
#
=
= !
& + ' $% "
# ,"& !" + =
# ' ") & !( % =
#
#
= !
$+# "
* (
(
" =
! %!"#$!
' ) &'
50
25
More Example
The fate of the second ball very much depends on that of the first
ball. The first ball has two options: W1 = “first ball is white” or B1=
“first ball is black”. Note that "" " !" = !! and "" " !" = ! ! Hence W1
together with B1 form a partition. Thus
" , !# + = " , !# - #$ + " ,#$ + + " , !# - !$ + " , !$ +
***********=
and
% &
&
% % & $ # %+# #
! +
! = ! + ! =
= !
" + % " ) + & $( ' " & "
$"
"
# & "( % # &!" % =
( '
$
" ! # & "(!" % = !
# #
"#
The events W1 and B2 are dependent.
51
Conditional Probability and Independence
Consider a random experiment where two people each
flip a coin. The probability of each coin coming up heads
in one half. If the one person flips his coin first, and tells
us the outcome, should that change our degree of
confidence in the outcome of the other coin?
This notion of independence of events has a completely
natural interpretation in terms of conditional probabilities:
if we condition on the outcome of one of the coins, that
does not change the probability of the other coin.
Independence of two events
• Intuitive “definition”: P(A|B) = P(A)
• Occurrence of B provides no new information about A
52
26
Definition of Independence
A and B are said to be independent events, if
" # #! ! = " # #! ! " # ! !"
• Symmetric with respect t o A and B
• Implies P(AIB) = P(A)
• Applies even if P(A) = 0
Suppose A and B are independent, then
"# ! $ # ! =
" # !# ! " # !! " # # !
=
= " # !!"
"# # !
"# # !
If A and B are independent, the event that B has occurred
does not shed any more light into the event A. It makes
no difference to A whether B has occurred or not.
*Notice that the above definition is a probabilistic statement, not a set theoretic
notion such as mutually exclusiveness.
53
Independence
If event A and B are independent events
" # #! ! = " # #! ! " # ! !"
It is easy to show that A, B independent implies "" !!
"! !#"" "! ! are all independent pairs. For example,
! = " " ! "! ! = "! ! "! and "! " "! = ! ! so that
# " ! ! = # " "! ! "! ! = # " "! ! + # " "! ! = # " "! # " ! ! + # " "! !
Then
" # #! ! = " # ! ! ! " # #! " # ! ! = #$ ! " # #!! " # ! ! = " # #! " # ! !"
i.e., ! and B are independent events.
54
27
Independence
• If P(A) = 0, then since the event !" ! ! always, we have
# % !" $ " # % !$ = # ! # % !" $ = #"!!
" " #! ! = " " #! ! " " ! ! is always satisfied. Thus the event of zero
probability is independent of every other event!
• Independent events with non-zero probabilities obviously
cannot be mutually exclusive, since "# #" > !%$$"# !" > ! and A,
B independent implies # $ !"# > "! Thus if A and B are
independent, the event AB cannot be the null set.
• More generally, a family of events {"! } are said to be
independent, if for every finite sub collection #" ! #" ! ! ! #" !
we have
#
!
' !
$
%%% A#" "" = ! % $ A#" "#
& " =!
# " =!
"
!
55
Example 1: Experiment of Tossing a Coin
Tossing a coin 3 times and observing the sequence of heads (H)
and tails (T):
●
Sample space S = {HHH, HHT, HTH, HTT, THH,THT,TTH, TTT}
the eight sample points are exhaustive and mutually exclusive
●
Event examples:
“two heads” E1= {HHT, HTH, THH}
“second differs from the other two” E2 = {HTH,THT}
“first is head” E3= {HHH, HHT, HTH, HTT}
“second is head” E4 = {HHH, HHT, THH, THT}
●
Probability: P(E1) ? ; P(E2) ? ; P(E3) ?; P(E4)?
Are E1 and E2 mutually exclusive events? "# ! % ! !$ ? = !
Are E1 and E2 statistically independent? "# !% ! !$ ? = !
Are E3 and E4 mutually exclusive? Independent?
●
The dependence of two events E1 and E2
" # ! % !$ ? =
" # ! % !$ ?
=!
" # !$ ?
" # !% ! $ ? = !
56
28
The second roll
Example 2: Rolling 4-Sided Dice Twice
4
A: 1st roll is i
B: 2nd roll is j
Are events A and B independent?
3
2
1
1
2
3
The first roll
4
C: 1st roll is a 1
D: sum of the two rolls is a 5
Are events C and D independent?
57
Conditional Independence
Given an event C, the events A and B are called conditionally
independent if
the
multiplication
rule
Compare the two expressions, and after eliminating the common
factor P(B|C), assumed nonzero, (i.e., P(BC) is not zero), we see
that conditional independence is the same as the condition
Note: If C is known to have occurred, the additional knowledge
that B also occurred does not change the probability of A!
58
29
Note on Conditional Independence
• Independence of two events A, B with respect to
the unconditional probability does not imply
conditional independence, and vice versa.
* Two independent fair coin tosses: A = {the first toss is head},
B = {the second toss is head}, C = {two tosses are different},
* Random pick up from a fair coin and a loaded coin, then do
two tosses: A = {the first toss is head}, B = {the second toss is
head}, C = {Fair coin picked}
Assume A and B are
independent, if we are told that
C occurred,
Are A and B independent?
59
Note on Independence
• Pairwise independence DOES NOT imply independence of a
family of events {Ai}
a family of events are said to be independent, if for every finite
sub collection #"# ! #"" ! ! ! #"! !
!
' !
$
%%% A#" "" = ! % $ A#" "#
& " =!
# " =!
60
30
Independence
• Let
" = "$ ! "# ! "" ! ! ! "! !
a union of n independent events. Then by De-Morgan’s law
" = "" "! ! "!
and using their independence
!
!
" =$
" =$
A # #" = A # #$ #% ! #! " = ! A # #" " = ! #$ " A # #" ""!
Thus for any A
!
A # #" = $ " A # #" = $ " ! #$ " A # #" ""!
" =$
*We can use these results to solve an interesting number theory problem.
61
Example 3
Three switches connected in parallel operate independently. Each
switch remains closed with probability p. (a) Find the probability
of receiving an input signal at the output. (b) Find the probability
that switch S1 is open given that an input signal is received at the
output.
Input
!!
!!
!!
Output
a. Let Ai = “Switch Si is closed”. Then # $ "A # = !"!
$! = # ! "!
Since switches operate independently, we have
" # !A !# ! = " # !A ! " # !# !%$$" # !( !' !& ! = " # !( ! " # !' ! " # !& !"
62
31
Example 3
Let R = “input signal is received at the output”. For the event R to
occur either switch 1 or switch 2 or switch 3 must remain closed, i.e.,
" = !$ ! !# ! !" !
#% A # = #% "$ " "& " "" # = $ ! %$ ! ! #" = " ! ! " ! & + ! "!
Or, since any event and its compliment form a trivial partition, we can
always write
" # # ! = " # # $ !% ! " # !% ! + " # # $ !% ! " # !% !"
But
# % " $ !" # = "! and
# % A & "# $ = # % "! " "" $ = ! ! ! ! !
# % " # = ! + % & ! ! ! & #%$ ! ! # = " ! ! " ! & + ! " !
* Note that the events A1, A2, A3 do not form a partition, since they are not
mutually exclusive. Obviously any two or all three switches can be closed (or
open) simultaneously. Moreover, " $ !" # + " $ !& # + " $ !% # ! "!
63
Example 3
b. We need # $ "% # ! !" From Bayes’ theorem
# & A% ' " $ =
# & " ' A% $ # & A% $ & # ! ! ! # $&% ! ! $
# ! # ! + !#
=
=
!
#& " $
" ! ! " !# + !"
" ! ! " !# + !"
Because of the symmetry of the switches, we also have
# $ "' # ! ! = # $ "& # ! ! = # $ "% # ! !"
64
32
Example 4
Error Control by Retransmission
Computer A sends a message to computer B over an unreliable
radio link. The message is encoded so that B can detect when
errors have been introduced into the message during
transmission. If B detects an error, it requests A to retransmit it.
If the probability of a message transmission error is q = 0.01,
what is the probability that a message needs to be transmitted
more than two times?
Each transmission of a message is a trial with probability of
success p = 1 - q. The trials are repeated until the first success
(error-free transmission). The probability that more than two
transmissions are required is given by:
P [ k > 2 ] = q2 = 10-4
65
Tree-Based Sequential Description
Suppose we have two coins: one fair, and one biased with ¾ probability
of head. No idea of which one is which.
Pick up a coin at random and flip it, the outcome is a head (H). Then
what is the probability that we picked the biased coin?
Solution:
Let’s name the biased coin as C1 , and the fair coin as C2 .
Let H and T denote the possible outcomes of the flip. We try to
determine P[C1|H], given that the outcome of the flip is a head, the
probability that we picked the biased coin.
Many random experiments have an inherently sequential character. Tree
diagrams can display the outcomes of the sub-experiments in a
sequential experiment. Each possible outcome corresponds to a leaf of
the tree and is associated with the path from the root to that leaf. Every
node of the tree can be identified with an event.
66
33
Example 5 – Tree Diagram
P[H] = P[C1H] +P[C2H]
P[C1|H] = P[C1H] / P[H]
67
Tree Diagram – Monty Hall Game
Suppose the door are numbered 1, 2, and 3.
Let Hi denote the event that the present is hidden behind door i.
Let Ri denote the event that Monty opens door I
Let C denote the event that you win, and G then event that you lose.
We can always name the door you first choose is Door 1.
68
34
Tree Diagram
The multiplication rule:
𝑷 𝑨∩𝑩 =𝑷 𝑩 𝑷 𝑨 𝑩
𝑷 𝑨 ∩ 𝑩 ∩ 𝑪 = 𝑷 𝑪 𝑷 𝑩 𝑪 𝑷(𝑨|𝑩 ∩ 𝑪)
𝑷 ∩𝒏𝒊"𝟏 𝑨𝒊 = 𝑷 𝑨𝟏 𝑷 𝑨𝟐 𝑨𝟏 𝑷(𝑨𝟑 |𝑨𝟏 ∩ 𝑨𝟐 ) ⋯ 𝑷(𝑨𝒏 | ∩𝒏'𝟏
𝒊"𝟏 𝑨𝒊 )
Visualization of the multiplication rule:
Event A1∩A2
Event A1∩A2∩A3
Event ?
69
Example: Reliability Analysis
• Components in series:
operation succeeds if all of its components succeed
Whenever the operation consists of k components in series, we
need all k components to succeed in order to have a
successful operation. The probability that the operation
succeeds is
P[W] = P[W1W2 ···Wn] = p × p × ··· × p = pn
If the independent components in series have different success
probabilities p1, p2 . . . pn, the operation succeeds with
probability P[W] = P[W1W2 ···Wn] = p1 × p2 × ··· × pn
* With components in series, the probability of a successful operation
is lower than the success probability of the weakest component.
70
35
Example: Reliability Analysis
• Components in parallel
operation succeeds if any component works
Example: introduce redundancy to promote
reliability: in a space shuttle, there are n computers
on board so that the shuttle can continue to function
as long as at least one computer operates
successfully.
If the components are in parallel, the operation fails when all elements
fail, so we have: P[Wc] = P[W1c W2c ··· Wnc] = (1−p)n.
The probability that the parallel operation succeeds then is
P[W] = 1−P[Wc] = 1−(1−p)n.
If the independent components in parallel have different success
probabilities p1, p2 . . . pn, the operation fails with probability
P[Wc] = P[W1c W2c ··· Wnc] = (1−p1) × (1−p2) ×···× (1−pn).
The probability that the parallel operation succeeds then is
P[W] = 1 − P[Wc] = 1 − (1−p1) × (1−p2) × ··· × (1−pn).
* With components in parallel, the probability that the operation succeeds is
higher than the probability of success of the strongest component.
71
Example: Reliability Analysis
Network Connectivity: A computer network connects two nodes A and
B through intermediate nodes C, D, E, F, as shown in the following
figure. For every pair of directly connected nodes, say i and j, there is a
given probability pi,j, that the link from i to j is up. We assume that link
failures are independent of each other. What is the probability that there
is a path connecting A and B in which all links are up?
Solution: “the probability of success” is
equivalent to “a path from A to B is
available.”
72
36
Example: Reliability Analysis
A memory module consists of nine chips. The device is designed
with redundancy so that it works even if one of its chips is
defective. Each chip contains n transistors and functions properly
only if all of its transistors work. A transistor works with probability
p independent of any other transistor.
(a) What is the probability P[C] that a chip works?
(b) What is the probability P[M] that the memory module works?
(c) If p = 0.999, what is the maximum number of transistors per
chip n that produces P[M] ≥ 0.9 (a 90% success probability for
the memory module)?
(d) If the memory module can tolerate two defective chips, what is
the maximum number of transistors per chip n that produces
P[M] ≥ 0.9?
73
Quiz: Error Probability for a Noisy Channel
Consider a noisy binary communication channel where the
probability of the transmitter sending a “0” is 0.4, the
probability of receiving a “0” when the sender is transmitting
a “1” is 0.2, and the probability of receiving a “1” when the
sender is sending a “0” is 0.25.
Symbol “0”
Probability is 0.4
“0”
“0”
0.2
0.25
“1”
●
“1”
What are the probability of receiving symbol “0”, receiving
symbol “1”, and the total error probability of this digital
communication system? What is the probability of sending “1”
given that the received symbol is “1”?
74
37
0
You can add this document to your study collection(s)
Sign in Available only to authorized usersYou can add this document to your saved list
Sign in Available only to authorized users(For complaints, use another form )