Week 6-Discrete Probability Distributions
Week 6-Discrete Probability Distributions
Discrete Probability
Distributions
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 1
Learning Objectives
In this chapter, you learn:
◼ The properties of a probability distribution
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 2
Definitions
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 3
Types Of Variables
Types Of
Variables
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 4
Discrete Variables
◼ Can only assume a countable number of values
Examples:
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 5
Probability Distribution For A
Discrete Variable
◼ A probability distribution for a discrete variable is a
mutually exclusive listing of all possible numerical outcomes
for that variable and a probability of occurrence associated
with each outcome.
Interruptions Per Day In Probability
Computer Network
0 0.35
1 0.25
2 0.20
3 0.10
4 0.05
5 0.05
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 6
Probability Distributions Are
Often Represented Graphically
P(X)
0.4
0.3
0.2
0.1
0 1 2 3 4 5 X
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 7
Discrete Variables Expected Value (Measuring
Center)
◼ Expected Value (or mean) of a discrete
variable (Weighted Average)
N
= E(X) = xi P ( X = xi )
i =1
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 8
Discrete Variables:
Measuring Dispersion
◼ Variance of a discrete variable
N
σ 2 = [x i − E(X)]2 P(X = x i )
i =1
where:
E(X) = Expected value of the discrete variable X
xi = the ith outcome of X
P(X=xi) = Probability of the ith occurrence of X
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 9
Discrete Variables: Measuring Dispersion
(continued)
N
σ= [x
i =1
i − E(X)] P(X = x i )
2
Interruptions Per
Day In Computer Probability
Network (xi) P(X = xi) [xi – E(X)]2 [xi – E(X)]2P(X = xi)
0 0.35 (0 – 1.4)2 = 1.96 (1.96)(0.35) = 0.686
1 0.25 (1 – 1.4)2 = 0.16 (0.16)(0.25) = 0.040
2 0.20 (2 – 1.4)2 = 0.36 (0.36)(0.20) = 0.072
3 0.10 (3 – 1.4)2 = 2.56 (2.56)(0.10) = 0.256
4 0.05 (4 – 1.4)2 = 6.76 (6.76)(0.05) = 0.338
5 0.05 (5 – 1.4)2 = 12.96 (12.96)(0.05) = 0.648
σ2 = 2.04, σ = 1.4283
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 10
Covariance
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 11
The Covariance Formula
N
σ XY = [ xi − E ( X )][( yi − E (Y )] P ( X = xi , Y = yi )
i =1
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 12
Investment Returns
The Mean
Consider the return per $1000 for two types of
investments.
Investment
Economic Condition
Prob. Passive Fund X Aggressive Fund Y
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 13
Investment Returns
The Mean
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 14
Investment Returns
Standard Deviation
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 15
Investment Returns
Covariance
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 16
The Sum of
Two Variables
◼ Expected Value of the sum of two variables:
E(X + Y) = E( X) + E( Y)
Var(X + Y) = σ 2X+ Y = σ 2X + σ 2Y + 2σ XY
σ X+ Y = σ 2X+ Y
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 17
Portfolio Expected Return and
Expected Risk
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 18
Portfolio Expected Return
and Portfolio Risk
σP = w 2σ 2X + (1 − w )2 σ 2Y + 2w(1- w)σ XY
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 19
Portfolio Example
Investment X: μX = 50 σX = 43.30
Investment Y: μY = 95 σY = 193.21
σXY = 8250
The portfolio return and portfolio variability are between the values
for investments X and Y considered individually
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 20
Probability Distributions
Probability
Distributions
Binomial Normal
Poisson Uniform
Hypergeometric Exponential
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 21
Binomial Probability Distribution
◼ A fixed number of observations, n
◼ e.g., 15 tosses of a coin; ten light bulbs taken from a warehouse
◼ Each observation is categorized as to whether or not the
“event of interest” occurred
◼ e.g., head or tail in each toss of a coin; defective or not defective
light bulb
◼ Since these two categories are mutually exclusive and
collectively exhaustive
◼ When the probability of the event of interest is represented as π,
then the probability of the event of interest not occurring is 1 - π
◼ Constant probability for the event of interest occurring
(π) for each observation
◼ Probability of getting a tail is the same each time we toss the
coin
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 22
Binomial Probability Distribution
(continued)
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 23
Possible Applications for the
Binomial Distribution
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 25
Counting Techniques
Rule of Combinations
n!
n Cx =
x! (n − x)!
where:
n! =(n)(n - 1)(n - 2) . . . (2)(1)
x! = (X)(X - 1)(X - 2) . . . (2)(1)
0! = 1 (by definition)
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 26
Counting Techniques
Rule of Combinations
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 27
Binomial Distribution Formula
n! x n−x
P(X=x |n,π) = π (1-π)
x! (n − x )!
n!
P(X = 1 | 5,0.1) = x (1 − ) n − x
x! (n − x)!
5!
= (0.1)1 (1 − 0.1)5−1
1!(5 − 1)!
= (5)(0.1)(0.9) 4
= 0.32805
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 29
The Binomial Distribution
Example
Suppose the probability of purchasing a defective
computer is 0.02. What is the probability of
purchasing 2 defective computers in a group of 10?
x = 2, n = 10, and π = 0.02
n!
P(X = 2 | 10, 0.02) = x (1 − ) n − x
x! (n − x)!
10!
= (.02) 2 (1 − .02)10− 2
2!(10 − 2)!
= (45)(.0004)(.8508)
= .01531
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 30
The Binomial Distribution
Shape
P(X=x|5, 0.5)
.6
.4
◼ Here, n = 5 and π = .5 .2
0
0 1 2 3 4 5 x
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 31
The Binomial Distribution Using
Binomial Tables (Available On Line)
n = 10
x … π=.20 π=.25 π=.30 π=.35 π=.40 π=.45 π=.50
0 … 0.1074 0.0563 0.0282 0.0135 0.0060 0.0025 0.0010 10
1 … 0.2684 0.1877 0.1211 0.0725 0.0403 0.0207 0.0098 9
2 … 0.3020 0.2816 0.2335 0.1757 0.1209 0.0763 0.0439 8
3 … 0.2013 0.2503 0.2668 0.2522 0.2150 0.1665 0.1172 7
4 … 0.0881 0.1460 0.2001 0.2377 0.2508 0.2384 0.2051 6
5 … 0.0264 0.0584 0.1029 0.1536 0.2007 0.2340 0.2461 5
6 … 0.0055 0.0162 0.0368 0.0689 0.1115 0.1596 0.2051 4
7 … 0.0008 0.0031 0.0090 0.0212 0.0425 0.0746 0.1172 3
8 … 0.0001 0.0004 0.0014 0.0043 0.0106 0.0229 0.0439 2
9 … 0.0000 0.0000 0.0001 0.0005 0.0016 0.0042 0.0098 1
10 … 0.0000 0.0000 0.0000 0.0000 0.0001 0.0003 0.0010 0
Examples:
n = 10, π = 0.35, x = 3: P(X = 3|10, 0.35) = 0.2522
n = 10, π = 0.75, x = 8: P(X = 8|10, 0.75) = 0.2816
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 32
Binomial Distribution
Characteristics
Mean
μ = E(X) = n
◼
σ = n (1 - )
2
σ = n (1 - )
Where n = sample size
π = probability of the event of interest for any trial
(1 – π) = probability of no event of interest for any trial
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 33
The Binomial Distribution
Characteristics
Examples
P(X=x|5, 0.1)
μ = nπ = (5)(.1) = 0.5 .6
.4
σ = nπ (1 - π ) = (5)(.1)(1− .1) .2
0
= 0.6708 0 1 2 3 4 5 x
P(X=x|5, 0.5)
μ = nπ = (5)(.5) = 2.5 .6
.4
σ = nπ (1 - π ) = (5)(.5)(1− .5) .2
0
= 1.118 0 1 2 3 4 5 x
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 34
Both Excel & Minitab Can Be Used To Calculate
The Binomial Distribution
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 35
The Poisson Distribution
Definitions
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 36
The Poisson Distribution
◼ Apply the Poisson Distribution when:
◼ You wish to count the number of times an event
occurs in a given area of opportunity
◼ The probability that an event occurs in one area of
opportunity is the same for all areas of opportunity
◼ The number of events that occur in one area of
opportunity is independent of the number of events
that occur in the other areas of opportunity
◼ The probability that two or more events occur in an
area of opportunity approaches zero as the area of
opportunity becomes smaller
◼ The average number of events per unit is (lambda)
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 37
Poisson Distribution Formula
−
e x
P( X = x | ) =
x!
where:
x = number of events in an area of opportunity
= expected number of events
e = base of the natural logarithm system (2.71828...)
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 38
Poisson Distribution
Characteristics
Mean
μ=λ
◼
σ2 = λ
σ= λ
where = expected number of events
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 39
Using Poisson Tables
(Available On Line)
e − λ λ x e −0.50(0.50) 2
P(X = 2 | 0.50) = = = 0.0758
x! 2!
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 40
Excel & Minitab Can Be Used For The
Poisson Distribution
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 41
Graph of Poisson Probabilities
Graphically:
= 0.50
=
X 0.50
0 0.6065
1 0.3033
2 0.0758
3 0.0126
4 0.0016
5 0.0002
6 0.0000
P(X = 2 | =0.50) = 0.0758
7 0.0000
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 42
Poisson Distribution Shape
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 43
The Hypergeometric Distribution
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 44
The Hypergeometric Distribution
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 45
Hypergeometric Distribution
Formula
E N − E
[ E Cx ][ N − E Cn − x ] x n − x
P(X = x | n, N, E) = =
N Cn N
n
Where
N = population size
E = number of items of interest in the population
N – E = number of events not of interest in the population
n = sample size
x = number of items of interest in the sample
n – x = number of events not of interest in the sample
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 46
Properties of the
Hypergeometric Distribution
N-n
Where is called the “Finite Population Correction Factor”
N -1
from sampling without replacement from a
finite population
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 47
Using the
Hypergeometric Distribution
■ Example: 3 different computers are checked out from
10 in the department. 4 of the 10 computers have illegal
software loaded. What is the probability that 2 of the 3
selected computers have illegal software loaded?
N = 10 n=3
A=4 x=2
E N − E 4 6
−
P(X = 2 | 3,10,4) = = 2 1 = (6)(6) = 0.3
X n X
N 10 120
n 3
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 49
Chapter 5 On Line Topic
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 50
Chapter Summary
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 51
Chapter 5
The Poisson
Approximation to the
Binomial Distribution --
On Line Topic
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 52
Learning Objective
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 53
Poisson Approximation to the
Binomial Distribution
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 54
Poisson Approximation to the
Binomial Distribution
(continued)
nπ ≥ 5
and
n(1 – π) ≥ 5
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 55
Poisson Approximation to the
Binomial Distribution
(continued)
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 56
Using the Poisson Approximation
to the Binomial Distribution
◼ If n = 1000 and π = 0.2, what is P(X ≤ 180)?
◼ Approximate P(X ≤ 180 | 1000, 0.2) using a continuity
correction adjustment:
P(X ≤ 180.5)
◼ Transform to standardized normal:
X − nπ 180.5 − (1000)(0.2)
Z= = = −1.54
nπ (1 − π ) (1000)(0.2)(1 − 0.2)
180.5 200 X
-1.54 0 Z
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 57
Summary
Copyright © 2015, 2012, 2009 Pearson Education, Inc. Chapter 05, Slide 58