Lecture_05
Lecture_05
Probability
Conditional probability
Bayes’ theorem
Counting Rules
Get started by A simple example
Suppose a communication system consists
of n antennas arranged in a line, with 2 of
them being defective:
14 14 14!
expansion of 𝑥 + 𝑦 is =
6 6! 14−6 !
𝑛 𝑛! 𝑛!
Counting: # divisions 𝑛 , 𝑛 , … , 𝑛 ≡ = ς𝑟
1 2 𝑟 𝑛 !𝑛
1 2 !⋯𝑛 𝑟 ! 𝑗=1 𝑛𝑗 !
where
𝐴𝑟,𝑛 = 𝑛1 , 𝑛2 , … , 𝑛𝑟 ∈ 𝑁 𝑟 |𝑛1 + 𝑛2 + ⋯ + 𝑛𝑟 = 𝑛
Example. The coefficient on 𝑥 5 𝑦 2 𝑧 7 in the expansion of
14 14 14!
𝑥+𝑦+𝑧 is = = 72,072
5, 2,7 5! 2! 7!
Counting rules
Rule 1
• If any one of k different mutually exclusive and
collectively exhaustive events can occur on each of n
trials, the number of possible outcomes is kn
Rule 2
• If there are k1 events on the first trial, k2 events on the
second trial, … and kn events on the nth trial, the number
of possible outcomes is (k1)(k2)…(kn)
Rule 3
• The number of ways that n items can be arranged in
order is n! = (n)(n – 1)…(1)
Rule 4 - Permutations
• An arrangement of a set of objects with regard to the
order of the arrangement 𝑛 𝑃𝑘
Rule 5 - Combinations
Find the minimum number of
students in the class such that five • An arrangement of a set of objects without regard to the
of them are born in the same 𝑛
month? order of the arrangement 𝑛 𝐶𝑘 ≡
𝑘
Probability Concepts
Probability Concepts
Random experiments
Events
Empirical probability
Logical probability
Subjective probability
Simple probability
Joint probability
Random Experiments
A random experiment is an observational process
whose outcomes cannot be known in advance.
𝑃 𝑛𝑒𝑖𝑡ℎ𝑒𝑟 𝐴 𝑛𝑜𝑟 𝐵
= 𝑃 𝑛𝑜𝑡 𝐴 𝑜𝑟 𝐵
= 𝑃 𝑛𝑜𝑡 𝐴 𝑎𝑛𝑑 𝑛𝑜𝑡 𝐵
= 1 – 𝑃(𝐴 𝑜𝑟 𝐵)
General Law of Addition
The general law of addition states that the
probability of the union of two events A and B is
𝑃 𝐴 ∪ 𝐵 = 𝑃 𝐴 + 𝑃 𝐵 − 𝑃(𝐴 ∩ 𝐵)
Outcomes here are double-
counted by 𝑃 𝐴 + 𝑃(𝐵)
𝑛 𝑛
𝑃 𝑆 = ራ 𝐸𝑖 = 𝑃(𝐸𝑖 ) = 1
𝑖=1 𝑖=1
𝑖𝑓 𝐸𝑖 ∩ 𝐸𝑗 = ∅, ∀𝑖 ≠ 𝑗
Example. Let S be the event that a randomly
chosen female aged 18–24 is a smoker.
Let C be the event that a randomly chosen female
aged 18–24 is a Caucasian.
Given 𝑃 𝑆 = 0.246; P C = 0.830; P S ∩ 𝐶 = 0.232.
𝑃 𝑆 ′ = 1 − 𝑃 𝑆 = 1 − 0.246 = 0.734
𝑃 𝐶 ′ = 1 − 𝑃 𝐶 = 1 − 0.830 = 0.170
𝑃 𝑆 ∩ 𝐶 ′ = 𝑃 𝑆 − 𝑃 𝑆 ∩ 𝐶 = 0.014
Conditional Probability
Conditional Probability
The probability of event A
given that event B has
occurred.
Multiplication rule
P(A B) P(A | B) P(B)
What color marbles could be picked out of the bag next time?
Example
Suppose 50 percent of the customers at Pizza
Palooza order a pizza, 80 percent order a soft
drink, and 40 percent order both a pizza and a
soft drink.
Is ordering a soft drink
independent of ordering
a pizza?
An other Example
Over 1,000 people try to climb Mt. Everest every year.
Of those who try to climb Everest, 31 percent
succeed. The probability that a climber is at least 60
years old is 0.04. The probability that a climber is at
least 60 years old and succeeds in climbing Everest
is 0.005.
Find the probability of success, given that a climber
is at least 60 years old.
Is success in climbing Everest independent of age?
From the Law of independent events to System Reliability
Suppose that a website has two independent file servers A and B.
If each has 99 percent reliability, what is the total reliability?
Let A, B = the event the server A, B will be uptime, respectively.
P ( A) 1 P ( A)
P( A) P( A) Odds
Odds = P ( A) P ( A)
P( A ') 1 P( A)
Example: Suppose the IRS tax audit rate is 1.41
percent among taxpayers earning between
$100,000 and $199,999.
set 𝑃 𝐴 = 0.0141.
Conditional probability:
P(GPS AC) 0.35
P(GPS | AC) 0.3889
P(AC) 0.90
Decision Trees
Decision Trees
.35
.90 P(AC ∩ GPS) = 0.35
Given AC or
no AC:
Developed by
Thomas
Bayes in the
18th Century.
Example. Based on historical data, three hospital
trauma centers have 50, 30, and 20 percent of
the cases, respectively. The probability of a case
resulting in a malpractice suit in each of the three
hospitals is 0.001, 0.005, and 0.008, respectively.
If a malpractice suit is filed, what is the probability
that it originated in hospital 1?
Bayes’ theorem says that
Basic procedure of Bayesian methodology
Example. Machines A, B, and C produce two
parts X and Y. Of all the parts produced,
machine A produces 60%, machine B produces
30% and machine C produces10%. In addition,
• 40% of parts made by machine A are part X.
• 50% of parts made by machine B are part X.
• 70% of parts made by machine C are part X.
Part X has been selected. What is the revised
probability that it came from machine A?
Event (E) Prior Conditional Joint Posterior
probability probability probability probability
𝑷(𝑬𝒊 ) 𝑷(𝑿|𝑬𝒊 ) 𝑷(𝑿 ∩ 𝑬𝒊 ) 𝑷(𝑬𝒊 |𝑿)
𝑷 𝑿 = 𝟎. 𝟒𝟔
Exercise