Professional Documents
Culture Documents
Chapter3-Probability and Probability Distributions PB
Chapter3-Probability and Probability Distributions PB
A B A B
Event Relations
• The intersection of two events, A and B, is
the event that both A and B occur when the
experiment is performed. We write A B.
S
A B A B
A
Example
• Select a student from the classroom and
record his/her hair color and gender.
– A: student has brown hair
– B: student is female
– C: student is male Mutually exclusive; B = CC
• What is the relationship between events B
and C? Student does not have brown hair
• AC: Student is both male and female =
• BC: Student is either male and female = all
• BC: students = S
Calculating Probabilities for
Unions and Complements
• There are special rules that will allow you to
calculate probabilities for composite events.
• The Additive Rule for Unions:
• For any two events, A and B, the
probability of their union, P(A B), is
P ( A B ) P ( A) P ( B ) P ( A B)
A B
Example: Additive Rule
Example: Suppose that there were 120
students in the classroom, and that
they could be classified as follows:
A: brown hair Brown Not Brown
P(A) = 50/120 Male 20 40
B: female Female 30 30
P(B) = 60/120
P(AB) = P(A) + P(B) – P(AB)
= 50/120 + 60/120 - 30/120
= 80/120 = 2/3 Check: P(AB)
= (20 + 30 + 30)/120
A Special Case
When two events A and B are
mutually exclusive, P(AB) = 0
and P(A B) = P(A) + P(B).
A: male with brown hair Brown Not
Brown
P(A) = 20/120
Male 20 40
B: female with brown hair
P(B) = 30/120 Female 30 30
P(AC) = 1 – P(A)
Example
Select a student at random
from the classroom. Define:
A: male Brown Not Brown
P(A) = 60/120 Male 20 40
B: female Female 30 30
“given”
Defining Independence
• We can redefine independence in
terms of conditional probabilities:
Two events A and B are independent if and
only if
P(A|B) = P(A) or P(B|A) = P(B)
Otherwise, they are dependent.
m
Exercise
Let x represent the number of times a customer
visits a grocery store in a week period. Assume
this is the probability distributions of x:
x 0 1 2 3
P(x) 0.1 0.4 0.4 0.1
x p(x)
0 1/8
1 3/8
2 3/8
3 1/8
The Binomial Random Variable
• Many situations in real life resemble the
coin toss, but the coin is not necessarily
fair, so that P(H) 1/2.
• Example: A geneticist samples
10 people and counts the number
who have a gene linked to
Alzheimer’s disease.
• Coin: Person • Number of n = 10
n k nk n! k nk
P( x k ) C p q
k p q for k 0,1,2,...n.
k!(n k )!
n n!
Recall C k
k!(n k )!
with n! n(n 1)( n 2)...( 2)1 and 0! 1.
The Mean and Standard
Deviation
• For a binomial experiment with n trials and
probability p of success on a given trial,
the measures of center and spread are:
Mean : np
2
Variance : npq
Standard deviation : npq
Example
A marksman hits a target 80% of the
time. He fires five shots at the target. What is the
probability that exactly 3 shots hit the target?
n= 5 success = hit p= .8 x= # of
hits
5!
n
P ( x 3) C p q
3
3 n3
(.8)3 (.2)53
3!2!
5! 4 1 5!
(.8) (.2) (.8)5 (.2)0
4!1! 5!0!
Standarddeviation: npq
5(.8)(.2) .89
m
Example
• Would it be unusual to find
that none of the shots hit
the target? 4; .89