PS02
PS02
Sample Spaces
Chapter 2: Probability
Probability
LEARNING OBJECTIVES
Addition Rules
Conditional Pro.
1. Sample Spaces and Events (KG Mẫu và Biến cố)
2. Interpretations of Probability (Cách tiếp cận xác suất)
Multi. Rules
3. Addition Rules (Quy tắc cọng)
Total Pro. Rule
4. Conditional Probability (Xác suất có đk)
Independence
5. Multiplication and Total Probability Rules (Quy tắc
Bayes’Theorem
nhân và CT xác suất toàn phần)
Summary 6. Independence (Biến độc lập)
13/02/25
7. Bayes’ Theorem
Department of Mathematics 1/38
Sample spaces and events
Sample Spaces
Sample Spaces
Probability
Definition
Definition Random
Randomexperiment
experiment
Addition Rules
•• AnAnexperiment
experimentthat thatcan
canresult
resultin
indifferent
differentoutcomes,
outcomes,
Conditional Pro. even
eventhough
thoughititisisrepeated
repeatedininthe
thesame
samemanner
mannerevery
every
time,
time,isiscalled
calledaarandom
randomexperiment.
experiment.
Multi. Rules
•• The
Theset
setof
ofall
allpossible
possibleoutcomes
outcomesof ofaarandom
random
Total Pro. Rule experiment
experimentisiscalled
calledthe
thesample
samplespace
spaceofofthe
the
experiment.
experiment.The
Thesample
samplespace
spaceisisdenoted
denotedasasS.S.
Independence
•• AnAnevent
eventisisaasubset
subsetof
ofthe
thesample
samplespace
spaceof
ofaarandom
random
Bayes’Theorem
experiment.
experiment.
Summary
Probability
Addition Rules
Example
Conditional Pro.
Random experiment: Roll a die
Multi. Rules
Sample space: S ={1, 2, 3, 4, 5, 6}
Total Pro. Rule Event: E1 = {Die is even}={2, 4, 6}
Independence E2 = {Die is odd}={1, 3, 5}
Bayes’Theorem
Summary
Summary
Example
Probability
A probability experiment consists of tossing a
Addition Rules
coin and then rolling a six-sided die. Describe the
Conditional Pro. sample space.
Multi. Rules Tree diagram:
Total Pro. Rule
Independence
Bayes’Theorem H1 H2 H3 H4 H5 H6 T1 T2 T3 T4 T5 T6
Multi. Rules
Independence
Bayes’Theorem
Summary
Addition Rules
Conditional Pro.
Multi. Rules
Independence
Bayes’Theorem
Summary
Addition Rules A (B C) = (A B) C
Conditional Pro.
A (B C) = (A B) C
Multi. Rules
A (B C) = (A B) (A C)
(A B)’ = A’ B’
Total Pro. Rule
(A B)’ = A’ B’
Independence
A = (A B) (A B’)
Bayes’Theorem
Summary
Summary
Conditional Pro.
Taking Stats Not Taking Stats Total
Multi. Rules Male 84 145 229
Female 76 134 210
Total Pro. Rule
Total 160 279 439
Independence
Addition Rules
Rules
1. If A and B are mutually exclusive events,
Addition
P(A B) = P(A) + P(B)
Conditional Pro.
2. A collection of events, E1, E2, …, Ek is said to be
Multi. Rules
mutually exclusive (xung khắc) if for all pairs,
Total Pro. Rule
Ei ∩ Ej = Ø
Independence
For a collection of mutually exclusive events,
Bayes’Theorem
P(E1 E2 … Ek) = P(E1) + P(E2) +…+ P(Ek)
Summary
Addition Rules
Rules
1. Two events: A and B are any events,
Addition
P(A B) = P(A) + P(B) – P(A ∩ B)
Conditional Pro.
Multi. Rules
2. Three events:
Total Pro. Rule
Bayes’Theorem
- P(B ∩ C) - P(C ∩ A) + P(A ∩ B ∩ C)
Summary
Bayes’Theorem
P(Male or Stat) = P(M) + P(S) – P(M and S)
Summary
= 229/439 + 160/439 – 84/439 = 305/439
13/02/25 Department of Mathematics 17/38
Conditional Probability
Sample Spaces
Conditional Probability
Probability
To introduce conditional probability, consider an
Addition Rules
example involving manufactured parts.
Conditional Pro.
Conditional Pro.
Let D denote the event that a part is defective and let F
Multi. Rules
denote the event that a part has a surface flaw.
Total Pro. Rule
Addition Rules
Conditional Pro.
Conditional Pro.
Multi. Rules
Independence
Bayes’Theorem
Summary
Addition Rules
Conditional Pro.
Conditional Pro.
Multi. Rules
Independence
Bayes’Theorem
Summary
Bayes’Theorem
Summary
Addition Rules
Conditional Pro.
Conditional Pro. Note that in this example all four of the following
probabilities are different:
Multi. Rules
Independence
Bayes’Theorem
Here, P(D) and P(D|F) are probabilities of the same
event, but they are computed under two different states
Summary of knowledge. Similarly, P(F) and P(F|D) are computed
under two different states of knowledge.
13/02/25 Department of Mathematics 22/38
Conditional Probability
Sample Spaces
Example
Probability Of the cars on a used car lot, 70% have air conditioning
Addition Rules
(AC) and 40% have a CD player (CD). 20% of the cars
have both.
Conditional Pro.
Conditional Pro.
What is the probability that a car has a CD player, given
Multi. Rules that it has AC ?
Total Pro. Rule
CD No CD Total
P(CD and AC)
Independence P(CD | AC)
AC 0.2 0.5 0.7 P(AC)
Bayes’Theorem No AC 0.2 0.1 0.3 0.2
.2857
0.7
Summary Total 0.4 0.6 1.0
Conditional Pro.
Example
The probability that an automobile battery subject to high
Multi. Rules
Multi. Rules engine compartment temperature suffers low charging current
is 0.7. The probability that a battery is subject to high engine
Total Pro. Rule compartment temperature is 0.05.
Independence The probability that a battery is subject to low charging current
and high engine compartment temperature is
Bayes’Theorem
Summary
C={a battery suffers T ={a battery is subject to high
low charging current} engine compartment temperature}
13/02/25 Department of Mathematics 24/38
Total Probability Rule
Sample Spaces
Partition of an event
Probability
Total Pro.
Total Pro. Rule
Rule
Independence
Figure 2-16
Partitioning an
Bayes’Theorem event into several
mutually
Summary exclusive subsets.
Conditional Pro.
Total Probability Rule: multiple events
Multi. Rules
Total Pro.
Pro. Rule
Rule
E1 E2 … Ek =S
Total
Independence
Bayes’Theorem
Summary
Addition Rules
Conditional Pro.
Multi. Rules
Total Pro.
Total Pro. Rule
Rule
Independence
Bayes’Theorem
Summary
Conditional Pro.
P(Ei1 Ei2 ... Eik ) P(Ei1 )P(Ei2 ) ... P(Eik )
Multi. Rules
Independence
In special case:
Bayes’Theorem
Bayes’Theorem P ( B | A) P ( A)
P( A | B) for P ( B ) 0
Summary P( B)
Independence Let A denote the event that a car fails the test and B the
event that it emits excessive amounts of pollutants:
Bayes’Theorem
Bayes’Theorem
P(B) = 0.25, P(A|B) = 0.99 and P(A|B’) = 0.17.
Summary
We have to find P(B|A)?
P( A | B) P( B)
Probability P( B | A)
P( A)
Addition Rules
where
Conditional Pro.
P(A) = P(AB) + P(AB’) = P(A|B)P(B) + P(A|B’)P(B’)
Multi. Rules
= 0.375
Total Pro. Rule
Substitution into the formula for P(B|A) yields
Independence
P(B|A) = 0.66
Bayes’Theorem
Bayes’Theorem
Summary
Conditional Pro.
Multi. Rules
Independence
Bayes’Theorem
Bayes’Theorem
Summary
Probability
Definition
Definition
Addition Rules AArandom
randomvariable
variableisisaafunction
functionthat
thatassigns
assignsaareal
real
number
numbertotoeach
eachoutcome
outcomein inthe
thesample
samplespace
spaceof
ofaa
Conditional Pro.
random
randomexperiment.
experiment.
Multi. Rules
AArandom
randomvariable
variableisisdenoted
denotedbybyananuppercase
uppercaseletter
lettersuch
such
Total Pro. Rule as
asX.
X.After
Afterananexperiment
experimentisisconducted,
conducted,thethemeasured
measured
value
valueofofthe
therandom
randomvariable
variableisisdenoted
denotedby
byaalowercase
lowercase
Independence letter
lettersuch
suchas
asxx 70
70milliamperes.
milliamperes.
Bayes’Theorem
Bayes’Theorem
Summary
Probability
Definition
Definition
Addition Rules
AAdiscrete
discreterandom
randomvariable
variableisisaarandom
randomvariable
variablewith
withaa
Conditional Pro. finite
finite(or
(orcountably
countablyinfinite)
infinite)range.
range.
Multi. Rules AAcontinuous
continuousrandom
randomvariable
variableisisaarandom
randomvariable
variablewith
with
an
aninterval
interval(either
(eitherfinite
finiteor
orinfinite)
infinite)of
ofreal
realnumbers
numbersfor
for
Total Pro. Rule
its
itsrange.
range.
Independence
Bayes’Theorem
Bayes’Theorem
Summary