1 Probability
1 Probability
1 Probability
outcomes.
4) An Event is any subset of 𝑆. Note that ∅ is called the impossible event and
5) Let 𝐴 and 𝐵 be two events. 𝐴 and 𝐵 are Mutually Exclusive if and only if
𝐴 ∩ 𝐵 = ∅.
1/16
2/16
1) 𝑝(𝑆) = 1
2) 0 ≤ 𝑝(𝐴) ≤ 1
4) 𝑝(∅) = 0
5) 𝑝(𝐴̅) = 1 − 𝑝(𝐴)
𝑝(𝐴̅) = 𝑝(not 𝐴)
2/16
3/16
Example 1.1
Mercury/Lead Example:
Seawater is analyzed for 2 heavy metals: Lead (𝐿) and Mercury (𝑀). It has
been found that 𝑝(𝐿 ∪ 𝑀) = 0.38, 𝑝(𝐿) = 0.32 and 𝑝(𝑀) = 0.16.
̅ ) = 1 − 0.16 = 0.84
𝑝(𝑀
̅ ) = 𝑝(𝐿) + 𝑝(𝑀
𝑝(𝐿 ∪ 𝑀 ̅ ) − 𝑝(𝐿 ∩ 𝑀
̅ ) = 0.94
̅̅̅̅̅̅̅̅
𝑝(𝐿 ∩ 𝑀) = 1 − 𝑝(𝐿 ∩ 𝑀) = 1 − 0.10 = 0.9
3/16
4/16
Example 1.2
Note that we add the probabilities because the outcomes “1”, “3” and “5” are
mutually exclusive.
Example 1.3
H (3 heads)
H
T (2 heads)
H
H (2 heads)
T
T (1 heads)
H (2 heads)
H
T (1 heads)
T
H (1 heads)
T
T (0 heads)
1
All outcomes in the end are equally likely, i.e. they have a probability of .
8
3
There are 3 outcomes involving 2 heads. So 𝑝(2 𝐻𝑒𝑎𝑑𝑠) =
8
4/16
5/16
Example 1.4
(1964) JRSS, A, 127, 1-33 and Hand, D.J. ‘Small data sets’ p97)
iii) Estimate the probability that a pregnancy lasts less than 25 weeks.
= 0.0066 = 0.66%
weeks.
5/16
6/16
= 0.9323 = 93.23%
Example 1.5
The hair and eye colour were recorded for a sample of 22361 children in
JASA, 76, 320-334 and Hand, D.J. ‘Small data sets’ p146)
HAIR
Dark (𝐷) Not Dark D
2579 399 2978
Blue (𝐵)
(0.115) (0.018) (0.133)
EYES
𝑝(𝐵) = 0.133
𝑝(𝐷) = 0.739
𝑝(𝐵 ∩ 𝐷) = 0.115
Find
𝑝(𝐵̅ ∪ 𝐷
̅ ) = 𝑝(𝐵
̅̅̅̅̅̅̅̅
∩ 𝐷 ) = 1 − 𝑝(𝐵 ∩ 𝐷) = 0.885
6/16
7/16
𝑝(𝐴 ∩ 𝐵)
𝑝(𝐴|𝐵) =
𝑝(𝐵)
Important results:
1) 𝑝(𝐴|𝐴) = 1
2) 𝑝(𝐴̅|𝐵) = 1 − 𝑝(𝐴|𝐵)
3) 𝑝(𝐴 ∪ 𝐵|𝐶) = 𝑝(𝐴|𝐶) + 𝑝(𝐵|𝐶) − 𝑝(𝐴 ∩ 𝐵|𝐶)
4) 𝑝(𝐴 − 𝐵|𝐶) = 𝑝(𝐴|𝐶) − 𝑝(𝐴 ∩ 𝐵|𝐶)
Example 1.6
What is the probability that lead is present in a sample, given that the
𝑝(𝐿 ∩ 𝑀) 0.10
𝑝(𝐿|𝑀) = = = 0.625
𝑝(𝑀) 0.16
What is the probability that mercury is present in a sample, given that the
𝑝(𝐿 ∩ 𝑀) 0.10
𝑝(𝑀|𝐿) = = = 0.3125
𝑝(𝐿) 0.32
7/16
8/16
Find
̅ ) 0.22
𝑝(𝐿 ∩ 𝑀
̅) =
𝑝(𝐿|𝑀 = = 0.263
̅)
𝑝(𝑀 0.84
𝑝(𝐿̅ ∩ 𝑀) 0.06
𝑝(𝐿̅|𝑀) = = = 0.375
𝑝(𝑀) 0.16
𝑝(𝐴∩𝐵) 𝑝(𝐴)∙𝑝(𝐵)
Implication: 𝑝(𝐴|𝐵) = = = 𝑝(𝐴)
𝑝(𝐵) 𝑝(𝐵)
𝑝(𝐵|𝐴)𝑝(𝐴)
𝑝(𝐴|𝐵) =
𝑝(𝐵|𝐴)𝑝(𝐴) + 𝑝(𝐵|𝐴̅)𝑝(𝐴̅)
8/16
9/16
Example 1.7
1 1 1
= 𝑝(𝑔𝑒𝑡 𝑎 5 𝑜𝑛 1𝑠𝑡 𝑟𝑜𝑙𝑙) ∙ 𝑝(𝑔𝑒𝑡 𝑎 6 𝑜𝑛 2𝑛𝑑 𝑟𝑜𝑙𝑙) = × =
6 6 36
Example 1.8
13
𝑝(𝐴) =
52
24
𝑝(𝐵) =
52
6
𝑝(𝐴 ∩ 𝐵) =
52
13 24 6
𝑝(𝐴) × 𝑝(𝐵) = × =
52 52 52
independent.
9/16
10/16
39 24 18
𝑝(𝐴̅)𝑝(𝐵) = × =
52 52 52
18
𝑝(𝐴̅ ∩ 𝐵) = 𝑝(𝐵 − 𝐴) = 𝑝(𝐵) − 𝑝(𝐴 ∩ 𝐵) =
52
Example 1.9
c) Given that a student wears a skirt what is the probability that the
student is a girl.
Solution:
10/16
11/16
a)
𝑝(𝑇|𝑀̅ )𝑝(𝑀
̅) 0.3 × 0.4
̅ |𝑇) =
𝑝(𝑀 = = 0.167
̅ )𝑝(𝑀
𝑝(𝑇|𝑀 ̅ ) + 𝑝(𝑇|𝑀)𝑝(𝑀) 0.3 × 0.4 + 1 × 0.6
b)
or
𝑝(𝑇|𝑀)𝑝(𝑀) 1 × 0.6
𝑝(𝑀|𝑇) = = = 0.833
̅ )𝑝(𝑀
𝑝(𝑇|𝑀)𝑝(𝑀) + 𝑝(𝑇|𝑀 ̅ ) 1 × 0.6 + 0.3 × 0.4
c)
11/16
12/16
Example 1.10
Of all highway accidents we know that 30% involve Alcohol (𝐴) by at least
one of the drivers. Another accident factor is excessive speed by one of the
𝑝(𝐴 ∩ 𝐸)
𝑝(𝐴|𝐸) =
𝑝(𝐸)
12/16
13/16
320 × 0.72 = 230.4 ≈ 230 expected accidents will involve alcohol given
𝑝(𝐴 ∩ 𝐸̅ )
𝑝(𝐴|𝐸̅ ) =
𝑝(𝐸̅ )
c) Find 𝑝(𝐴 ∩ 𝐸) and 𝑝(𝐸). Are events 𝐴 and 𝐸 independent? Are they
mutually exclusive?
𝑝(𝐴|𝐸)𝑝(𝐸)
𝑝(𝐴 ∩ 𝐸) = { 𝑜𝑟
𝑝(𝐸|𝐴)𝑝(𝐴) = 0.6 × 0.3 = 0.18
Since
13/16
14/16
For independence:
or
ii) 𝑝(𝐸) ∙ 𝑝(𝐴) = 0.25 × 0.3 = 0.7 ≠ 0.18 = 𝑝(𝐴 ∩ 𝐸) ⇒ 𝐴, 𝐸 are not
independent
Example 1.11
probability of a defective DVD given plant A produced the DVD is 0.01, the
probability of a defective DVD given plant B produced the DVD is 0.02, and
the probability of a defective DVD given plant C produced the DVD is 0.05.
14/16
15/16
manufactured by plant A is
𝑝(𝐷|𝐴)𝑝(𝐴)
𝑝(𝐴|𝐷) =
𝑝(𝐷|𝐴)𝑝(𝐴) + 𝑝(𝐷|𝐵)𝑝(𝐵) + 𝑝(𝐷|𝐶)𝑝(𝐶)
. 1 × .45
= = 0.196
. 1 × .45 + .2 × .3 + .05 × .25
b) Given that a defective DVD was found, the probability that it was
manufactured by plant B is
𝑝(𝐷|𝐵)𝑝(𝐵)
𝑝(𝐵|𝐷) =
𝑝(𝐷|𝐴)𝑝(𝐴) + 𝑝(𝐷|𝐵)𝑝(𝐵) + 𝑝(𝐷|𝐶)𝑝(𝐶)
. 2 × .3
= = 0.261
. 1 × .45 + .2 × .3 + .05 × .25
15/16
16/16
manufactured by plant C is
manufactured by plant A?
there are 1500 defective DVD. How many are expected to have been
manufactured at plant C?
expected to be defective?
16/16