Professional Documents
Culture Documents
Lecture3 Probability Basics and Rules
Lecture3 Probability Basics and Rules
Engineering Mathematics 4
MA4004
Lecture 3
Probability: Definitions, Set Notation, Complement Rule,
Addition Rule and Multiplication Rule
Kevin Burke
kevin.burke@ul.ie
Kevin Burke University of Limerick, Maths & Stats Dept 1 / 33
Definitions Set Notation Addition Rule Multiplication Rule Independence Vs Mutual Exclusion
Definitions
Event (examples):
“At least one head showing” = {HH, TH, HT }.
“Getting two tails” = {TT }.
“The same result on both coins” = {HH, TT }.
“The coins show different results” = {TH, HT }.
Probability
#(A)
Pr(A) =
#(S)
Probability
Probability must be between zero and one:
The probability value is a measure of how likely the event is, e.g.,
Complement Rule
Pr(Ac ) = 1 − Pr(A) .
Question 1
R Code
Set Notation
If A and B are two events then we have
A C
TH
HH TT
HT
4
A ∪ C = {HH, TH, HT , TT } ⇒ Pr(A ∪ C) = 4 = 1.
A ∩ C = {HH} ⇒ Pr(A ∩ C) = 14 .
B C
TT HH
TH
HT
2
B ∪ C = {HH, TT } ⇒ Pr(B ∪ C) = 4 = 12 .
B ∩ C = {TT } ⇒ Pr(B ∩ C) = 14 .
since Pr(A ∩ B) = 0.
Kevin Burke University of Limerick, Maths & Stats Dept 14 / 33
Definitions Set Notation Addition Rule Multiplication Rule Independence Vs Mutual Exclusion
Recall from earlier that the complement rule allows us to evaluate the
probability of a complementary (i.e., opposite) event.
Pr(Ac ∩ B c ) = 1 − Pr(A ∪ B) .
Conversely, if we have Pr(Ac ∩ B c ) and wish for Pr(A ∪ B), we can use
Pr(A ∪ B) = 1 − Pr(Ac ∩ B c ) .
Of course the ideas on the previous slide hold for more than two
events, i.e.,
and, conversely,
De Morgan’s Law
The results on the previous two slides follow from De Morgan’s Law
which describes how the complement operator works when applied
across the and/or operators:
(A ∩ B)c = Ac ∪ B c
(A ∪ B)c = Ac ∩ B c
i.e., complement each individual event and flip the and/or operator.
Thus, we also have
(Ac ∪ B c )c = (Ac )c ∩ (B c )c = A ∩ B
(Ac ∩ B c )c = (Ac )c ∪ (B c )c = A ∪ B
(note that we found this probability already using the venn diagram - see slide 12)
(Note that the above probability can be found using a more manual approach since
B c = {HH, TH, HT } and C c = {TH, HT } ⇒ B c ∩ C c = {TH, HT })
These events are all mutually exclusive since, for example, the result
cannot simultaneously be a one and a two.
Exhaustive Events
Pr(E1 ∪ E2 ∪ E3 ∪ E4 ∪ E5 ∪ E6 )
Such events are called exhaustive as they cover the whole sample
space, i.e., they exhaust all possibilities.
Question 2
Consider the experiment where both a die is rolled and a coin is flipped
(considered earlier in Question 1). Let A = “head & even number”,
B = “head & any number”, C = “any face & a five”.
Question 3
Assume that we have two light bulbs and define the events B1 = “bulb
one works” and B2 = “bulb two works” where Pr(B1 ) = Pr(B2 ) = 0.9. If
the bulbs work independently (more on this later), the probability that
they both work is Pr(B1 ∩ B2 ) = 0.81.
a) If the bulbs are wired in series, light is only produced if both bulbs
are working. In this case, what is Pr(light) and Pr(no light)?
b) If the bulbs are wired in parallel, light is produced even if only one
bulb is working. In this case, what is Pr(light) and Pr(no light)?
(for more than two non-independent events there is no simple multiplication formula -
much like the addition rule for non-mutually exclusive events)
Kevin Burke University of Limerick, Maths & Stats Dept 28 / 33
Definitions Set Notation Addition Rule Multiplication Rule Independence Vs Mutual Exclusion
Checking Independence
Question 4
Question 5
Independent events
Have no effect on each other.
Can happen at the same time (but work independently of each
other).
Allow us to simplify the multiplication rule.
Question 6
Classify the following pairs of events as being mutually exclusive,
independent or dependent (but not mutually exclusive).
Event A Event B
a) A coin shows a head The same coin shows a tail
b) You work hard You get promoted
c) You are Irish It rains in Japan
d) Anti-virus out of date Laptop is virus-free
e) You are in this lecture You are in the Stables
f) You are in this lecture You are on Facebook
g) An individual is not wealthy He/she drives an expensive car
h) One coin shows a head Another coin shows a head
Kevin Burke University of Limerick, Maths & Stats Dept 33 / 33