Slide FU - W2
Slide FU - W2
Sample Spaces
Chapter 2: Probability
Probability
LEARNING OBJECTIVES
Addition Rules
Conditional Pro.
1. Sample Spaces and Events
2. Interpretations of Probability
Multi. Rules
3. Addition Rules
Total Pro. Rule
4. Conditional Probability
Independence
5. Multiplication and Total Probability Rules
Bayes’Theorem
6. Independence
Summary
7. Bayes’ Theorem
19/05/2021 Department of Mathematics 1/38
Sample spaces and events
Sample Spaces
Sample Spaces
Probability
Definition Random experiment
Addition Rules
• An experiment that can result in different outcomes,
Conditional Pro. even though it is repeated in the same manner every
time, is called a random experiment.
Multi. Rules
• The set of all possible outcomes of a random
Total Pro. Rule experiment is called the sample space of the
experiment. The sample space is denoted as S.
Independence
• An event is a subset of the sample space of a random
Bayes’Theorem
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
Probability
Equally Likely Outcomes
Probability
Whenever a sample space consists of N possible outcomes that are
Addition Rules equally likely, the probability of each outcome is 1/N.
Conditional Pro.
1. a priori classical probability
Multi. Rules
X number of ways the event can occur
Total Pro. Rule Probability of Occurrence = =
T total number of possible outcomes
Bayes’Theorem
number of favorable outcomes observed
Probability of Occurrence =
total number of outcomes observed
Summary
Summary
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 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
Summary
Bayes’Theorem
P(Male or Stat) = P(M) + P(S) – P(M or S)
Summary
= 229/439 + 160/439 – 84/439 = 305/439
Addition Rules
Conditional Pro.
Conditional Pro.
Multi. Rules
Independence
Bayes’Theorem
Summary
Probability
Addition Rules
Conditional Pro.
Conditional Pro.
Multi. Rules
Independence
Bayes’Theorem
Summary
Total Pro. Rule Special case: all outcomes are equally likely
Independence
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.
19/05/2021 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.
Exam (NCOVID19). Only 1 in 100 adults is
afflicted with Ncovid19 for which a diagnostic test
Multi. Rules
Rules
Multi. has been developed. The test is such that when
Total Pro. Rule an individual actually has the disease, a
positive result will occur 99% of the time.
Independence
If a randomly selected individual is tested. Find the
Bayes’Theorem
probability of that person has disease and positive test.
Summary
A: has disease; B: positive test. Compute P(A ∩ B)
19/05/2021 Department of Mathematics 24/38
Total Probability Rule
Sample Spaces
NCOVID 19
Probability
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}
19/05/2021 Department of Mathematics 26/38
Total Probability Rule
Sample Spaces
Partition of an event
Probability
Total Pro.
Total Pro. Rule
Rule
Total Pro.
Pro. Rule
Rule
E1 ∪ E2 ∪ … Ek =S
Total
Independence
Bayes’Theorem
Summary
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
Definition
Probability
Two events is called independent if any one of the
Addition Rules following equivalent statements is true:
Conditional Pro. (1) P(A|B) = P(A)
Multi. Rules (2) P(A ∩ B) = P(A)P(B)
Total Pro. Rule (3) P(B|A) = P(B)
Independence
Independence
Proposition: If A and B are independent events, then
Bayes’Theorem so are events A and B’, events A’ and B, and events A’
Summary
and B’.
Definition
Probability
The events E1, E2, …, En are independent if and only if
Addition Rules for any subset of these events Ei1 , Ei2 , ... , Eik
Conditional Pro.
P(Ei1 ∩ Ei2 ∩...∩ Eik ) = P(Ei1 )P(Ei2 ) ... P(Eik )
Multi. Rules
Bayes’Theorem
= (1-0.95)2 =0.052
Summary
P(T ∪B) = 1 - 0.052 =0.9975
19/05/2021 Department of Mathematics 38/38
Random Variables
Sample Spaces
Probability
Definition
Addition Rules A random variable is a function that assigns a real
number to each outcome in the sample space of a
Conditional Pro.
random experiment.
Multi. Rules
Independence
Bayes’Theorem
Bayes’Theorem A random variable is denoted by an uppercase letter such
as X. After an experiment is conducted, the measured
Summary
value of the random variable is denoted by a lowercase
letter such as x= 70 milliamperes.
19/05/2021 Department of Mathematics 39/38
Random Variables
Sample Spaces
Probability
Addition Rules
Definition
A discrete random variable is a random variable with a
Conditional Pro. finite (or countably infinite) range.
Multi. Rules A continuous random variable is a random variable with
an interval (either finite or infinite) of real numbers for
Total Pro. Rule
its range.
Independence
Bayes’Theorem
Bayes’Theorem
Summary