Docsity

Conditional Probability - Lecture Notes | MATH 329, Study notes of Probability and Statistics

Toggle sidebar
bg1
Dr. Neal, WKU
MATH 329 Conditional Probability
We now shall consider probabilities of events that are restricted within a subset that is
smaller than the entire sample space
Ω
. For example, let
Ω
be the space of all students,
with
F
being female students, and consider the event
G
of having a GPA of at least 3.0.
Then P(G) represents the probability that a student (from all of
Ω
) has a GPA of at
least 3.0. But suppose we want to consider just female students. Then we use P(G F)
to denote the probability that a female student has a GPA of at least 3.0. This conditional
probability can be stated in several ways, such as
(i) Given that a student is female, what is the probability of having a GPA of at least 3.0?
(ii) What is the probability, among just females, of having a GPA of at least 3.0?
We formally define this concept in the following way:
Definition. Let
D
be an event with P(D)≠0 and let
C
be another event. The
conditional probability of
C
given
D
is defined by P(C D)=P(C∩D) / P(D).
(The second (given) set is the reduced sample space.)
Example 1. Among all students, 60% are female (event
F
), 70% have a GPA of at least
3.0 (event
G
), and 48% are females with a GPA of at least 3.0. Let
M=Fc
be the males.
Compute and explain P(G F), P(F G), P(M G), P(G
cM)
, and P(M G
c)
.
Solution. We first show all information on a Block diagram:
G
Gc
G
Gc
F
48% 60%
F
48% 12% 60%
M
→
M
22% 18% 40%
70% 100% 70% 30% 100%
P(G F)=P(G∩F)
P(F)=48
60 =0.80 80% of females have a GPA of at least 3.0.
P(F G)=P(F∩G)
P(G)=48
70 ≈0.6857 and P(M G)=P(M∩G)
P(G)=22
70 ≈0.3143 Among
just those with a GPA of at least 3.0, 68.57% are female and 31.43% are male.
P(GcM)=P(G
c∩M)
P(M)=18
40 ≈0.45
45% of males have a GPA under 3.0.
P(M Gc)=P(M∩G
c)
P(Gc)=18
30 ≈0.60
Among those with a GPA under 3.0, 60% are male.
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download Conditional Probability - Lecture Notes | MATH 329 and more Study notes Probability and Statistics in PDF only on Docsity!

MATH 329 Conditional Probability

We now shall consider probabilities of events that are restricted within a subset that is smaller than the entire sample space Ω. For example, let Ω be the space of all students, with F being female students, and consider the event G of having a GPA of at least 3.0. Then P(G ) represents the probability that a student (from all of Ω ) has a GPA of at

least 3.0. But suppose we want to consider just female students. Then we use P(G F) to denote the probability that a female student has a GPA of at least 3.0. This conditional probability can be stated in several ways, such as

(i) Given that a student is female, what is the probability of having a GPA of at least 3.0?

(ii) What is the probability, among just females, of having a GPA of at least 3.0?

We formally define this concept in the following way:

Definition. Let D be an event with P(D) ≠ 0 and let C be another event. The

conditional probability of C given D is defined by P(C D ) = P(C ∩ D) / P( D).

(The second (given) set is the reduced sample space.)

Example 1. Among all students, 60% are female (event F ), 70% have a GPA of at least

3.0 (event G ), and 48% are females with a GPA of at least 3.0. Let M = Fc^ be the males.

Compute and explain P(G F) , P(F G) , P(M G) , P(Gc^ M) , and P(M Gc^ ).

Solution. We first show all information on a Block diagram:

G (^) Gc^ G (^) Gc F 48% 60% F 48% 12% 60% M →^ M 22% 18% 40% 70% 100% 70% 30% 100%

P(G F) =

P(G ∩ F)

P(F )

= 0.80 80% of females have a GPA of at least 3.0.

P(F G) =

P( F ∩ G)

P(G )

≈ 0.6857 and P(M G) =

P( M ∩ G)

P(G)

≈ 0.3143 Among

just those with a GPA of at least 3.0, 68.57% are female and 31.43% are male.

P(Gc^ M) =

P(Gc^ ∩ M) P(M)

≈ 0.45 45% of males have a GPA under 3.0.

P(M Gc^ ) =

P( M ∩ Gc^ ) P(Gc^ )

≈ 0.60 Among those with a GPA under 3.0, 60% are male.

Example 2. Flip a fair coin three times. What is the probability of

(a) All Heads given that there is at least one Head? (b) Exactly 2 heads given that the first is a Head?

Solution. Let X count the number of Heads. Then consider the sample space of all 8 outcomes, and just look at the reduced sample space.

HHH HHT HTH THH HTT THT TTH TTT

(a) Given that there is at least one Head, then we are reduced to 7 possibilities. Out of

these 7, only 1 has all heads; thus, P(X = 3 X ≥ 1) =

. Or, because {X = 3} ⊆ {X ≥ 1},

we also could compute the value as

P(X = 3 X ≥ 1) =

P( X = 3 ∩ X ≥ 1)

P( X ≥ 1)

P( X = 3 )

P( X ≥ 1)

(b) Let X 1 be the outcome of the first roll. Given that X 1 = H , we are reduced to 4 possibilities: HHH HHT HTH HTT. Of these 4 outcomes, 2 of them have exactly

2 Heads. Thus, P(X = 2 X 1 = H ) =

. Alternately, {X = 2 ∩ X 1 = H} = {HHT, HTH}, so

P(X = 2 X 1 = H ) =

P( X = 2 ∩ X 1 = H )

P( X 1 = H )

Multiplication Rule

Given events A , B , with P(A) ≠ 0 and P(B) ≠ 0 ,we have

P(B A) =

P( A ∩ B)

P( A)

and P(A B) =

P( A ∩ B)

P( B)

So we can write P(A ∩ B) as

P(A ∩ B) = P( A) × P(B A) or P(A ∩ B) = P( B) × P( A B)

In other words, what is the chance of both A and B happening? First we need A , then we need B given that A has happened: P(A) × P(B A). (Or we need B and then

we need A given that B has happened: P(B) × P(A B). )

Note : When A and B are known to be independent , then P(A ∩ B) = P( A) × P(B). But

iwhen there is dependence, then A affects B so that P(B) ≠ P(B A). So when we have

dependent events, we need P(A ∩ B) = P( A) × P(B A).

Now we can compute the desired conditional probabilities:

(a) P(S D) =

P(S ∩ D)

P( D)

≈ 0.4923. (b) P(Sc^ Dc^ ) =

P( Sc^ ∩ Dc^ ) P(Dc^ )

(c) Because S ∩ D ⊆ S ∪ D and P(S ∪ D) = 0.73 , we have

P(S ∩ D S ∪ D ) =

P(S ∩ D)

P(S ∪ D)

(d) Now Sc^ ∩ Dc^ ⊆ (S ∩ D)c^ ; thus, P(Sc^ ∩ Dc^ (S ∩ D)c^ ) =

P(Sc^ ∩ Dc^ ) P(( S ∩ D)c^ )

Special Cases

(i) C and D are disjoint

C

D

P(C D ) =

P(C ∩ D)

P(D)

P(∅)

P(D )

Given D , there is then no chance of C.

(ii) C is contained in D

C

D

P(C D ) =

P(C ∩ D)

P(D)

P(C)

P(D)

(iii) D is contained in C

C D

P(C D ) =

P(C ∩ D)

P(D)

P(D)

P(D)

Given D , then C happens also.

(iv) C and D are independent

P(C D ) =

P(C ∩ D)

P(D)

P(C) × P( D)

P(D)

= P(C)

and

P(D C) =

P( D ∩ C)

P(C)

P(D) × P(C)

P(C)

= P(D)

C and D have no affect on each other.

Example 5. Among the population of senior citizens, 90% need glasses. Among those needing glasses, 75% need bifocals.

(a) What percentage of senior citizens need bifocals? (b) If one doesn't need bifocals, what is the probability of not needing glasses?

Solution. Let P(G ) = 0.90 be the probabilty of needing glasses and P(B G ) = 0.75 be

the probabilty of needing bifocals given that one needs glasses. Because B ⊆ G , we have

0.75 = P(B G) =

P(B ∩ G )

P(G)

P(B)

P(G )

P(B)

Hence, P(B ∩ G) = P( B) = 0.90 × 0.75 = 0..

B (^) Bc G 0.675^ 0.225^ 0. Gc^0 0.10^ 0. 0.675 0.325 1

Because B ⊆ G , then Gc^ ⊆ Bc^. Thus,

P(Gc^ Bc^ ) =

P(Gc^ ∩ Bc^ ) P(Bc^ )

P(Gc^ ) P(Bc^ )

Example 6. Deal 5 cards. What is the probability of having at least 3 Hearts given that you have at least 2 hearts?

Solution. Let X denote the number of Hearts. Then {X ≥ 3} ⊆ {X ≥ 2}; hence,

P(X ≥ 3 X ≥ 2) =

P(X ≥ 3 ∩ X ≥ 2)

P(X ≥ 2)

P(X ≥ 3)

P( X ≥ 2)

P( X = 3) + P( X = 4) + P( X = 5)

1 − P( X = 0) − P( X = 1)

C(13,3)C(39,2) + C(13, 4)C(39,1) + C(13, 5)C(39, 0)

C(52,5)

C(52, 5) − C(13, 0)C(39,5) + C(13,1)C(39, 4)

C(52,5)

(f) Overall, what percentage are male and have a truck?

P(M ∩ T ) = P(T ) × P( M | T ) = 0.276 × 0.80 = 0.2208 ,

so 22.08% of the students are males with a truck.

(g) Is having a truck independent of sex? No; we have P(M ∩ T ) = 0.2208 , but

P(M) × P( T ) = 0.40 × 0.276 = 0.1104 , so having a truck is dependent on the sex of the student.

Also note that P(T ) = 0.276 while P(T | M) =

P(T ∩ M)

P(M)

= 0.552. Thus,

males are more likely to have a truck than a generic student in the whole population.

As shown in Part (g), conditional probabilities can be used to check for independence. The formal definition of A and B being independent is that P(A ∩ B) = P( A) × P(B). But intuitively, it should be the case that A and B are independent provided they have no affect on each other; that is, it should be the case

that P(B | A) = P(B) and P(A | B) = P(A). We prove this next:

Proposition 5. Suppose events A and B are independent with P(A) ≠ 0 and P(B) ≠ 0. Then:

(a) P(A | B) = P(A) and P(B | A) = P(B).

(b) If P(A | B) ≠ P( A) or P(B | A) ≠ P(B) , then A and B must be dependent.

Proof. (a) By independence, we know P(A ∩ B) = P( A) × P(B). Thus

P(A | B) =

P( A ∩ B)

P( B)

P(A) × P(B)

P(B)

= P( A), and

P(B | A) =

P(B ∩ A)

P( A)

P(B) × P(A)

P(A)

= P(B).

Part (b) is simply the contrapositive of (a) whicj is logically equivalent.

Note : We always have P(A) + P( Ac^ ) = 1. It is also true that P(A B) + P( Ac^ B) = 1;

however, in general, P(A B) + P( A Bc^ ) ≠1.

Exercises

  1. Among adults in Kentucky, 40% smoke, 55% drink, and 59% smoke or drink.

(a) Show all information on a block diagram.

(b) Compute the probability of

(i) Not smoking given that one doesn't drink

(ii) Doing exactly one of smoking or drinking given that one either smokes or drinks.

(c) Among drinkers, what percentage smoke?

(d) Among non-smokers, what percentage don't drink?

(e) Determine if drinking is independent of smoking among adults in KY.

(f) Compared to the general population of adults in KY, determine if a smoker is more likely, less likely, or equally likely to be a drinker.

(g) Compared to the general population of adults in KY, determine if a non-drinker is more likely, less likely, or equally likely to be a smoker.

  1. A class of 20 students has 12 Females and 8 males. Six students are chosen at random all at once.

(a) What is the probability that there are at least 4 females chosen? (b) Given that there are at least 4 females chosen, what is the probability that all are female?

  1. In a large apartment complex, tenants are allowed to have one pet per apartment. Among all apartments, 75% have a pet. If one has a pet, there is a 60% chance that it is a dog.

(a) What percentage of these apartments have a dog? (b) What is the probability of not having a pet given that one doesn't have a dog? (c) Show all information on a block diagram.

  1. Let A and B be events with P(B) ≠ 0. Prove that P(A B) + P( Ac^ B) = 1.
  2. Let A and B be events with 0 < P(A) < 1:

(a) Suppose P(B | A) = P(B). Prove that A and B are independent.

(b) Prove that A and B are independent if and only if P(B | A) = P(B | Ac^ ).