Crash Course - Conditional Probability
Crash Course - Conditional Probability
Probabilty:
Crash course
1
Example 1:
2
TREE DIAGRAMS
SAMPLING WITHOUT REPLACEMENT.
Y2
Y1
Y2
3
TREE DIAGRAMS
SAMPLING WITHOUT REPLACEMENT
Y2
Y1
Y2
4
TREE DIAGRAMS
● THE ABOVE EXAMPLE IS AN EXAMPLE OF
SAMPLING WITHOUT REPLACEMENT
Y2
Y1
5
Y2
CONDITIONAL PROBABILITIES
Reading off from the tree diagram
6
Why do we add?
● In the last example we added hence
we are using the addition rule.
○ Therefore, we write:
■ P (B1 ∩ B2)
● This is found using the multiplication rule which is the same
as multiplying along the appropriate branch of the tree
diagram (above).
● P (B1 ∩ B2) = P(B2 | B1) ⋅ P(B1) = 4/7 x 5/8 = 5/14
8
TREE DIAGRAMS
● Find the probability that both beads are the SAME colour
9
TREE DIAGRAMS
● P (C ∪ D) can easily found from the tree diagram:
○ Remembering:
■ “Or” means Add
● Add between branches
■ “And” means Multiply
● Multiply along the branches
● Therefore,
○ P(B1 ∩ B2) = P(B2 | B1) ⋅ P(B1) = 4/7 x 5/8 = 5/14
■ Multiplying along the branch (right to left)
○ Similarly, P(Y1 ∩ Y2) = P(Y2 | Y1) ⋅ P(Y1) = 2/7 x 3/8 = 3/28
■ Multiplying along the branch (right to left)
10
Twelve exercises with solutions
● If you can answer these exemplar
questions you should be able to
tackle any question on conditional
probability thrown at you.
12
SOLUTION Q1
SOLUTION Q1 part a
a) Using the tree diagram above:
Require probability, event B1 AND B2;
17
SOLUTION Q2
SOLUTION Q2 part a
Reading from appropriate branch of the tree
diagram:
P(H’ ∩ E) = P(H’) x P(E|H’) = 0.25 x 0.4 = 0.1
⋅ SOLUTION Q2 part b
We are required to find P(E).
We must multiply along the appropriate branches
and add between the branches. There are 2
branches that end in P(E) which we must add
together.
26
⋅ SOLUTION Q4 part a
Find P(A ∩ B)
⋅ SOLUTION Q4 part b
Find P(A|B)
⋅ SOLUTION Q4 part c
Find P(B|A)
⋅ SOLUTION Q4 part c
Find P(B|A)
⋅ SOLUTION Q4 part c
Find P(A|B’)
Ex 5:
5. Given that P(R|S) = 0.5, P(R|S’) = 0.4 and
P(S) = 0.6, find:
a. P(R)
b. P(S|R)
c. P(S’|R)
d. P(S’|R’)
32
⋅ SOLUTION Q5 part a
Find P(R)
⋅ SOLUTION Q5 part b
Find P(S|R)
⋅ SOLUTION Q5 part c
Find P(S’|R)
⋅ SOLUTION Q5 part d
Find P(S’|R’)
Ex 6:
6. In grade 10 of a certain school 55% of the
students are boys. Of the boys 80% stay on
into the DP but only 75% of the girls do.
a. Find the probability that a randomly
selected student from grade 10 is a girl
who stays on into the DP.
b. Find the probability that a randomly
chosen grade 10 student will not stay on
into the DP.
c. Find the probability that a randomly
selected DP student is a girl.
37
⋅ SOLUTION Q6
Convert the question to the language of
probability:
B is the event that a student is a boy, P(B) = 55%
B’ is the event that a student is not a boy, i.e. a girl,
P(B’) = 100% - 55% = 45%
D event that a student stays on into the DP.
P(D|B) the event that a student stays on given that
the student is a boy, P(D|B)=80%
P(D|B’) the event that a student stays on given that
the student is a girl, P(D|B’)=75%
⋅ SOLUTION Q6
Information is used to draw a tree diagram.
⋅ SOLUTION Q6 part a
Find the probability that a randomly selected student from
grade 10 is a girl who stays on into the DP.
We require, P(B’|D)
⋅ SOLUTION Q6 part c
Ex 7:
7. A bunch of 30 keys are either gold or silver in
colour (but not both). There are 10 mortice
lock keys and 20 yale lock keys. Of these 5
yale lock keys and 2 mortice lock keys are
gold in colour. A key is selected at random.
a. Find the probability that the key is silver in
colour.
b. Find the probability that the key is silver
coloured and for a mortice lock.
I borrow this bunch of keys to open a yale lock.
c. What is the probability that the correct key
is silver?
44
⋅ SOLUTION Q7
⋅ SOLUTION Q7 part a
Required to find P(G’)
Using the Tree diagrams; G’ is found on 2 branches:
⋅ SOLUTION Q7 part b
⋅ SOLUTION Q7 part c (A)
• This question is easy if you tabulate the outcomes.
– You may try other things first and they don’t work,
this is normal when you apply different techniques
to solve problems. It is not always obvious which
one works.
⋅ SOLUTION Q7 part c (B)
.
Ex 8:
8. Given that P(A) = ¼, P(B) = ⅓, and P(A ∪ B)
= 5/12,
a. Find P(A|B) and P(A|B’)
b. P(A|B)⋅P(B) + P(A|B’)⋅P(B’)
Comment on your result.
50
⋅ SOLUTION Q8
The question is easily solved once a Venn diagram (or
Tree diagram) has been constructed.
⋅ SOLUTION Q8 part a
Find P(A|B) and P(A|B’)
Comments:
Ex 9:
9. A teacher walks, cycles or drives to school
with probabilities 0.1, 0.3 and 0.6
respectively. If she walks to school she has a
probability of 0.35 of being late. The
corresponding probabilities of being late if
she cycles or drives to school are 0.1 and
0.55 respectively.
a. Find the probability that she is late on any
particular day.
b. Given that she is late one day, find the
probability that she walked.
c. Given that she is not late one day, find the
probability that she walked.
Give your answers to 3 decimal places.
54
⋅ SOLUTION Q9
Sequential events - so construct a Tree diagram. First
defining the events.
0.55
0.6 x 0.55 =
0.33
⋅ SOLUTION Q9 part a
Find the probability that she is late on any particular day.
0.55
SOLUTION Q9 part b
Given that she is late one day, find the probability that she
walked.
We require, P(W|L)
SOLUTION Q9 part b
SOLUTION Q9 part c
Given that she is not late one day, find the probability that
she walked.
We require, P(W|L’)
SOLUTION Q9 part c
Ex 10:
10. State in words the meaning of the symbol
P(B|A). where A and B are two events.
A shop stocks tinned cat food of two makes A
and B, and two sizes, large and small. Of the
stock, 70% is of brand A, 30% is of brand B.
Of the tins of brand A, 30% are small size
whilst of the tins of brand B, 40% are of the
small size.
Using a tree diagram, or otherwise, find the
probability that:
a. a tin chosen at random from the stock will
be of small size
b. a small tin chosen at random from the
stock will be of brand A.
62
SOLUTION Q10
71
Ex 12: Venn diagram
Or alternatively Venn diagram
72
Ex 12: part a
73
Ex 12: part b
74
Ex 12: part c
75
Ex 12: Last part (2 married couples) (A)
76
Ex 12: Last part (2 married couples) (B)
77