Noteschapter 2
Noteschapter 2
CHAPTER 2
Probability
Probability
Probability of Conditional
Bayes' Rule
Event(s) Probability
Prob. of
Independent
Mutually
Event
Exclusive Events
Introduction
Sample space: The set of all possible outcomes of a statistical experiment.
Symbol – S.
Elements: Member of sample space.
Number of elements – n(S).
Event: Subset of sample space.
Complement: Subset of all elements that are not in event A.
Symbol – A’.
S
A S = A ⋃ A’
S
A’
S
2
S
A B A∩B
S
S
A B A ∩ B= ∅
S
S
A B A∪B
S
Probability of an event
𝑛(𝐴) 0 ≤ 𝑃(𝐴) ≤ 1
𝑃(𝐴) =
𝑛(𝑆) 𝑃(𝑆) = 1
𝑃(∅) = 0
Example 1:
A box contain 4 yellow balls and 6 black balls. 2 balls were taken from the box. If
the first ball is returned before taking the second ball. Find:
3
Solution:
𝑛(𝐴) 𝑛(𝐴)
P(yellow) = P(black)=
𝑛(𝑆) 𝑛(𝑆)
4 6
P(Y) = = 10 P(B) = 10
6
10 B BB
6 B
10
4
10 Y BY
4 6
B YB
10 10
Y
4
10
Y YY
64 16
= =
100 25
1 − 𝑃(𝐵𝐵)
6 6
=1−( × )
10 10
36
=1−
100
64 16
= =
100 25
Example 2:
a) the number 5
b) a number that is a multiple of 3
c) a number that is greater than 6
d) a number that is less than 7
Solution:
A fair die is an unbiased die where each of the six numbers is equally likely to turn
up.
S = {1, 2, 3, 4, 5, 6}
1
𝑃(𝐴) =
6
Multiple of 3 = {3, 6}
5
2
𝑃(𝐵) =
6
C ={}
0
𝑃(𝐶) = =0
6
6
𝑃(𝐷) = =1
6
Example 3:
Teddy has a two pairs of black shoes and three pairs of brown shoes. He also has
three pairs of red socks, four pairs of brown socks and six pairs of black socks.
If Teddy chooses a pair of shoes at random and a pair of socks at random, what
is the probability that he chooses shoes and socks of the same color?
Solution:
Let H – black shoes (2) R – red socks (3) K – black socks (6)
2 3 6
𝑃(𝐻) = 𝑃(𝑅) = 𝑃(𝐾) =
5 13 13
3 4
𝑃(𝐵) = 𝑃(𝐶) =
5 13
6
R HR
3
13 4
2 13 C HC
5 H
6
13 HK
K
3
3 R BR
13 4
5
B
13
C BC
6
13
K BK
= 𝑃(𝐻𝐾) + 𝑃(𝐵𝐶)
2 6 3 4
=( × )+( × )
5 13 5 13
12 12 24
= + =
65 65 65
Exercise 1:
1) Calculate the probability as of example 1, where the first ball was not
returned before taking the second ball.
12 8 2
Answer: i) 90 ii) 15 iii) 3
2) A bag contains 3 red chips, 5 blue chips and 2 green chips. 2 chips were
taken
a. With returning of the first chip
b. Without returning the first chip
Probability of events
Example 4:
Solution:
𝑛(𝐻 ∪ 𝐽) 5
𝑃(𝐻 ∪ 𝐽) = =
𝑛(𝑠) 7
Example 5:
Shahrul is about to propose to two girls to be his girlfriend. The probability that Nana
Muammar Ema
Shahrul proposal is 2⁄5 and the probability that Mummy
accept Muammar Molly accept the proposal
is 8⁄9. If the probability that both girls accept Muammar
Shahrul’s proposal is 6⁄7, what is the
probability that Muammar
Shahrul’s proposal will be
Solution:
Let E – Ema
Nana accept the proposal
M – Molly
Mummy accept the proposal
2
𝑃(𝐸) =
5
8
𝑃(𝑀) =
9
a) 𝑃(𝐸 ∪ 𝑀)
= 𝑃(𝐸) + 𝑃(𝑀) − 𝑃(𝐸 ∩ 𝑀)
2 8 6
= + −
5 9 7
136
=
315
b) 𝑃(𝐸 ∪ 𝑀)′
136 179
=1− =
315 315
Example 6:
a) 𝑃(𝐵)
b) 𝑃(𝑀)
c) 𝑃(𝐶)
9
Solution:
S
M C
12
7
5 10
15 25
18
B 8
a) 𝑃(𝐵)
68
=
100
b) 𝑃(𝑀)
42
=
100
c) 𝑃(𝐶)
54
=
100
d) 𝑃(all three subjects)
10
=
100
e) 𝑃(does not take any of the subject)
8
=
100
f) 𝑃(does not take Chemistry but takes both Biology and Mathematics)
15
=
100
𝑃(𝐴 ∪ 𝐵) = 0
𝑃(𝐴 ∪ 𝐵) = 𝑃(𝐴) + 𝑃(𝐵)
10
Example 7:
Five friends, Amir, Baljit, Candy, Desvi, and Ella apply for the post in UTHM as
lecturer. However only one will get the job. Find the probability that
Solution:
a) Each person has an equal chance of getting the job and the selection is
mutually exclusive because only one will be chosen.
𝑆 = {Amir, Baljit, Candy, Desvi, and Ella} and 𝑛(𝑆) = 5. Thus, 𝑃(Candy) = 1⁄5.
b) 𝑃(Desvi or Ella)
= P(Desvi) + P(Ella)
1 1 2
= + =
5 5 5
Example 8:
Mr. Hadid sends his three boys Jalal, Haziq and Khal to karate championship. The
probability that Jalal, Haziq and Khal to win are 0.15, 0.2 and 0.25, respectively.
Find the probability that
Solution:
𝑃(𝐽 ∪ 𝐻 ∪ 𝐾)
= 𝑃(𝐽) + 𝑃(𝐻) + 𝑃(𝐾)
= 0.15 + 0.2 + 0.25 = 0.6
11
Conditional Probability
The probability of event B given A: 𝑃(𝐵|𝐴)
𝑃(𝐵 ∩ 𝐴) 𝑃(𝐴) ≠ 0
𝑃(𝐵|𝐴) =
𝑃(𝐴)
𝑃(𝐵) ≠ 0
𝑃(𝐵 ∩ 𝐴)
(𝐴|𝐵) =
𝑃(𝐵)
a)
Multiplicative rule
𝑃(𝐵 ∩ 𝐴) = 𝑃(𝐵|𝐴)𝑃(𝐴)
Example 9:
The probability that a regularly scheduled bus depart on time is 𝑃(𝐷) = 0.93, it
arrives on time is 𝑃(𝐴) = 0.9 and it departs and arrives on time is 𝑃(𝐷 ∩ 𝐴) = 0.84.
Find the probability that a bus
Solution:
a) 𝑃(𝐴|𝐷)
𝐷∩𝐴
=
𝑃(𝐷)
0.84
= = 0.9032
0.93
12
b) 𝑃(𝐷|𝐴)
𝐷∩𝐴
=
𝑃(𝐴)
0.84
= = 0.9333
0.9
Example 10:
a) the person is a male, given that the person has a secondary education
b) the person does not have a college degree given that the person is a
female.
Solution:
95⁄200 95
= =
112⁄200 112
Exercise 2:
Multiplicative rule:
Example 11:
marbles
In a box, there are 9 green marble and three white marbles. Two chips randomly
selected from the box. Find the probability that we get a green marble on the first
draw and a white one on the second draw if
Solution:
14
a) 𝑃(𝐺 ∩ 𝑊)
= 𝑃(𝐺)𝑃(𝑊|𝐺)
9 3
= ×
12 11
9
=
44
b) 𝑃(𝐺 ∩ 𝑊)
= 𝑃(𝐺)𝑃(𝑊|𝐺)
9 3
= ×
12 12
3
=
16
Example 12:
Three balls are drawn out successively from a box containing 7 red balls, 5 white
balls and 6 blue balls. Find the probability that they are drawn in order red, white
and blue if each ball is
a) Replaced
b) Not replaced.
Solution:
a) 𝑃(𝑅 ∩ 𝑊 ∩ 𝐵)
= 𝑃 (𝑅)𝑃(𝑊|𝑅)𝑃(𝐵|𝑅 ∩ 𝑊)
7 5 6
= × ×
18 18 18
35
=
972
b) (𝑅 ∩ 𝑊 ∩ 𝐵)
= 𝑃 (𝑅)𝑃(𝑊|𝑅)𝑃(𝐵|𝑅 ∩ 𝑊)
7 5 6
= × ×
18 17 16
15
35
=
816
Example 13:
The probability that a married man cheated on his wife is 0.6 and the probability
that a married woman cheated is 0.4. The probability that a man cheated given
that his wife does is 0.7. Find the probability that:
Solution:
a) 𝑃(𝑀 ∩ 𝑊)
= 𝑃(𝑊)𝑃(𝑀|𝑊)
= 0.4 × 0.7
= 0.28
b) 𝑃(𝑊|𝑀)
𝑃(𝑊 ∩ 𝑀)
=
𝑃(𝑀)
0.28
=
0.6
= 0.4667
c) 𝑃(𝑀 ∪ 𝑊)
= 𝑃(𝑀) + 𝑃(𝑊) − 𝑃(𝑀 ∩ 𝑊)
= 0.6 + 0.4 − 0.28
= 0.72