S1: Chapters 5 Probability
Download
Report
Transcript S1: Chapters 5 Probability
S1: Chapter 5
Probability
Dr J Frost ([email protected])
Last modified: 11th December 2013
Starter
Draw a sample space (using a table) for throwing two dice and
recording the product of the two values.
What is the probability of the value being greater or equal to 24?
Die 1
×
Die 2
1
2
3
4
5
6
1
1
2
3
4
5
6
2
2
4
6
8
10
12
3
3
6
9
12
15
18
4
4
8
12
16
20
24
5
5
10
15
20
25
30
6
6
12
18
24
30
36
?
π πππππ’ππ‘ β₯ ?
24 =
6
1
=
36 6
Some fundamentals
An experiment is:
A repeatable process that gives rise to a number of
?
outcomes.
A sample space is:
The set of possible outcomes of an experiment.
e.g. The sample space π of throwing two coins:
?
π = π»π», π»π,?ππ», ππ
Some fundamentals
π ππ£πππ‘ = 0.3
?
An event is a set of (one or more)
outcomes.
πΊ
π¨
π = the whole sample
space
π©
3
4
1
2
6
5
π΄ = even number on
a die thrown
π΅ = prime number on
a die thrown
Some fundamentals
πΊ
π¨
π = the whole
sample space
π©
3
4
1
2
6
5
What does it mean in this
context?
π΄β²
π΅ = prime
number on a die
thrown
What is the resulting set
of outcomes?
Not A.
i.e. Not rolling an even number.
?
π΄ = even number
on a die thrown
{1, 3,?5}
π΄βͺπ΅
A or B. i.e. Rolling an even
or prime number.
?
{2,3,4,5,6}
?
π΄β©π΅
A and B. i.e. Rolling a number
which is even and prime.
{2}?
?
Some fundamentals
πΊ
π¨
π = the whole
sample space
π©
3
4
1
2
6
5
What does it mean in this
context?
π΄ = even number
on a die thrown
π΅ = prime
number on a die
thrown
What is the resulting set
of outcomes?
π΄ β© π΅β²
Rolling a number which is
even and not prime.
{4,6}
?
(π΄ βͺ π΅)β²
Rolling a number which is
not [even or prime].
{1}?
β²
Rolling a number which is
not [even and prime].
{1,3,4,5,6}
?
π΄β©π΅
?
?
?
What area is indicated?
A
C
B
S
π΄ β©? π΅
What area is indicated?
A
C
B
S
π΄ βͺ? π΅
What area is indicated?
A
C
B
S
π΄ β© π΅? β© πΆ
What area is indicated?
A
C
B
S
π΄ β©? πΆ β²
What area is indicated?
A
C
B
S
π΄ β© π΅? β© πΆ β²
What area is indicated?
A
C
B
S
β²
?β²
π΄ β©π΅ β©πΆ
β²
or
alternativelyβ¦
π΄ βͺ π΅? βͺ πΆ
β²
What area is indicated?
A
C
B
S
π΄?β²
What area is indicated?
A
C
B
S
π΄ β© π΅? β© πΆ
β²
Solving problems using Venn Diagrams
A vet surveys 100 of her clients. She finds that
25 own dogs, 15 own dogs and cats, 11 own dogs and tropical fish, 53 own cats, 10 own
cats and tropical fish, 7 own dogs, cats and tropical fish, 40 own tropical fish.
Fill in this Venn Diagram, and hence answer the following questions:
a) π ππ€ππ πππ ππππ¦
b) π ππππ πππ‘ ππ€π π‘πππππππ πππ β
c) π(ππππ πππ‘ ππ€π ππππ , πππ‘π , ππ π‘πππππππ πππ β)
πΊ
πͺ
35
100
11
100
?
8
100
?
π«
6
100
?
Dr Frostβs cat
βPippinβ
7
100
4
100
?
?
3
100
?
26
100
?
π
Exercises
Page 84 Exercise 5B
Q6
Recap
If π΄ and π΅ are mutually exclusive, this means:
they can not happen?at the same time.
π΄
π΅
On a Venn Diagramβ¦
the circles appear
separately.
?
If π΄ and π΅ are independent, this means:
one does not affect the other.
Note that these 2 things are ENTIRELY DIFFERENT, they are not βoppositesβ. If π΄
and π΅ are not mutually exclusive, that doesnβt
? necessarily mean they are
independent.
The Venn Diagram is NOT AFFECTED BY INDEPENDENCE.
Recap
If events A and B are mutually exclusive, then:
π π΄ βͺ π΅ = π π΄ +? π(π΅)
π π΄β©π΅ =0
?
If events A and B are independent, then:
π π΄β©π΅ =π π΄ ×π π΅
But weβre interested in how we can calculate probabilities when events are not
mutually exclusive, or not independent.
Addition Law
Mutually Exclusive
π¨
π©
Think about the areasβ¦
π π΄ βͺ π΅ = π π΄ + ?π(π΅)
Not Mutually Exclusive
π¨
π π΄ βͺ π΅ = π π΄ + π π΅? β π π΄ β© π΅
π©
Example
π΄ and π΅ are two events such that π π΄ = 0.6, π π΅ = 0.7 and π π΄ βͺ π΅ = 0.9.
Find:
π π΄ β© π΅ = 0.4?
π π΄β² = 0.4?
β²
π π΄ βͺ π΅ = 0.8
?
π π΄β² β© π΅ = 0.3
?
Bro Tip: You could use a
Venn Diagram here.
Check your understanding
The events πΈ and πΉ are such that
π πΈ = 0.28 π πΈ βͺ πΉ = 0.76
Find
a) π πΈ β© πΉ = 0.17
?
b) π πΉ = 0.65
?
c) π
πΊ
πΈβ²
πΉβ²
π¬
=
π πΈ β² β©πΉβ²
π πΉβ²
0.24
0.35
=?
=
π πΈ β© πΉ β² = 0.11
24
35
π
Click to0.11
reveal0.17
Venn0.48
Diagram
0.24
Bro Tip: Venn Diagrams
can typically be used when
you have intersections
involving βnotβs.
Exercises
Page 86 Exercise 5C
Q1, 3, 5
Conditional Probability
Think about how we formed a probability tree at GCSE:
P π΅|π΄
?
π π΄
π΅
π π΄β©π΅
= π π΄ ×?π π΅ π΄
π΄
π΅β²
π΅
π΄β²
π΅β²
Alternatively:
π π΄β©π΅
?
π π΅π΄ =
π π΄
Bro Tip: Youβre dividing
by the event youβre
conditioning on.
Quickfire Examples
Given that P(A) = 0.5 and π π΄ β© π΅ = 0.3, what is P(B | A)?
π· π© π¨? =
π· π¨β©π©
π. π
=
= π. π
π· π¨
π. π
Given that P(Y) = 0.6 and π π β© π = 0.4, what is π π β² π ?
P(Xβ | Z) = 1 β P(X | Z)?= 1 β (0.4/0.6) = 0.33
Given that P(A) = 0.5, P(B) = 0.5 and π π΄ β© π΅ = 0.4, what is π π΅ π΄β² ?
(Hint: youβll likely need a Venn Diagram for this!)
π· π© π¨β² = π·(π¨β² β© π©)/π· π¨β²
= 0.1 / 0.5
?
= 0.2
Bro Tip: Note that P(A | Bβ) + P(Aβ | Bβ) = 1
It is NOT in general true that:
P(Aβ | Bβ) = 1 β P(A | B)
Summary so far
If events π¨ and π© are independent.
P π΄ β© π΅ = π π΄ ×? π π΅
P π΄ π΅ = π(π΄) ?
If events π¨ and π© are mutually exclusive:
?
P π΄β©π΅ =0
P π΄ βͺ π΅ = π π΄ +? π π΅
In general:
P π΄π΅ =
π π΄β©π΅
π π΅
?
P π΄ βͺ π΅ = π π΄ + π π΅ ?β π π΄ β© π΅
More difficult Venn Diagrams based on mutual exclusivity
(Page 102) Events π΄, π΅ and πΆ are defined in the sample space π such that π π΄ = 0.4,
π π΅ = 0.2, π π΄ β© πΆ = 0.04 and π π΅ βͺ πΆ = 0.44. The events π΄ and π΅ are mutually
exclusive and π΅ and πΆ are independent.
a) Draw a Venn Diagram to illustrate the relationship between the three events and the
sample space. [Weβll work out the probabilities later]
π
π΄
πΆ
π΅
?
Key Points:
β’ Recall that only
mutual
exclusivity
affects the
Venn Diagram.
β’ You will lose a
mark if you
forget the
outer
rectangle.
More difficult Venn Diagrams based on mutual exclusivity
(Page 102) Events π΄, π΅ and πΆ are defined in the sample space π such that π π΄ = 0.4,
π π΅ = 0.2, π π΄ β© πΆ = 0.04 and π π΅ βͺ πΆ = 0.44. The events π΄ and π΅ are mutually
exclusive and π΅ and πΆ are independent.
b) Find π·(π©|πͺ), π·(πͺ), π· π© β© πͺ , π· π¨β² β© π©β² β© πͺβ² , π· πͺ β© π©β²
π
0.36
?
π π΅ πΆ = 0.2?
π΅
πΆ
π΄
π πΆ = 0.3
?
0.04
?
Bro Tip: Use the last sentence
about mutual
exclusivity/independence to
immediately write out some extra
information, e.g.
π π΅ β© πΆ = 0.2π(πΆ)
0.2
?
0.06
?
π π΄β² β© π΅β² β© πΆ β² = 0.2?
0.14
?
π πΆ β© π΅β² = 0.24
?
June 2013
Answer to (d):
11
=
20
?
=
3
=
8
?
99
100
?
?
=
1
4
?
Exercises
Provided sheet of past paper questions!
Exercises (on worksheet)
b
P(A u B) = P(A) + P(B) β P(A
? n B) = 0.67
P(Aβ | Bβ) = P(Aβ n Bβ) / P(Bβ) = 0.33 / 0.55 = 0.6
(We can see that P(Aβ n Bβ) = 1 β P(A u B) ?
by a quick sketch of a Venn Diagram)
c
P(B n C) = P(B)P(C) = 0.09 (we can directly?multiply because theyβre independent)
a
0.22
d
0.22
A
0.13
0.09
?
0.23
B
e
0.11
C
S
Using a Venn Diagram, we can see
that:
?Bβ) + P(Aβ n Bβ n Cβ)
P([B u C]β) = P(A n
= 0.22 + 0.22 = 0.44
Exercises (on worksheet)
a
b
c
d
e
B and W, or T and W. Because
the circles donβt overlap/the
events canβt happen at the
same time.
?
P(B n T) = 5/25 = 1/5
P(B)P(T) = 9/25 x 8/25 = 72/625
These are not the same so not
independent.
?
?
P(B n T) = 5/25 ?
P(W) = 7/25
P(T | B) = 5 / 9 (either using the
Venn Diagram directly, or by
using P(T n B) / P(B)
?
Probability Trees
Trees are useful when you have later events conditioned on earlier ones, or in general when
you have lots of conditional probabilities.
Example: You have two bags, the first with 5 red balls and 5 blue balls, and the second with 3
red balls and 6 blue balls. You first pick a ball from the first bag, and place it in the second. You
then pick a ball from the second bag. Complete the tree diagram.
Hence find the probability that:
1st pick
?12
1
2?
2nd pick
4
?
10
π
ππ
π
ππ
a) You pick a red ball on your second
pick.
π π
2 = π π
1 β© π
2 + π π΅1 β© π
2
1 3
7
= +
=
5 20 20
?
6
?
10
π΅ππ’π
3
?
10
π
ππ
π΅ππ’π
7
?
10
π΅ππ’π
b) Given that your second pick was
red, the first pick was also red.
π π
1 β© π
2
π π
1 π
2 =
π π
2
=
1
5
7
20
=
4
7
?
Probability Trees
Key Point: When you need to find a probability using a tree, consider all possible paths in
which that event is satisfied, and add the probabilities together.
π΅
πΆ
πΆβ²
π΄
πΆ
π΅β²
πΆβ²
π΅
π΄β©π΅β©πΆ
π΄ β© π΅β² β© πΆ
π΄β² β© π΅ β© πΆ
π΄β² β© π΅β² β© πΆ
π π΅ β© πΆβ²
= π π΄ β© π΅ β© πΆβ²
+ π π΄β² β© π΅ β© πΆ β²
?
?
πΆ
πΆβ²
π΄β²
π πΆ
=π
+π
+π
+π
πΆ
π΅β²
πΆβ²
π π΅
?
= π π΄ β© π΅ + π π΄β² β© π΅
(Notice that we can
completely ignore C here)
π π΄β² β© πΆ
= π π΄β² β© π΅ β© πΆ
+ π π΄β² β© π΅β² β© πΆ
?
Check your understanding
Of 120 competitors in a golf tournament, 68 reached the green with their tee shot on
the first hole. Of these, 46 completed the hole in 3 shots or less. In total, 49 players
took more than 3 shots on the first hole.
68
120
46
68
Find the probability that a player
chosen at random:
πΆ
π
22
68
πΆβ²
25
Click to reveal Tree Diagram
52
120
52
πΆ
π
β²
27
52
πΆβ²
Iβve used π
to represent the event βreached the
green with tee shot on first holeβ and πΆ to mean
βcompleted shot in 3 shots or lessβ.
a) Reached the green with his tee
shot and took more than 3 shots
in total.
P R β© πΆβ² =
68 22
22
×
=
120 68 120
?
b) Missed the green on his tee shot
and took at most 3 shots.
P π
β² β© πΆ =
52 27
27
×
=
120 52 120
?
c) Took 3 shots or less in total, given
that he missed the green with his
tee shot.
27
β²
π
π
β©
πΆ
120 = 27
π πΆ π
β² =
=
52
π π
β²
52
120
?
Exercises (on worksheet)
?23
5
12
?
7
12
?
?13
?12
?12
b
P(H) = (5/12 x 2/3) +
(7/12 x ½) =?41/72
c
P(R|H) = P(R n H) / P(H)
= (5/18) /?(41/72)
= 20/41
d
P(RR or BB) = (5/12)2 +
?
(7/12)2 = 37/72
Classic Conundrum
I have two children. One of them is a boy. What is the probability
the other is a boy?
1
π΄ππ π€ππ = ?
3
METHOD 1
The βrestricted sample spaceβ method
BB
BG
GB
GG
Thereβs four possibilities for the sex of the two
? only 3 match the description.
children, but
In 1 out of the 3 possibilities
METHOD 2
Using conditional probability
π ππ‘βππ ππ πππ¦ πππ ππ π πππ¦ =
=
1/4 1
=
3/4 3
π πππ ππ π πππ¦ π΄ππ· ππ‘βππ ππ π πππ¦
? π πππ ππ π πππ¦