Lecture - Probability
Lecture - Probability
b. an even number:
P(even number) = P(2, 4, 6) =
2
More notation – Venn diagrams
A B
Event A P(A)
Complement of A = P( )
A B = A or B P(A B) = P(A or B)
Union, everything
A B
B P( B)
3
Addition rule; ‘OR’ formulae:
A B A B
= + –
A B A B
= +
5
eg:
a. Pick one ball: S = {4-Orange, 2-Black, 3-Grey} 9 balls, n(S) = 9
What is the probability of picking an Orange or a Grey ball ?
P(O or G) = P(O) + P(G) – P(O and G) ME events, P(O and G) = 0
= + – = …2
= + – = …2
= + – =
= + – =
6
Complementary rule
A
+ =
P(A) + P( ) = 1 …4
7
eg: pick a ball: S = {14-B, 10-G, 20-Y, 15-R, 5-P, 9-V, 11-O}
What is the probability of NOT picking a black ball ? 84 balls, n(S) = 84
P(A) + P(B) = 1 …4
P(A) = 1 – P(B)
= 1 –
= – =
P(A) + P(A’) = 1 …4
P(A) = 1 – P(A’)
= 1 –
= – =
8
Conditional probability rule:
KEY WORDS:
‘GIVEN THAT’ , ‘CONDITIONAL’ , dependent events
P(A | B) means the probability that event A will occur given that event
B has occurred B then A
( ∩ ) ( ∩ )
P(A | B) = …5
( ) ( )
b. Roll a dice. What is the probability of getting a ‘2’ given that the
number was even.
( )
P(2 | even) = …5
( )
d. Pick a card. What is the probability of getting a ‘10’ given that the
card was a Heart
( )
P(10 | Heart) = …5
( )
9
Multiplication rule; ‘AND’ formulae:
= x =
= x =
eg: Select two (2) balls from a bag containing blue and red balls, with
no replacement, S = {2-B, 4-R}, n(S) = 6 dependent events, so P(A and B) = P(A)P(B | A)
a. What is the probability of getting a R and (then) a B
P(R and B) = P(R) x P(B | R) …6
= x =
= x =
11
eg: Select two (2) cards from a standard pack, with replacement
S = {♥… ♣… ♦… ♠… } , n(S) = 52 independent events
What is the probability of selecting two Kings (a King and then a King)
= =
eg: Select two (2) cards from a standard pack, with no replacement
S = {♥… ♣… ♦… ♠… } , n(S) = 52 dependent events
What is the probability of selecting two Kings (a King and then a King)
= =
What is the probability of getting a tails (T) and an even number and
a Jack of Hearts (J♥) ? independent events
= x x =
12
eg: pick 2 cards, with replacement independent events
= x =
= x =
eg: a coin is tossed and a dice is rolled, find the probability of getting a:
= x =
= + –
= + – =
13
eg: Use the Venn diagram to prove that events A and B are independent
A B
0.2 0.3 0.3 P(A) = 0.2 + 0.3 = 0.5
P(B) = 0.3 + 0.3 = 0.6
0.2
14
General examples:
eg: A group of 50 students, 20 take English, 25 take Technology and 15
study both subjects. One student is selected, find the probability that this
student studies:
50
English Tech.
5 15 10
20
a. Technology
P(Tech) = …1
b. English
P(English) = …1
15
e. not studying English
P(not English) = 1 – P(English) = 1 – = …4
P(not English) = =
( )
P(Tech | English) = …5
( )
( )
P(Tech | English) = =
( )
( )
P(English | Tech) = …5
( )
( )
P(English | Tech) = =
( )
16
eg:
One voter is selected, find the probability that the person is:
a. a labour voter:
P(labour) = …1
= + – =
= + – =
17
f. a labour voter, given that they are a high income earner:
( )
P(Labour | high income) = …5
( )
( )
P(Lab | high income) = =
( )
( )
P(High income | Other voter) = =
( )
eg: Assume P(A) = 0.6, P(B) = 0.4 and P(A B) = 0.3, then
determine:
a. P(A B)
P(A B) = P(A or B) = P(A) + P(B) – P(A and B) …2
= 0.6 + 0.4 – 0.3
= 0.7
b. P(A | B)
( ) .
P(A | B) = = = …5
( ) .
18