0% found this document useful (0 votes)
5 views

Section [2]

The document discusses conditional probability, independent events, and the multiplication rule in probability, providing various examples to illustrate these concepts. It explains how to calculate probabilities based on given conditions and introduces the theorem of total probability and Bayes' theorem. Additionally, it includes practical examples related to real-world scenarios to demonstrate the application of these probability principles.

Uploaded by

nagwaabdelatyfci
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Section [2]

The document discusses conditional probability, independent events, and the multiplication rule in probability, providing various examples to illustrate these concepts. It explains how to calculate probabilities based on given conditions and introduces the theorem of total probability and Bayes' theorem. Additionally, it includes practical examples related to real-world scenarios to demonstrate the application of these probability principles.

Uploaded by

nagwaabdelatyfci
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 37

Probability and

Statistics Section [2]


Eng/Nagwa Mohamed
CONDITIONAL PROBABILITY

• The probability of occurring an event A when it is known that


some event B has occurred is called the conditional probability
of A given B and is denoted P(A|B).
• Conditional probability adjusts the likelihood of an event based
on the additional information that another event has already
happened
• the conditional probability reduces our sample space from the
set S to its subset B
CONDITIONAL PROBABILITY

P(B) ≠ 0

P(A) ≠ 0
CONDITIONAL PROBABILITY

Example 1
You roll a die twice What is the probability that the sum equal 10, if
you know that the1st element equal 6?
A = {(4,6), (5,5), (6,4)} P(A)=3/36
B = {(6,1), (6,2), (6,3), (6,4), (6,5), (6,6)} P(B)=6/36
CONDITIONAL PROBABILITY

Example 2
A class of 40 students was asked, “do you like school?” The results of
the survey are recorded in the two-way table.find the probability a
student likes school given they are male
CONDITIONAL PROBABILITY

Example 2 solution
CONDITIONAL PROBABILITY

Example 3 (Q4 in sheet 2)


You roll a die twice and record the largest number (if the two rolls
give the same outcome, this is the largest number).
(a) Given that the first roll gives 1, what is the conditional probability
that the largest number is 3?
(b) Given that the first roll gives 3, what is the conditional probability
that the largest number is 3?
CONDITIONAL PROBABILITY

Example 3 (Q4 in sheet 2)


(a) Given that the first roll gives 1, what is the conditional probability
that the largest number is 3?
• If the first roll is 1, the possible pairs of outcomes
{(1,1),(1,2),(1,3),(1,4),(1,5),(1,6)} ,P(First roll = 1)=6/36 =1/6
• For the largest number to be 3,the possible pairs of outcomes {(1,3)}
P(Largest number = 3)= 1/36
1
36 1
P(Largest number = 3∣First roll = 1) = 6 =
6
36
CONDITIONAL PROBABILITY

Example 3 (Q4 in sheet 2)


(b) Given that the first roll gives 3, what is the conditional probability that
the largest number is 3?
• If the first roll is 3, the possible pairs of outcomes
{(3,1),(3,2),(3,3),(3,4),(3,5),(3,6)} ,P(First roll = 1)=6/36
• For the largest number to be 3,the possible pairs of
outcomes {(3,1),(3,2),(3,3)}
P(Largest number = 3)= 3/36
3
36 3 1
P(Largest number = 3∣First roll = 3) = 6 = =
6 2
36
CONDITIONAL PROBABILITY

Example 4 (Q5 in sheet 3)


Suppose we flip three fair coins.
(a) What is the probability that all three coins are heads?
(b) What is the conditional probability that all three coins are heads,
conditional on knowing that the number of heads is odd?
(c) What is the conditional probability that all three coins are heads,
given that the number of heads is even?
CONDITIONAL PROBABILITY

Example 4 (Q5 in sheet 3) solution


(a) What is the probability that all three coins are heads?

A: all three coins are heads then the


outcomes is {HHH} ,

P(A)=1/8
CONDITIONAL PROBABILITY

Example 4 (Q5 in sheet 3)


(b) What is the conditional probability that all three coins are heads,
conditional on knowing that the number of heads is odd?
• B: The number of heads is odd then the outcomes is
{HHH,HTT,THT,TTH} , P(B)=4/8
• A∩B = (HHH) , P(A∩B)= 1/8
1
8 1
= 4 =
4
8
CONDITIONAL PROBABILITY

Example 5
Consider an industrial process in the textile industry in which strips of a
particular type of cloth are being produced. These strips can be
defective in two ways, length and nature of texture. It is known from
historical information on the process that 10% of strips fail the length
test, 5% fail the texture test, and only 0.8% fail both tests. If a strip is
selected randomly from the process and a quick measurement
identifies it as failing the length test, what is the probability that it is
texture defective?
CONDITIONAL PROBABILITY

Example 5 solution
P(L)= 0.1
P(T)=0.05
P(L∩T)= 0.008
P(T|L)= 0.008/0.1 =0.08
Disjoint (or mutually exclusive):
Independent Events

two events are said to be independent if the occurrence of one event


does not affect the occurrence of the other
P(A∩B)=P(A)⋅P(B)
Independent Events

Example 6
A single fair die is rolled. Let A={3} and B {1,3,5} Are A and B independent?
Solution:
In this example we can compute all three probabilities
P(A)=1∕6,
P(B)=1 ∕ 2,
P(A∩B)=P({3})=1∕6
Since the product P(A)⋅P(B)=(1∕6)(1∕2)=1∕12
as P(A∩B) != P(A)⋅P(B)
the events A and B are not independent.
Independent Events

Example 6
A single fair die is rolled. Let A={3}and B={1,3,5} Are A and B independent?
Solution:
In this example we can compute all three probabilities
P(A)=1∕6,
P(B)=1 ∕ 2,
P(A∩B)={3} =1/6
P(A|B)= 1/6 / ½ = 2/6
P(A|B) != P(A)
the events A and B are not independent
THE MULTIPLICATION RULE
THE MULTIPLICATION RULE

Example 7
Box contains 20 red and 10 blue balls. Two balls are drawn from a bag one after the other without
replacement. What is the probability that both the balls are drawn are red?
P(A) = P(red balls in first draw) = 20/30
Now, only 19 red balls and 10 blue balls are left in the bag, The probability of drawing a red ball in the
second draw too is an example of conditional probability where the drawing of the second ball depends on
the drawing of the first ball.
Conditional probability of B on A will be,
P(B|A) = 19/29
By multiplication rule of probability,
P(A∩B) = P(A) × P(B|A)
THE MULTIPLICATION RULE

Example 8
Suppose we have a fuse box containing 20 fuses of which 5 are defective (D) and 15 are non-
defective (N). If 2 fuses are selected at random and removed from the box in succession
without replacing the first, what is the probability that both fuses are defective?
Solution:
Define the following events:
A = {the first fuse is defective}
B = {the second fuse is defective}
A∩B={the first fuse is defective and the second fuse is defective} = {both fuses are defective}
THE MULTIPLICATION RULE

Example 8
MULTIPLICATION RULE OF PROBABILITY
FOR MORE THAN two events

P(E ∩ F ∩ G) = P(E) P(F|E) P(G|(E ∩ F)) = P(E) P(F|E) P(G|EF)


Example 9
Three cards are drawn successively, without replacement from a
pack of 52 well shuffled cards. What is the probability that first
two cards are kings and the third card drawn is an ace?
MULTIPLICATION RULE OF PROBABILITY
FOR MORE THAN two events

P(E ∩ F ∩ G) = P(E) P(F|E) P(G|(E ∩ F)) = P(E) P(F|E) P(G|EF)


Example 9 solution
THEOREM OF TOTAL PRBABILITY

• The theorem of total probability is useful to find the probability of happening an event from the different
partitions of the sample space.

• A = A∩ S
• A = A ∩ {B U C}
• A = {A∩ B} U {A ∩ C}
• P(A) = P(A ∩ B) ∪ P(A ∩ C)
• P(A ∩ B ) = P(A|B ) P(B )
• P(A ∩ C) = P(A|C ) P(C )
• Therefore,
P (A) = P(A|B ) P(B ) ∪ P(A|C ) P(C )
P (A) = P(A|B ) P(B ) + P(A|C ) P(C )
THEOREM OF TOTAL PRBABILITY (Multiple
Events):
• A = A∩ S
• A = A ∩ {B1 U B2 U B3 U B4}
• A = {A∩ B1} U {A ∩ B2 }U {A ∩ B3}U {A ∩ B4}
• P(A) = P(A ∩ B1) + P(A ∩ B2)+P(A ∩ B3) + P(A ∩ B4)
• P(A ∩ B1 ) = P(A|B1 ) P(B1 )
• P(A ∩ B2 ) = P(A|B2 ) P(B2 )
• P(A ∩ B3 ) = P(A|B3 ) P(B3 )
• P(A ∩ B4 ) = P(A|B4 ) P(B4 )

• Therefore,
P (A) = P(A|B1 ) P(B1 ) ∪P(A|B2 ) P(B2 )∪P(A|B3 ) P(B3 )∪P(A|B4 ) P(B4 )
P (A) = P(A|B1 ) P(B1 ) +P(A|B2 ) P(B2 )+P(A|B3 ) P(B3 )+P(A|B4 ) P(B4 )
THEOREM OF TOTAL PRBABILITY

In general
• Let {E1 , E2 ,...,En } be a partition of the sample space S, E1, E2, E3, ......En mutually exclusive events.
Ei ∩ Ej = ∅
• Let A be any event associated with S, Then
• A = A∩ S
• A = A ∩ {E1 U E2 U E3, .....U En}
• A = {A∩ E1} U {A ∩ E2} U {A ∩ E3}, .....U {A ∩ En}
• P(A) = P [(A ∩ E1 ) ∪ (A ∩ E2 )∪ .....∪ (A ∩ En )]
• P(A) = P (A ∩ E1 ) + P (A ∩ E2 ) + ... + P (A ∩ En )
• P(A) = P(A ∩ Ei ) = P(Ei ) P(A|Ei ) as P (Ei ) ≠ 0∀i = 1,2,..., n
• Therefore, P (A) = P (E1 ) P (A|E1 ) + P (E2 ) P (A|E2 ) + ... + P (En )P(A|En )
THEOREM OF TOTAL PRBABILITY

Example 10
Company A supplies 80% of widgets for a car shop and only 1% of their widgets turn out to be defective. Company B
supplies the remaining 20% of widgets for the car shop and 3% of their widgets turn out to be defective.if a customer
randomly purchases a widget from the car shop, what is the probability that it will be defective?

If we let P(D) = the probability of a widget being defective and P(Bi) be the probability that the widget came from
one of the companies, then we can compute the probability of buying a defective widget as:
• P(D) = ΣP(D|Bi) P(Bi)
• P(D) = P (D ∩ B1 ) + P (D ∩ B2 )
• P(D) = P(D|B1) P(B1) + P(D|B2) P(B2)
• P(D) = (0.01) (0.80) + (0.03) (0.20)
• P(D) = 0.014
THEOREM OF TOTAL PRBABILITY

Example 11:
Each of Rohit’s three bags holds 100 marbles.
Bag 1 contains 75 red and 25 blue marbles
Bag 2 contains 40 blue and 60 red marbles.
Bag 3 contains 45 red and 55 blue marbles.

Rohit randomly selects one of the bags and then randomly selects a marble from
the selected bag. How likely is it that the selected marble is red?
THEOREM OF TOTAL PRBABILITY

Example 11 Solution:
If the selected stone is red, let R be that event. Let Bi be the event in which Rohit selects Bag i. We are aware of
that.
P(R|B1)=0.75
P(R|B2)=0.60

P(R|B3)=0.45
Now, Using the law of total probability, we can write
P(R)=P(R|B1)P(B1)+P(R|B2)P(2)+P(R|B3)P(B3)
=(0.75)1/3+(0.60)1/3+(0.45)1/3= 0.60
Baye's Theorem.

• The theorem of total probability is the foundation of Baye'sTheorem.


• describes the probability of occurrence of an event related to any condition
• P(A ∩ B) = P(A|B)P(B) = P(B|A)P(A)
Baye's Theorem.

Let E1, E2,…, En be a set of events associated with a sample space S, where all the events E1, E2,…,
En have nonzero probability of occurrence and they form a partition of S. Let A be any event associated with S,
then according to Bayes theorem,
Baye's Theorem.

Example 12 :

Given three identical boxes I, II and III, each containing twocoins. In


box I, both coins are gold coins, in box II, both aresilver coins and in
the box III, there is one gold and one silvercoin. A person chooses a
box at random and takes out a coin. If the coin is of gold, what is the
probability that the other coin inthe box is also of gold?
Baye's Theorem.

Example 12 solution :
• Let E1​, E2​, E3​ and A be the events defined as follows :
E1​= box I is chosen,
E2​= box II is chosen,
E3​= box III is chosen and
A= a gold coin has been taken out
1
Then P(E1​)=P(E2​)=P(E3​)=3
2
P(A∣E1​)=P( drawing a gold coin from box I) =2 = 1
0
P(A∣E2​)=P(drawing a gold coin from box II) =2 = 0
1
P(A∣E3​)=P(drawing a gold coin from box III) =2
We want to find the probability that the other coin in the chosen box is gold i.e., the probability that gold coin is
drawn from box I By Bayes' theorem,
Baye's Theorem.

Example 13 :
At a certain university, 4% of men are over 6 feet tall and 1% of women are over
6 feet tall. The total student population is divided in the ratio 3:2 in favour of
women. If a student is selected at random from among all those over six feet tall,
what is the probability that the student is a woman
Baye's Theorem.

Example 13 solution :
‫صلّوا علي النبي ﷺ‬

You might also like