3 Probability
3 Probability
Faculty of Engineering
Electrical and Electronics Engineering Department
Probability
Axioms and Properties of Probability, Conditional Probability,
Independence
Salma Elkawafi
[email protected]
Goals
Example
• In the experiment consists of flipping two coins S = {(H,H), (H, T), (T,H), (T, T)}
The event that a head appears on the first coin is E = {(H,H), (H, T)}
𝑛𝑢𝑚𝑏𝑒𝑟 𝑜𝑓 𝑜𝑢𝑡𝑐𝑜𝑚𝑒𝑠 𝑖𝑛 𝐸
𝑃 𝐸 =
𝑛𝑢𝑚𝑏𝑒𝑟 𝑜𝑓 𝑜𝑢𝑡𝑐𝑜𝑚𝑒𝑠 𝑖𝑛 𝑆
Limitation:
What does "equally likely" mean? This appears to use the concept of
probability while trying to define it! We could remove the phrase
"provided all outcomes are equally likely", but then the definition
would clearly be unusable in many settings where the outcomes in did
not tend to occur equally often.
Probability axioms, properties and theories
Relative frequency Definition:
Limitation:
In many cases we can't even obtain a long series of repetitions due to time,
cost, or other limitations. For example, the probability of rain today can't really
be obtained by the relative frequency definition since today can‘t be repeated
again.
Probability axioms, properties and theories
Consider an experiment whose sample space is 𝑺. For each event 𝑬 of the sample
space 𝑺, we assume that a number 𝑃(𝐸) is defined and satisfies the following three
axioms:
Axiom 1
0 ≤ 𝑃(𝐸) ≤ 1
Axiom 2
𝑃(𝑆) = 1
Axiom 3
For any sequence of disjoint 𝐸1, 𝐸2, . . . (events for which 𝐸𝑖𝐸𝑗 = Ø when 𝑖 ≠ 𝑗),
∞ ∞ 𝑛 𝑛
𝑃 ራ 𝐸𝑖 = 𝑃(𝐸𝑖 ) → 𝑃 ራ 𝐸𝑖 = 𝑃(𝐸𝑖 )
𝑖=1 𝑖=1 𝑖=1 𝑖=1
Note, the null event has probability 0 of occurring.
Probability axioms, properties and theories
Example:
In a presidential election, there are four candidates. Call them A, B, C, and D. Based on
our polling analysis, we estimate that A has a 20 percent chance of winning the
election, while B has a 40 percent chance of winning. What is the probability that A or B
win the election?
Solution
𝑃 𝐴 wins 𝑜𝑟 𝐵 wins = 𝑃 𝐴 wins ∪ 𝐵 wins
= 𝑃 𝐴 wins + 𝑃 𝐵 wins
= 0.2 + 0.4
= 0.6
Probability axioms, properties and theories
Some Simple Propositions
Proposition 1:
𝑃(𝐸 𝑐 ) = 1 − 𝑃(𝐸)
The probability that an event does not occur is 1 minus the probability that it does occur.
Proposition 2:
𝐼𝑓 𝐸 ⊂ 𝐹, then 𝑃(𝐸) ≤ 𝑃(𝐹).
if the event E is contained in the event F, then the probability of E is no greater than the
probability of F
Proposition 3:
𝑃(𝐸 ∪ 𝐹) = 𝑃(𝐸) + 𝑃(𝐹) − 𝑃(𝐸𝐹)
Proposition 4:
𝑃(𝐴 − 𝐵) = 𝑃(𝐴) − 𝑃(𝐴 ∩ 𝐵)
Probability axioms, properties and theories
Example:
Suppose we have the following information:
• There is a 60 percent chance that it will rain today.
• There is a 50 percent chance that it will rain tomorrow.
• There is a 30 percent chance that it does not rain either day.
Find the following probabilities:
1. The probability that it will rain today or tomorrow. 𝑃 𝐴 ∪ 𝐵
2. The probability that it will rain today and tomorrow. 𝑃 𝐴 ∩ 𝐵
3. The probability that it will rain today but not tomorrow. 𝑃 𝐴 − 𝐵
Solution
𝑃 𝐴 = 0.6, 𝑃 𝐵 = 0.5, 𝑃(𝐴𝑐 ∩ 𝐵𝑐 ) = 0.3
𝑃 𝐴 ∪ 𝐵 = 1 − 𝑃 𝐴 ∪ 𝐵 𝑐 = 1 − 𝑃 𝐴𝑐 ∩ 𝐵𝑐 = 1 − 0.3 = 0.7
𝑃 𝐴 ∩ 𝐵 = 𝑃 𝐴 + 𝑃 𝐵 − 𝑃 𝐴 ∪ 𝐵 = 0.6 + 0.5 − 0.7 = 0.4
𝑃 𝐴 − 𝐵 = 𝑃 𝐴 − 𝑃 𝐴 ∩ 𝐵 = 0.6 − 0.4 = 0.2
Probability axioms, properties and theories
Definitions
Mutually Exclusive Events:
Two events, A and B are said to be mutually exclusive if they cannot occur together.
Ex. In tossing a die, both head and tail cannot happen at the same time.
𝑃 𝐴 ∪ 𝐵 = 𝑃 𝐴 + 𝑃(𝐵)
Independent Events:
Two events are said to be independent, if happening or failure of one does not affect the
happening or failure of the other. Otherwise, the events are said to be dependent.
If two events, A and B are independent then the joint probability is
𝑃 𝐴 ∩ 𝐵 = 𝑃 𝐴 𝑃(𝐵)
If we toss 2 dice and suppose that each of the 36 possible outcomes is equally likely.
Suppose that we observe the first die is a 3. Then, given this information, what is the
probability that the sum of the 2 dice equals 8?
Given that the initial die is a 3, the possible outcomes of our experiment are (3, 1), (3, 2),
(3, 3), (3, 4), (3, 5), and (3, 6). That is, given that the first die is a 3, the (conditional)
probability of each of the outcomes (3, 1), (3, 2), (3, 3), (3, 4), (3, 5), and (3, 6) is 1/6
If E (the event that the sum of the dice is 8 ) and F (event that the first die is a 3), then
the probability just obtained is called the conditional probability that E occurs given
that F has occurred and is denoted by:
𝑃(𝐸|𝐹).
Conditional Probability
A general formula for 𝑃(𝐸|𝐹) that is valid for all events E and F is derived in the same
manner: If the event F occurs, then, in order for E to occur, it is necessary that the actual
occurrence be a point both in E and in F; that is, it must be in EF. Now, since we know
that F has occurred, it follows that F becomes our new, or reduced, sample space;
hence, the probability that the event EF occurs will equal the probability of EF relative to
the probability of F.
• 𝑃 𝐸1 𝑈 𝐸2 𝐹) = 𝑃 𝐸1 𝐹) + 𝑃 ( 𝐸2 | 𝐹) − 𝑃(𝐸1 ∩ 𝐸2 𝐹
• 𝑃 𝐸1 𝐹 ≤ 𝑃 𝐸2 𝐹 𝑓𝑜𝑟 #𝐸1 ≤ #𝐸2
• If 𝐸 ∩ 𝐹 = ∅, 𝑃 𝐸 𝐹 = 0
then
𝑃 𝐸 𝐹 = 𝑃 𝐸 , 𝑃 𝐹 𝐸 = 𝑃(𝐹)
Conditional Probability
Example:
A coin is flipped twice. Assuming that all four points in the sample space S = {(h, h), (h, t),
(t, h), (t, t)} are equally likely, what is the conditional probability that both flips land on
heads, given that (a) the first flip lands on heads? (b) at least one flip lands on heads?
Solution
Let:
B : the event that both flips land on heads;
F : the event that the first flip lands on heads;
A : the event that at least one flip lands on heads. The probability for
Solution
a) Let 𝑋 = {9} → 𝑃(𝑋) = 1/9
b) Let 𝑌 = 1,3,5,7,9 odd Event
𝑃 𝑋𝑌 1/9 1
𝑃 𝑋Y = = =
𝑃 𝑌 5/9 5
𝑃 𝑋𝑌
a) 𝑃 𝑌X = = 1
𝑃 𝑋
Conditional Probability
Example:
Celine is undecided as to whether to take a French course or a chemistry course. She estimates
1 2
that her probability of receiving an A grade would be in a French course and in a chemistry
2 3
course. If Celine decides to base her decision on the flip of a fair coin, what is the probability that
she gets an A in chemistry?
Solution:
Let:
A : Celine receives an A in whatever course she takes,
F : Celine takes a French course
C : Celine takes chemistry
1
Then we have the following probabilities: 𝑃 𝐶 = 𝑃 𝐹 = “because she choose based on
2
flipping a fair coin”, Then the desired probability is 𝑃(𝐶𝐴), which is calculated by using:
𝑃 𝐶𝐴 = 𝑃 𝐶 𝑃 𝐴 𝐶
1 2 1
= ∗ =
2 3 3
Conditional Probability
Multiplication Rule, Law of Total Probability:
Let 𝐸 , 𝐹 and 𝐺 be any three events defined on 𝑆 such that 𝑃 𝐸 , 𝑃 𝐹 , 𝑃 𝐺 > 0 and from the
definition of the conditional probability we have:
𝑃 𝐸𝐹 = 𝑃 𝐸 ∩ 𝐹 = 𝑃 𝐸|𝐹 𝑃 𝐹 = 𝑃 𝐹|𝐸 𝑃(𝐸)
𝑃 𝐸𝐹𝐺 = 𝑃 𝐸(𝐹𝐺) = 𝑃 𝐸|𝐹𝐺 𝑃 𝐹𝐺 = 𝑃 𝐸|𝐹𝐺 𝑃 𝐹 𝐺 𝑃(𝐺)
The Multiplication rule
𝑃(𝐸1 𝐸2 𝐸3 · · · 𝐸𝑛 ) = 𝑃(𝐸1 )𝑃(𝐸2 |𝐸1)𝑃(𝐸3 |𝐸1 𝐸2 ) · · · 𝑃(𝐸𝑛 |𝐸1 · · · 𝐸𝑛−1 )
If we have some random experiment in which the events of interest form a partition. The
“a priori probabilities” of these events 𝑃(𝐴𝑖 ), are the probabilities of the events before
the experiment is performed. Now suppose that the experiment is performed, and we
are informed that event B occurred; the “a posteriori probabilities” are the probabilities
of the events in the partition 𝑃(𝐴𝑖 | 𝐵).
Bayes Theorem
Example:
An insurance company believes that people can be divided into two classes: those who are accident prone and
those who are not. The company’s statistics show that an accident-prone person will have an accident at some
time within a fixed 1-year period with probability 0.4, whereas this probability decreases to 0.2 for a person who
is not accident prone. If we assume that 30 percent of the population is accident prone, what is the probability
that a new policyholder will have an accident within a year of purchasing a policy?
Suppose that a new policyholder has an accident within a year of purchasing a policy. What is the probability
that he or she is accident prone? Have an
Solution: accident
Let:
Accident prone
𝐴 : the event that the policyholder is accident prone.
𝐴1 :the event that the policyholder will have an accident within a year of purchasing
the policy.
𝑃 𝐴1 = 𝑃 𝐴𝑐 ∩ 𝐴1 + 𝑃 𝐴 ∩ 𝐴1 Have an
= 𝑃 𝐴1 𝐴 𝑃 𝐴 + 𝑃 𝐴1 𝐴𝑐 𝑃 𝐴𝑐 = 0.4 0.3 + 0.2 0.7 = 0.26 accident
Not accident
𝑃(𝐴𝐴1 ) 𝑃 𝐴 𝑃(𝐴1 |𝐴) 0.3 ∗ 0.4 6 prone
𝑃 𝐴 𝐴1 = = = =
𝑃(𝐴1 ) 𝑃(𝐴1 ) 0.26 13
Bayes Theorem
Example:
A weather Satellite is sending a binary code of 0’s and 1’s describing tropical storm. Channel noise, thought, can
be expected to introduce a certain amount of transmission error. Suppose 65% of the message being relayed 0’s
and there is an 85% of a given 0 or 1 being received properly. If a 1 is received, what is the probability that a 0
was sent?
Solution:
Let:
𝐹1 = 0 is sent
𝐹2 = 1 is sent
𝐸1 = 0 is received
𝐸2 = 1 is received
Let A and B represent the respective events that the fire engine and the ambulance
are available. Then
𝑃(𝐴 ∩ 𝐵) = 𝑃(𝐴)𝑃(𝐵) = (0.98)(0.92) = 0.9016.
Probability axioms, properties and theories
Exercise
J is taking two books along on her holiday vacation. With probability 0.5, she will like
the first book; with probability 0.4, she will like the second book; and with probability
0.3, she will like both books. What is the probability that she likes neither book?
Solution:
Let 𝐵𝑖 denote the event that J likes book 𝑖, 𝑖 = 1, 2. Then the probability that she likes at
least one of the books is:
𝑃(𝐵1 ∪ 𝐵2 ) = 𝑃(𝐵1 ) + 𝑃(𝐵2 ) − 𝑃(𝐵1 𝐵2 ) = 0.5 + 0.4 − 0.3 = 0.6
Because the event that J likes neither book is the complement of the event that she likes
at least one of them, we obtain the result
𝑃 𝐵1𝑐 𝐵2𝑐 = 𝑃 𝐵1 ∪ 𝐵2 𝑐 = 1 − 𝑃 𝐵1 ∪ 𝐵2 = 1 − 0.6 = 0.4
Probability axioms, properties and theories
Exercise
A committee of 5 is to be selected from a group of 6 men and 9 women. If the selection
is made randomly, what is the probability that the committee consists of 3 men and 2
women?
Solution:
Because each of the 15 5
possible committees is equally likely to be selected, the
desired probability is
6 9
3 2 240
=
15 1001
5
Probability axioms, properties and theories
Exercise
An urn contains n balls, one of which is special. If k of these balls are withdrawn one
at a time, with each selection being equally likely to be any of the balls that remain at
the time, what is the probability that the special ball is chosen?
Solution:
1 𝑛−1
1 𝑘−1 𝑘
P{special ball is selected}= 𝑛 =
𝑘 𝑛
Probability axioms, properties and theories
Exercise
If 3 balls are “randomly drawn” from a bowl containing 6 white and 5 black balls, what is the
probability that one of the balls is white and the other two black?
Solution:
This problem could also have been solved by regarding the outcome of the experiment
as the unordered set of drawn balls. Hence, the desired probability is :
6 5
1 2 4
=
11 11
3
This problem could also have been solved by regarding the order in which the balls are selected as
being relevant, then the sample space consists of 11 · 10 · 9 = 990 outcomes.
There are :
• 6 · 5 · 4 = 120 outcomes in which the first ball selected is white and the other two are black;
• 5 · 6 · 4 = 120 outcomes in which the first is black, the second is white, and the third is black;
• 5 · 4 · 6 = 120 outcomes in which the first two are black and the third is white.
Assuming that each outcome in the sample space is equally likely to occur, the desired probability is
120 + 120 + 120 4
=
990 11
Probability axioms, properties and theories
Exercise
A poker hand consists of 5 cards. If the cards have distinct consecutive values and
are not all of the same suit, we say that the hand is a straight. For instance, a hand
consisting of the five of spades, six of spades, seven of spades, eight of spades, and
nine of hearts is a straight. What is the probability that one is dealt a straight?
Solution:
10(45 −4)
The desired probability is = 0.0039
𝐶552
Conditional Probability
Exercise
A family has two children. It is known that at least one of the children is a girl. What is
The probability that both the children are girls?
Solution
A = event of at least one girl
B = event of two girl
𝑃 𝐵∩𝐴 1/4 1
𝑃 𝐵𝐴 = = =
𝑃 𝐴 3/4 3
Conditional Probability
Exercise
In the card game, the 52 cards are dealt out equally to 4 players- called Player A, B, C
and Player D. If Player A and Player B have a total of 8 spades among them, what is the
probability that Player C has 3 of the remaining 5 spades?
Solution
By knowing that Player A and Player B have a total of 8 spades among their 26 cards,
we can calculate the required probability for Player C as to count the possible ways of
getting 3 out of 5 over his 13 card from the remaining 26.
So, if we define the following events
C:= Player C has 3 spade,
F:= Player A and Player B have 8 spades in their 26 cards,
The required probability is
5 21
3 10
𝑃 𝐶𝐹 = = 0.339
26
13
Conditional Probability
Exercise
Celine is undecided as to whether to take a French course or a chemistry course. She
1 2
estimates that her probability of receiving an A grade would be in a French course and in a
2 3
chemistry course. If Celine decides to base her decision on the flip of a fair coin, what is the
probability that She gets an A?
Solution:
Let:
C : Celine takes chemistry
A : Celine receives an A in whatever course she takes,
F : Celine takes a French course
1
Then we have the following probabilities: 𝑃 𝐶 = 𝑃 𝐹 = “because she choose based on
2
flipping a fair coin”,
2 1 1 1 7
𝑃 𝐴 = 𝑃 𝐴|𝐶 𝑃 𝐶 + 𝑃 𝐴|𝐹 𝑃 𝐹 = ∗ + ∗ =
3 2 2 2 12
Conditional Probability
Exercise : (sequential representation )
If an aircraft is present in a certain area, a radar detects it and generates an alarm signal with probability 0.99.
If an aircraft is not present. the radar generates a (false) alarm, with probability 0. 10. We assume that an aircraft
is present with probability 0.05. What is the probability of no aircraft presence and a false alarm? What is the
probability of aircraft presence and no detection?
Solution:
Let A and B be the events
𝐴 = {an aircraft is present }, aircraft
present
𝐵 = {the radar generates an alarm} ,
𝐴𝑐 = {an aircraft is not present },
𝐵𝑐 = {the radar does not generate an alarm}
Solution:
Let:
𝑃: The test result is positive
𝑆:The tested person is sick
𝐻: The tested person is healthy,
So, we have the following information:
𝑃(𝑆) = 0.005 and 𝑃(𝐻) = 0.995. Also we have 𝑃(𝑃|𝑆) = 0.95, 𝑎𝑛𝑑 𝑃(𝑃|𝐻) = 0.01