AEM Lecture 3
AEM Lecture 3
Mathematics
Instructor: Dr. Madiha Liaqat
Outline
Multiplicative Rule
Independent Events
Dependent Events
Conditional Probability
Bayes’ Theorem
Recap: Additive Rule
Each suit
contains 13
cards: Ace, 2,
3, 4, 5, 6, 7,
8, 9, 10,
Jack, Queen,
King.
The deck of 52 playing cards is broadly classified into into 2 divisions. Red(26
cards) and Black(26 cards). The red cards are further divided into diamonds♦️
(13 cards) and hearts♥️ (13 cards). The black cards are further divided into
clubs ♣️(13 cards) and spades ♠️ (13 cards).
Union
The union of two events A and B, denoted A U B, is the event
containing all the elements that belong to A or B or both.
There are two special cases in Union.
i. A U B can be mutually exclusive.
ii. A U B can not be mutually exclusive.
The given figure diagrammatically depicts A U B both for the
case in which A and B are and are not mutually exclusive.
Union (Examples)
Example Hypertension:
Let events A is defined as A={X<90},
Let events B is defined as B={90<=X<=95}
Where X = diastolic blood pressure(DBP)
Then A U B= {X<95}
Union (Examples)
Example Hypertension:
Let events C is defined as C={X>=90},
Let events D is defined as D={75<=X<=100}
Where X = diastolic blood pressure(DBP)
Then C U D= {X>=75}
Joint Probability and Intersection
(Example 2)
Example 3: Classroom
Look at the events below. Which set of events are not independent?
Rolling a die and getting a 6 and tossing a coin and getting a head.
Choosing a blue ball from a bag containing blue and yellow balls, not
replacing it, and then choosing another blue ball from the same bag.
SOLUTION ? ?
Example 3: probability of three
independent events
Rachel tosses three fair coins. Find the probability that all
three coins land on tails.
SOLUTION ????
Example 4: using a tree diagram
Niamh plays a game of table tennis on Saturday and a game of badminton on
Sunday. The different outcomes are represented on the tree diagram below.
Flipping a coin and landing on tails and picking a king from a deck
of cards.
Picking one card from a deck of cards and then a second card and
getting an ace both times.
Practice
Q2. Zainab has two bags of mixed sweets. She picks one sweet
from each bag. The probability that Zainab picks a lollipop from
the first bag is 1/6 and the probability that she picks a lollipop
from both bags is 1/15. What is the probability that she picks a
lollipop from the second bag?
Solution
Solving this
P(L)=1/15÷1/6= 2/5
Practice
The probability that a man will be alive in 2050 is 3/5, and the
probability that his wife will be alive in 2050 is 2/3 (these are
independent events). Find the probability that:
Suppose a bag has 3 red and 6 green balls. Two balls are drawn
from the bag, one after the other. Let A be the event of drawing a
red ball in the first draw and B be the event of drawing a green
ball in the second draw. If the ball drawn in the first draw is not
replaced back in the bag, then A and B are dependent events
because P(B) is decreased or increased according to the first draw
results as a red or green ball.
Multiplicative Rule
Then
Example:
What is the probability of a card drawn to be diamond, given that
it is red?
Conditional Probability
Example: Four coins are tossed. Given that there are at least
two heads. What is the (conditional) probability of:
i. (exactly) 3 heads?
iii. No tails
Practice
=½÷⅘=⅝
Let,
A: one of the outcomes is always 4
B: sum of the outcomes is 8
Then, A = {(1, 4), (2, 4), (3, 4), (4, 4), (5, 4), (6, 4), (4, 1), (4, 2),
(4, 3), (4, 5), (4, 6)}
B{(4, 4), (5, 3), (3, 5), (6, 2), (2, 6)}
n(A) = 11, n(B) = 5, n(A ∩ B) = 1
P(B|A) = n(A ∩ B)/n(A) = 1/11.
Practice
Let B be the event that the initial repair was bad, J that the
initial repair was made by Janet, T it was made by Tom, G it
was made by Georgia, and V that it was done by Victor.
P (J )P (B | J )
P (J | B ) =
P (J )P (B | J ) + P (T )P (B | T ) + P (G )P (B | G ) + P (V )P (B | V )
Prior Probability:
The initial probability based on the present level of
information
Posterior Probability:
A revised probability based on additional information.
Bayes’ Theorem (simple form)
P (B ) ×P (A B ) = P (A ) ×P (B A )
P (A ) ×P (B A )
Þ P (A B ) =
P (B )
Bayes’ Theorem (Extended Form)
P (Ai )P (B | Ai )
P (Ai | B ) = for i = 1, 2,..., k
k
å P (Ai )P (B | Ai )
i= 1
59
Example
Solution
Solution
Example
Solution
Solution
Example
A cab was involved in a hit and run accident at night. Two cab
companies, the Green and the Blue, operate in the city. The
following facts are known; 85% of the cabs in the city are
Green and 15% are Blue.
A Witness identified the cab as Blue. The court tested the
reliability of the witness under the same circumstances that
existed on the night of the accident and concluded that the
witness correctly identified each one of the two colours 80% of
the time and failed 20% of the time. What is the probability
that the cab involved in the accident was actually Blue?
Why is Bayes’ Theorem so cool?
Thank You!