SST1102 Lecture3
SST1102 Lecture3
SST1102 Lecture3
K. Mutangi
Lecture 3: Probability
Example
Consider an experiment of ipping a coin three times. What is the
sample space? Which sample outcomes make up the event A:
majority of coins show heads?
Solution:
S = {HHH ; HHT ; HTH ; THH ; HTT ; THT ; TTH ; TTT } is the
sample space. EventA = {HHH ; HHT ; HTH ; THH }
Example
If P (A) = 13 , P (B ) = 21 and P (A ∪ B ) = 34 .
Find P (A ∩ B ) and P (A0 ∪ B 0 )
Example
A die is loaded in such a way that the probability of any particular
face's showing is directly proportional to the number on the face.
What is the probability that an even number appears?
∀s ∈S i =1 i =1
⇒ k + 2k + 3k + 4k + 5k + 6k = 21k = 1 since P [S ] = 1.
Solving for k gives k = 21 1
and even numbers are: 2, 4 and 6.
P [A] = P [2] + P [4] + P [6] = 1221
Denition
Let A and B be any two events dened on S such that P (B ) > 0.
The conditional probability of A, assuming that B has already
occurred, is written P (A|B ) and is given by P (A|B ) = PP(A(B∩B) )
Example
In a group of 100 sports car buyers, 40 bought alarm systems, 30
purchased bucket seats and 20 purchased an alarm system and a
bucket seat. If a car buyer chosen at random bought an alarm
system, what is the probability they also bought bucket seats.
Example
A bag contains red and blue marbles. Two marbles are drawn
without replacement. The probability of selecting a red marble and
then a blue marble is 0.28. The probability of selecting a red
marble on the rst draw is 0.5. what is the probability of selecting
a blue marble on the second draw given that the rst marble drawn
was red?
P [A ∩ B ] = P [A|B ]P [B ]
Lets suppose we have several events B1 , B2 , . . . , Bk the
multiplication rule applies to each one of them
P [A ∩ B1 ] = P [A|B1 ]P [B1 ]
P [A ∩ B2 ] = P [A|B2 ]P [B2 ]
.. ..
. .
P [A ∩ B k ] = P [A|Bk ]P [Bk ]
B1 B2 B3 B4 B5 B6
A = (A ∩ B1 ) ∪ (A ∩ B2 ) ∪ . . . ∪ (A ∩ Bk )
Since the pieces are disjoint, we have
P (A) = P (A ∩ B1 )+ P (A ∩ B2 )+. . .+ P (A ∩ Bk −1 )+ P (A ∩ Bk )
Applying the multiplication rule gives the following law
Example
Suppose we have two hats: one has 4 red balls and 6 green balls,
the other has 6 red and 4 green. We toss a fair coin, if heads, pick
a random ball from the rst hat, if tails from the second. What is
the probability of getting a red ball?
P (R ) = P (R |H )P (H ) + P (R |T )P (T ) = 104 12 + 106 12 = 12
The total probability of drawing a red ball is a weighted
average of the two conditional probabilities, where the weights
are the probabilities of each condition occuring.
P (A|Bj )P (Bj )
P (Bj |A) =
P (A|B1 )P (B1 ) + P (A|B2 )P (B2 ) + . . . + P (A|Bk )P (Bk )
K. Mutangi SST1102: Biostatistics
Baye's Law: Example
Example
Suppose that a new screening test is proposed for the detection of
fracture. The prevalence of fracture in the general population is
known to be 10%. The test has been investigated in fracture
subjects and was found to give positive result in 70% of such cases
(sensitivity). When given to subjects without fracture, the test
yielded a positive result of 20%. What is the proportion of subjects
with positive test who when followed up will actually be found to
have fracture?
P (S |D )P (D )
P (D |S ) =
P (S |D )P (D ) + P (S |ND )P (ND )
0.1 × 0.7
=
0.1 × 0.7 + 0.9 × 0.2
= 0.28