Lecture 2 - CSE38900 - Rev1
Lecture 2 - CSE38900 - Rev1
Lecture 2
Ir CL KWAN
Department of Civil and Environmental Engineering
The Hong Kong Polytechnic University
Probability
Definition
Random experiment: An experiment is a process that results
in an outcome that cannot be predicted
in advance with certainty
Experiment: Flip a coin
Outcomes: Heads or tails
4
Combining Events
Sample space S S
5
The complement of an event A, denoted Ac or A’, is the
set of outcomes that do not belong to A.
A AC A B
S S
6
Probabilities
Definition:
Each event in the sample space has a probability
of occurring. Intuitively, the probability is a
quantitative measure of how likely the event is to
occur.
7
Axioms of Probability
8
Mutually exclusive events
Events A and B are mutually exclusive if it is impossible for both
of them to occur.
P( A ∪ B)= P( A) + P( B)
A B P( A and B ) = 0
9
A Few Useful Things
For any event A,
P(AC) = 1 – P(A).
Let φ denote the empty set. Then
P(φ ) = 0.
If A is an event containing outcomes O1,…,On ,
that is, if A={O1,…,On} , then
P(A)=P(O1)+…+P(On)
A B
S A + B -
P ( A ∪ B )= P ( A) + P( B) − P( A ∩ B)
11
Example 1
In a process that manufactures aluminum cans, the
probability that a can has a flaw on its side is 0.02,
the probability that a can has a flaw on the top is
0.03, and the probability that a can has a flaw on both
the side and the top is 0.01.
P ( A ∪ B )= P ( A) + P( B) − P( A ∩ B)
A B
P( A and B )
P(A B ) = B
P (B )
A B
14
Example 1 (cont.)
In a process that manufactures aluminum cans, the
probability that a can has a flaw on its side is 0.02,
the probability that a can has a flaw on the top is
0.03, and the probability that a can has a flaw on both
the side and the top is 0.01.
P ( A B ) = P ( A) or P (B A) = P (B )
P (B A) = 2 9
But if A already happened, the
probability of B happening given A is:
20
Summary
Complement rule
( )
P AC = 1 − P ( A )
A AC
Addition rule
P( A or B ) = P( A) + P(B ) − P( A and B ) A B
Multiplication rule
P ( A and B ) A B
P (A B ) =
P (B )
21
The End
of the Session
22