Conditional Prob
Conditional Prob
Instructional Example-1
1 1 1
2 2 4
Probability of getting one head from the 1st tossing
1 1
1
2 2
Probability of getting one head from the 1st tossing
The probability of an event B under the knowledge that the outcome will be
in event A is denoted as
-> given
𝑃(B|𝐴)=Probability of B given A
A B
Conditional Probability
Instructional Example-2
How likely you are jarring the blue marble, randomly
𝑃(𝐵𝑙𝑢𝑒) =? 4/0
Conditional Probability
𝐴 𝐵
Bowl
Conditional Probability
>
-
17
𝐴
-
- 𝐵
Bowl
A
Bowl
B
Blue
3
Yellow
2
Conditional Probability
Bowl A Bowl B
Axiom 1: 𝑃(𝐵|𝐴) ≥ 0 -
PAIA) =
=
Axiom 2: 𝑃 𝐴 𝐴 = 𝑃 𝐵 𝐵 = 1
Axiom 3: P (𝐴|𝐵) = P(A), if A and B are independent events
=
↳ (A)
PLAIB) =
For a
sequence of n events : generalized
the chain rule can be as follow
.
• The person does not have a job given that the person is a female : P(U|𝐹)
PlIF) =
260/400
P(Mne) 460/900
-
P(E) 900
Axioms
im
Let A and B be two events, A⊂B B
6
A
Axiom 1: 𝑃 𝐴 𝐵 < 1
Axiom 2: 𝑃 𝐵 𝐴 = 1
- .. · 4
PLA/B)
= us
PLB(A)-
• Observable: An experiment having observable result.
• Unobservable: An experiment having unobservable result.
Observable
𝑃 𝑡ℎ𝑒 𝑓𝑖𝑟𝑠𝑡 𝑙𝑖𝑔ℎ𝑡 𝑤𝑖𝑙𝑙 𝑏𝑒 𝑟𝑒𝑑 𝑡ℎ𝑒 𝑠𝑒𝑐𝑜𝑛𝑑 𝑙𝑖𝑔ℎ𝑡 ℎ𝑎𝑠 𝑏𝑒𝑒𝑛 𝑟𝑒𝑑)
Unobservable
𝑃 𝑡ℎ𝑒 𝑠𝑒𝑐𝑜𝑛𝑑 𝑙𝑖𝑔ℎ𝑡 𝑤𝑖𝑙𝑙 𝑏𝑒 𝑟𝑒𝑑 | 𝑡ℎ𝑒 𝑓𝑖𝑟𝑠𝑡 𝑙𝑖𝑔ℎ𝑡 ℎ𝑎𝑠 𝑏𝑒𝑒𝑛 𝑟𝑒𝑑 )
Conditional Probability
Instructional Example-3
What is the probability of this blue marble picked from bowl A
𝐴 𝐵 𝑃 𝐵𝑙𝑢𝑒 𝐵𝑜𝑤𝑙 𝐴 =1/5
P[Blue]=4/10
P[Bowl A]=5/10
𝐴 𝐵
𝐶 𝑃(𝑏𝑜𝑤𝑙 𝐴|𝐵𝐿𝑈𝐸)
Bayes’ Rule
Theorem 1.5
𝑃 𝐵|𝐴 𝑃(𝐴)
𝑃 𝐴|𝐵 =
𝑃(𝐵)
P(BIA) =
> observable
PLAIB) PANB) P(BIA) =
PAB)
P(B) PLA)
PlAnB) =
P(AIBIP(B) PLANB) P(BIAPIA)
=
PLAIBPIB) PLBIAPLA)
=
Bayes’ Rule
Theorem 1.5
Bowl
3 2
B
1 5
𝑃 𝐵𝑙𝑢𝑒 𝐵𝑜𝑤𝑙 𝐴 =1/5 𝑃 𝐵𝑙𝑢𝑒 𝐵𝑜𝑤𝑙 𝐴 𝑃[𝐵𝑜𝑤𝑙 𝐴] 5 × 10 1
P[Blue]=2/5 𝑃 𝐵𝑜𝑤𝑙 𝐴 𝐵𝑙𝑢𝑒 = = =
Assume that P[Bowl A]=1/2 𝑃[𝐵𝑙𝑢𝑒] 4 4
10
Conditional Probability
10000
3000
10000
7800
Ise
the chain rule
P(AIB1) = 0 8 .
= 0 . 9
P
=
(ABIP(B1) +PLAIBPB2) +P(AIB3)PIB3) P(AIB3) = 0 . 6
= 0 : 78 P(Bil = 0 3
.
P(B3) = 0 .
3
P (B2) = 0 .
4
Conditional Probability
Example-1.6
Example 1.5
After putting all resitors together “What is the probability of any chosen resistor
comes from machine B1 knowing that this resistor is acceptable?”
P(Bil) = PlBr)
PB1) = xo3 P[B1|A]=0.307
0 78 -
P(A) .
Instructive Example
Customers are used to evaluate preliminary product designs. In the past, 95% of highly successful
products received good reviews, 60% of moderately successful products received good reviews,
and 10% of poor products received good reviews. In addition, 40% of products have been highly
successful, 35% have been moderately successful, and 25% have been poor products.
P(SH P(H) P(GIP(PIP)
>
.
- >
-
P(H(G) P(HnG)/P(g)
=
= P(SH)P(H)P(G(H)
-
= 0 .
97
P(G)
6
>
- 1- 0
95
.
P(GIM) =- 0 .
Ph/ PH =
P(G(P) = 0 1 .
P() ↑ (H) = 0 . 4
Detailed Solution
3/4 (1 -
0 .
617) P(m) = 0 . 37
Example:
Six parts are selected randomly from a bin of 50 parts, but assume that the
selected part is replaced before the next one is selected. The bin contains 3
&
defective parts and 47 nondefective parts. What is the probability that the second
part is defective given that the first part is defective?
3/0
without replacement 4)
:
1part is
defective) =
3/0 P12 part
, is
defective(1st defective)
is =
2/
Definition: Independence
Definition: Let A and B be two events, A and B are independent if
only if any one of the following equivalent statements is true:
I. P A ∩ B = P A P B
II. P(A|B)=P(A)
III. P(B|A)=P(B)
P(𝐴 ∩ 𝐵)= 0
𝑃(𝐴 ∪ 𝐵) = 𝑃(𝐴) + 𝑃(B) (theorem 1.3)
𝑃(𝐴|𝐵) = 0
Case 2- Consider a fair six-sided die as before, differently, we have the property
that the even-numbered faces are colored red, and the odd-numbered faces are
colored green. Let event A be rolling a green face, and event B be rolling a 6. Are
these events mutually ex. or independent?
P(𝑨 ∩ 𝑩)=? E
If P(A | B) = 0.3, P(B) = 0.8, and P(A) = 0.3, are the events B and the complement of A
independent?
P(AY) and P (B) =?
n ur
~
07 08 . .
P(AB) =
P(B)P(AYB)
~ m
0 . 81-0 3
.
Instructive Example
The following circuit operates only if there is a path of functional devices from left to
right. The probability that each device functions is shown on the graph. Assume that
devices fail independently. What is the probability that the circuit operates?
* 30
↑
⑳ . 95 .
P the circuit operates) =
0 95x0 9
.
. =
05
-A
operates) operates
,
⑳ 95
.
90 ↑) An Ac
doesnot operate and
+
operates
-
> Az
↑ An operates and Az operates
Compare the results
. which does work reliable ?
system =
(0 97)(0 1) + (0 05) (0 9) + (0 97)(0 9)
. . .
. .
.
=
Instructive Example
The following circuit operates only if there is a path of functional devices from left to
right. The probability that each device functions is shown on the graph. Assume that
devices fail independently. What is the probability that the circuit operates?
PlAnBnC) = P(a)P(B)P(c)
Al
B
=
(1 -
10 .
1))(1 -
10 .
05/2)(8 99)
.
Az C = 0 986
.
B2
Az