0% found this document useful (0 votes)
29 views45 pages

Lecture 7.5 - Conditional Probability - Independent Events Examples

Uploaded by

23f3004060
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views45 pages

Lecture 7.5 - Conditional Probability - Independent Events Examples

Uploaded by

23f3004060
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 45

Statistics for Data Science -1

Statistics for Data Science -1


Lecture 7.5: Conditional Probability: Independent
events-examples

Usha Mohan

Indian Institute of Technology Madras

1/ 10
Statistics for Data Science -1

Learning objectives

1. Understand notion of conditional probability, i.e find the


probability of an event given another event has occurred.

2/ 10
Statistics for Data Science -1

Learning objectives

1. Understand notion of conditional probability, i.e find the


probability of an event given another event has occurred.
2. Distinguish between independent and dependent events.

2/ 10
Statistics for Data Science -1

Learning objectives

1. Understand notion of conditional probability, i.e find the


probability of an event given another event has occurred.
2. Distinguish between independent and dependent events.
3. Solve applications of probability.

2/ 10
Statistics for Data Science -1

Independent events: example


Rolling a dice
Deck of cards

3/ 10
Statistics for Data Science -1
Independent events: example
Rolling a dice

Example: Roll a dice twice

4/ 10
Statistics for Data Science -1
Independent events: example
Rolling a dice

Example: Roll a dice twice


I Experiment: Roll a dice twice

4/ 10
Statistics for Data Science -1
Independent events: example
Rolling a dice

Example: Roll a dice twice


I Experiment: Roll a dice twice
I Sample space:
 

 (1, 1), (1, 2), (1, 3), (1, 4), (1, 5), (1, 6), 

 (2, 1), (2, 2), (2, 3), (2, 4), (2, 5), (2, 6),

 

 

(3, 1), (3, 2), (3, 3), (3, 4), (3, 5), (3, 6),
 
S=

 (4, 1), (4, 2), (4, 3), (4, 4), (4, 5), (4, 6), 

(5, 1), (5, 2), (5, 3), (5, 4), (5, 5), (5, 6),

 


 


(6, 1), (6, 2), (6, 3), (6, 4), (6, 5), (6, 6),

4/ 10
Statistics for Data Science -1
Independent events: example
Rolling a dice

Example: Roll a dice twice


I Experiment: Roll a dice twice
I Sample space:
 

 (1, 1), (1, 2), (1, 3), (1, 4), (1, 5), (1, 6), 

 (2, 1), (2, 2), (2, 3), (2, 4), (2, 5), (2, 6),

 

 

(3, 1), (3, 2), (3, 3), (3, 4), (3, 5), (3, 6),
 
S=

 (4, 1), (4, 2), (4, 3), (4, 4), (4, 5), (4, 6), 

(5, 1), (5, 2), (5, 3), (5, 4), (5, 5), (5, 6),

 


 


(6, 1), (6, 2), (6, 3), (6, 4), (6, 5), (6, 6),

I Define the following events
I E1 : The first outcome is a 3
I E2 : Sum of outcomes is 8
I E3 : Sum of outcomes is 7

4/ 10
Statistics for Data Science -1
Independent events: example
Rolling a dice

Example: Roll a dice twice


I Experiment: Roll a dice twice
I Sample space:
 

 (1, 1), (1, 2), (1, 3), (1, 4), (1, 5), (1, 6), 

 (2, 1), (2, 2), (2, 3), (2, 4), (2, 5), (2, 6),

 

 

(3, 1), (3, 2), (3, 3), (3, 4), (3, 5), (3, 6),
 
S=

 (4, 1), (4, 2), (4, 3), (4, 4), (4, 5), (4, 6), 

(5, 1), (5, 2), (5, 3), (5, 4), (5, 5), (5, 6),

 


 


(6, 1), (6, 2), (6, 3), (6, 4), (6, 5), (6, 6),

I Define the following events
I E1 : The first outcome is a 3
I E2 : Sum of outcomes is 8
I E3 : Sum of outcomes is 7
I Are events E1 and E2 independent?

4/ 10
Statistics for Data Science -1
Independent events: example
Rolling a dice

Example: Roll a dice twice


I Experiment: Roll a dice twice
I Sample space:
 

 (1, 1), (1, 2), (1, 3), (1, 4), (1, 5), (1, 6), 

 (2, 1), (2, 2), (2, 3), (2, 4), (2, 5), (2, 6),

 

 

(3, 1), (3, 2), (3, 3), (3, 4), (3, 5), (3, 6),
 
S=

 (4, 1), (4, 2), (4, 3), (4, 4), (4, 5), (4, 6), 

(5, 1), (5, 2), (5, 3), (5, 4), (5, 5), (5, 6),

 


 


(6, 1), (6, 2), (6, 3), (6, 4), (6, 5), (6, 6),

I Define the following events
I E1 : The first outcome is a 3
I E2 : Sum of outcomes is 8
I E3 : Sum of outcomes is 7
I Are events E1 and E2 independent?
I Are events E1 and E3 independent?
4/ 10
Statistics for Data Science -1
Independent events: example
Rolling a dice

Are E1 and E2 independent?-solution

5/ 10
Statistics for Data Science -1
Independent events: example
Rolling a dice

Are E1 and E2 independent?-solution

5/ 10
Statistics for Data Science -1
Independent events: example
Rolling a dice

Are E1 and E2 independent?-solution

I E1 ∩ E2 is the event that the first outcome is 3 and sum of


outcomes is 8.

P(E1 ∩ E2 ) =

5/ 10
Statistics for Data Science -1
Independent events: example
Rolling a dice

Are E1 and E2 independent?-solution

I E1 ∩ E2 is the event that the first outcome is 3 and sum of


outcomes is 8.
1
P(E1 ∩ E2 ) = P({(3, 5)}) =
36

5/ 10
Statistics for Data Science -1
Independent events: example
Rolling a dice

Are E1 and E2 independent?-solution

I E1 ∩ E2 is the event that the first outcome is 3 and sum of


outcomes is 8.
1
P(E1 ∩ E2 ) = P({(3, 5)}) =
36

I P(E1 ) =

5/ 10
Statistics for Data Science -1
Independent events: example
Rolling a dice

Are E1 and E2 independent?-solution

I E1 ∩ E2 is the event that the first outcome is 3 and sum of


outcomes is 8.
1
P(E1 ∩ E2 ) = P({(3, 5)}) =
36

I P(E1 ) = P({(3, 1), (3, 2), (3, 3), (3, 4), (3, 5), (3, 6)}) = 6
36

5/ 10
Statistics for Data Science -1
Independent events: example
Rolling a dice

Are E1 and E2 independent?-solution

I E1 ∩ E2 is the event that the first outcome is 3 and sum of


outcomes is 8.
1
P(E1 ∩ E2 ) = P({(3, 5)}) =
36

I P(E1 ) = P({(3, 1), (3, 2), (3, 3), (3, 4), (3, 5), (3, 6)}) = 6
36
I P(E2 ) =

5/ 10
Statistics for Data Science -1
Independent events: example
Rolling a dice

Are E1 and E2 independent?-solution

I E1 ∩ E2 is the event that the first outcome is 3 and sum of


outcomes is 8.
1
P(E1 ∩ E2 ) = P({(3, 5)}) =
36

I P(E1 ) = P({(3, 1), (3, 2), (3, 3), (3, 4), (3, 5), (3, 6)}) = 6
36
I P(E2 ) = P({(2, 6), (3, 5), (4, 4), (5, 3), (6, 2)}) = 36 5

5/ 10
Statistics for Data Science -1
Independent events: example
Rolling a dice

Are E1 and E2 independent?-solution

I E1 ∩ E2 is the event that the first outcome is 3 and sum of


outcomes is 8.
1
P(E1 ∩ E2 ) = P({(3, 5)}) =
36

I P(E1 ) = P({(3, 1), (3, 2), (3, 3), (3, 4), (3, 5), (3, 6)}) = 6
36
I P(E2 ) = P({(2, 6), (3, 5), (4, 4), (5, 3), (6, 2)}) = 36 5

1
I Since 36 6 5
6= 36 × 36 we see that P(E1 ∩ E2 ) 6= P(E1 ) × P(E2 ),
so events

5/ 10
Statistics for Data Science -1
Independent events: example
Rolling a dice

Are E1 and E2 independent?-solution

I E1 ∩ E2 is the event that the first outcome is 3 and sum of


outcomes is 8.
1
P(E1 ∩ E2 ) = P({(3, 5)}) =
36

I P(E1 ) = P({(3, 1), (3, 2), (3, 3), (3, 4), (3, 5), (3, 6)}) = 6
36
I P(E2 ) = P({(2, 6), (3, 5), (4, 4), (5, 3), (6, 2)}) = 36 5

1
I Since 36 6 5
6= 36 × 36 we see that P(E1 ∩ E2 ) 6= P(E1 ) × P(E2 ),
so events E1 and E2 are not independent.

5/ 10
Statistics for Data Science -1
Independent events: example
Rolling a dice

Are E1 and E3 independent?-solution

6/ 10
Statistics for Data Science -1
Independent events: example
Rolling a dice

Are E1 and E3 independent?-solution

I E1 ∩ E3 is the event that the first outcome is 3 and sum of


outcomes is 7.

P(E1 ∩ E3 ) =

6/ 10
Statistics for Data Science -1
Independent events: example
Rolling a dice

Are E1 and E3 independent?-solution

I E1 ∩ E3 is the event that the first outcome is 3 and sum of


outcomes is 7.
1
P(E1 ∩ E3 ) = P({(3, 4)}) =
36

6/ 10
Statistics for Data Science -1
Independent events: example
Rolling a dice

Are E1 and E3 independent?-solution

I E1 ∩ E3 is the event that the first outcome is 3 and sum of


outcomes is 7.
1
P(E1 ∩ E3 ) = P({(3, 4)}) =
36

I P(E1 ) = P({(3, 1), (3, 2), (3, 3), (3, 4), (3, 5), (3, 6)}) =

6/ 10
Statistics for Data Science -1
Independent events: example
Rolling a dice

Are E1 and E3 independent?-solution

I E1 ∩ E3 is the event that the first outcome is 3 and sum of


outcomes is 7.
1
P(E1 ∩ E3 ) = P({(3, 4)}) =
36

I P(E1 ) = P({(3, 1), (3, 2), (3, 3), (3, 4), (3, 5), (3, 6)}) = 6
36

6/ 10
Statistics for Data Science -1
Independent events: example
Rolling a dice

Are E1 and E3 independent?-solution

I E1 ∩ E3 is the event that the first outcome is 3 and sum of


outcomes is 7.
1
P(E1 ∩ E3 ) = P({(3, 4)}) =
36

I P(E1 ) = P({(3, 1), (3, 2), (3, 3), (3, 4), (3, 5), (3, 6)}) = 6
36
I P(E3 ) =

6/ 10
Statistics for Data Science -1
Independent events: example
Rolling a dice

Are E1 and E3 independent?-solution

I E1 ∩ E3 is the event that the first outcome is 3 and sum of


outcomes is 7.
1
P(E1 ∩ E3 ) = P({(3, 4)}) =
36

I P(E1 ) = P({(3, 1), (3, 2), (3, 3), (3, 4), (3, 5), (3, 6)}) = 6
36
I P(E3 ) = P({(1, 6), (2, 5), (3, 4), (4, 3), (5, 2), (6, 1)}) = 6
36

6/ 10
Statistics for Data Science -1
Independent events: example
Rolling a dice

Are E1 and E3 independent?-solution

I E1 ∩ E3 is the event that the first outcome is 3 and sum of


outcomes is 7.
1
P(E1 ∩ E3 ) = P({(3, 4)}) =
36

I P(E1 ) = P({(3, 1), (3, 2), (3, 3), (3, 4), (3, 5), (3, 6)}) = 6
36
I P(E3 ) = P({(1, 6), (2, 5), (3, 4), (4, 3), (5, 2), (6, 1)}) = 6
36
I Since 1 6 6
36 = 36 × 36 we see that P(E1 ∩ E3 ) = P(E1 ) × P(E3 ),
so

6/ 10
Statistics for Data Science -1
Independent events: example
Rolling a dice

Are E1 and E3 independent?-solution

I E1 ∩ E3 is the event that the first outcome is 3 and sum of


outcomes is 7.
1
P(E1 ∩ E3 ) = P({(3, 4)}) =
36

I P(E1 ) = P({(3, 1), (3, 2), (3, 3), (3, 4), (3, 5), (3, 6)}) = 6
36
I P(E3 ) = P({(1, 6), (2, 5), (3, 4), (4, 3), (5, 2), (6, 1)}) = 6
36
1
I Since 36 6 6
= 36 × 36 we see that P(E1 ∩ E3 ) = P(E1 ) × P(E3 ),
so events E1 and E3 are independent.

6/ 10
Statistics for Data Science -1
Independent events: example
Deck of cards

Example: deck of cards


Consider again the experiment of randomly selecting one card from
a deck of 52 playing cards.

7/ 10
Statistics for Data Science -1
Independent events: example
Deck of cards

Example: deck of cards


Consider again the experiment of randomly selecting one card from
a deck of 52 playing cards.

I Define the following events


I E1 : A face card is selected.
I E2 : A king is selected.
I E3 : A heart is selected.

7/ 10
Statistics for Data Science -1
Independent events: example
Deck of cards

Example: deck of cards


Consider again the experiment of randomly selecting one card from
a deck of 52 playing cards.

I Define the following events


I E1 : A face card is selected.
I E2 : A king is selected.
I E3 : A heart is selected.
I Are E1 and E2 independent?
7/ 10
Statistics for Data Science -1
Independent events: example
Deck of cards

Example: deck of cards


Consider again the experiment of randomly selecting one card from
a deck of 52 playing cards.

I Define the following events


I E1 : A face card is selected.
I E2 : A king is selected.
I E3 : A heart is selected.
I Are E1 and E2 independent?
I Are E2 and E3 independent? 7/ 10
Statistics for Data Science -1
Independent events: example
Deck of cards

Are E1 and E2 independent?-solution

8/ 10
Statistics for Data Science -1
Independent events: example
Deck of cards

Are E1 and E2 independent?-solution

I E1 ∩ E2 is the event that a face card and a king is selected


which is the event a king is selected.
4
P(E1 ∩ E2 ) = P({KH, KC , KS, KD}) =
52

8/ 10
Statistics for Data Science -1
Independent events: example
Deck of cards

Are E1 and E2 independent?-solution

I E1 ∩ E2 is the event that a face card and a king is selected


which is the event a king is selected.
4
P(E1 ∩ E2 ) = P({KH, KC , KS, KD}) =
52

I P(E1 ) =
P({JH, JC , JS, JD, KH, KC , KS, KD, QH, QC , QS, QD}) =
12
52

8/ 10
Statistics for Data Science -1
Independent events: example
Deck of cards

Are E1 and E2 independent?-solution

I E1 ∩ E2 is the event that a face card and a king is selected


which is the event a king is selected.
4
P(E1 ∩ E2 ) = P({KH, KC , KS, KD}) =
52

I P(E1 ) =
P({JH, JC , JS, JD, KH, KC , KS, KD, QH, QC , QS, QD}) =
12
52
I P(E2 ) = P({KH, KC , KS, KD}) = 4
52

8/ 10
Statistics for Data Science -1
Independent events: example
Deck of cards

Are E1 and E2 independent?-solution

I E1 ∩ E2 is the event that a face card and a king is selected


which is the event a king is selected.
4
P(E1 ∩ E2 ) = P({KH, KC , KS, KD}) =
52

I P(E1 ) =
P({JH, JC , JS, JD, KH, KC , KS, KD, QH, QC , QS, QD}) =
12
52
I P(E2 ) = P({KH, KC , KS, KD}) = 52 4

4
I Since 52 12 4
6= 52 × 52 we see that P(E1 ∩ E2 ) 6= P(E1 ) × P(E2 ),
so events E1 and E2 are not independent.

8/ 10
Statistics for Data Science -1
Independent events: example
Deck of cards

Are E2 and E3 independent?-solution

9/ 10
Statistics for Data Science -1
Independent events: example
Deck of cards

Are E2 and E3 independent?-solution

9/ 10
Statistics for Data Science -1
Independent events: example
Deck of cards

Are E2 and E3 independent?-solution

I E2 ∩ E3 is the event that a king and a heart is selected which


is the event a kingheart is selected.
1
P(E1 ∩ E2 ) = P({KH}) =
52
I P(E2 ) = P({KH, KC , KS, KD}) = 4
52

9/ 10
Statistics for Data Science -1
Independent events: example
Deck of cards

Are E2 and E3 independent?-solution

I E2 ∩ E3 is the event that a king and a heart is selected which


is the event a kingheart is selected.
1
P(E1 ∩ E2 ) = P({KH}) =
52
4
I P(E2 ) = P({KH, KC , KS, KD}) = 52
I P(E3 ) =
P({AH, 2H, 3H, 4H, 5H, 6H, 7H, 8H, 9H, 10H, JH, KH, QH}) =
13
52

9/ 10
Statistics for Data Science -1
Independent events: example
Deck of cards

Are E2 and E3 independent?-solution

I E2 ∩ E3 is the event that a king and a heart is selected which


is the event a kingheart is selected.
1
P(E1 ∩ E2 ) = P({KH}) =
52
4
I P(E2 ) = P({KH, KC , KS, KD}) = 52
I P(E3 ) =
P({AH, 2H, 3H, 4H, 5H, 6H, 7H, 8H, 9H, 10H, JH, KH, QH}) =
13
52
1 4
I Since 52 = 52 × 13
52 we see that P(E2 ∩ E3 ) = P(E2 ) × P(E3 ),
so events E2 and E3 are independent.

9/ 10
Statistics for Data Science -1
Independent events: example
Deck of cards

Section summary

I Examples of independent and dependent events.

10/ 10

You might also like