Lecture 5 - CH 2 (Discrete Probability Distributions)
Lecture 5 - CH 2 (Discrete Probability Distributions)
Introduction to Probability
and Statistics
Chapter 2
Discrete Probability Distributions
109
110
1
3/23/2022
x p(x)
p(x)
1 p(x=1)=1/6
2 p(x=2)=1/6
1/6
3 p(x=3)=1/6
4 p(x=4)=1/6 x
1 2 3 4 5 6
5 p(x=5)=1/6
6 p(x=6)=1/6 P(x) 1
all x
1.0
Dr Ahmed Kafafy-FCI Menoufia university.
111
112
2
3/23/2022
Practice Problem
113
Answer (a)
12 .25
1.0
Dr Ahmed Kafafy-FCI Menoufia university.
114
3
3/23/2022
Answer (b)
x f(x)
Though this sums to 1,
1 (3-1)/2=1.0 you can’t have a negative
probability; therefore, it’s
2 (3-2)/2=.5 not a probability
function.
3 (3-3)/2=0
4 (3-4)/2=-.5
115
Answer (c)
c. f(x)= (x2+x+1)/25 for x=0,1,2,3
x f(x)
0 1/25
1 3/25
Doesn’t sum to 1. Thus,
2 7/25 it’s not a probability
function.
3 13/25
24/25
Dr Ahmed Kafafy-FCI Menoufia university.
116
4
3/23/2022
• Binomial
– Yes/no outcomes (dead/alive,
treated/untreated, smoker/non-smoker,
sick/well, etc.)
• Poisson
– Counts (e.g., how many cases of
disease in a given area)
117
118
5
3/23/2022
119
Binomial or Not? m
m m
m mm
Yes,
• Is x binomial? 3 trials are independent with
same probability of getting a
green.
120 Dr Ahmed Kafafy-FCI Menoufia university.
120
6
3/23/2022
Binomial or Not? m
m m
m mm
121
Binomial or Not?
122
7
3/23/2022
• Failure: • Probability of
Doesn’t have gene
Success p = P(has gene) = 0.15
123 Dr Ahmed Kafafy-FCI Menoufia university.
123
Example
124
8
3/23/2022
Solution
125
A General Example
126
9
3/23/2022
P ( x k ) C kn p k q n k
for k 0 ,1, 2 ,... n
n!
Recall C kn
k ! ( n k )!
with n! n ( n 1)( n 2)...( 2 )1 and 0! 1.
127
Mean : np
Variance : 2 npq
Standard Deviation : npq
128
10
3/23/2022
Example
129
Example
130
11
3/23/2022
Example
• x = number of hits.
• What are the mean and standard
deviation for x? (n=5,p=.8)
Mean : np 5(.8) 4
5(.8)(.2) .89
131 Dr Ahmed Kafafy-FCI Menoufia university.
131
Cumulative Probability
132
12
3/23/2022
Key Concepts
I. The Binomial Random Variable
1. Five characteristics:
the experiment consists of n identical trials;
each resulting in either success S or failure F;
probability of success is p and remains constant;
all trials are independent;
x is the number of successes in n trials.
2. Calculating binomial probabilities
a. Formula: P(x k) Ckn pk qnk
b. Cumulative binomial probability P(x k).
3. Mean of the binomial random variable: np
4. Variance and standard deviation:
2 npq npq
133 Dr Ahmed Kafafy-FCI Menoufia university.
133
Example
134
13
3/23/2022
Example
According to the Humane Society of the
United States, there are approximately 40% of
U.S. households own dogs. Suppose 15
households are selected at random.
What is probability that exactly 8 households own
dogs?
135
Example
136
14
3/23/2022
Example
What are the mean, variance and
standard deviation of random variable
x?
(n=15, p=.4)
np 15(.4) 6
2 3.6 1.90
137
Binomial Probability
• Probability distribution for Binomial random
variable x with n=15, p=0.4
Probability Distribution of Binomial n=15, p=.4
0.20
0.15
P(x)
0.10
0.05
0.00
0 2 4 6 8 10 12 14 16
x
138
15
3/23/2022
Example
1. What are the mean,
variance and standard np 15(.4) 6
deviation of random 2 npq 15(.4)(.6) 3.6
variable x?
2 3.6 1.90
2. Calculate interval
within 2 standard 2 6 2(1.9) 2.2
deviations of mean. 2 6 2(1.9) 9.8
What values fall into (2.2, 9.8)
this interval?
3 , 4 , 5 , 6 , 7 ,8 ,9
3. Find the probability
that x fall into this
interval. P(3 x 9) P(3) P(4) ... P(9) .939
139 Dr Ahmed Kafafy-FCI Menoufia university.
139
16