Discrete Probability Distributions
Discrete Probability Distributions
Chapter 4
Random Variable
Represents a possible numerical value from
a random experiment
Random
Variables
Examples:
4 possible outcomes
Probability Distribution
T T x Value Probability
0 1/4 = .25
T H 1 2/4 = .50
2 1/4 = .25
H T
Probability
.50
.25
H H
Copyright © 2013 Pearson Education
0 1 2 x Ch. 4-12
Probability Distribution
Required Properties
P(x) 1
x
Property 2 follows from the fact that the events “X = x,” for all
possible values of x, are mutually exclusive and collectively
exhaustive.
F(x0 ) P(X x 0 )
F(x 0 ) P(x)
xx0
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 4-18
Derived Properties
Derived properties of cumulative probability
distributions for discrete random variables
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 4-19
Basic Exercises
A: 0.18 D: 0.07
B: 0.32 E: 0.03
C: 0.25 F: 0.15
σ 2 E[X 2 ] μ2 x 2 P(x) μ2
x
σ σ 2
(x μ) P(x)
x
2
σ x
(x μ) 2
P(x)
E[g(X)] g(x)P(x)
x
σ 2
Y Var(a bX) b σ
2 2
X
A contractor is interested in the total cost of a project on which she intends to bid.
She estimates that materials will cost $25,000 and that her labor will be $900 per day.
If the project takes X days to complete, the total labor cost will be 900X dollars, and
the total cost of the project (in dollars) will be as follows:
C = 25,000 + 900X
Using her experience the contractor forms probabilities (Table 4.4) of likely
completion times for the project.
Binomial Uniform
Poisson Normal
Hypergeometric Exponential
Discrete
Probability
Distributions
Binomial
Hypergeometric
Poisson
The mean is µx = P
σ E[(X μx ) ] (x μx ) P(x)
2
x
2 2
Suppose that Shirley in Example 4.6 seeks a total of, x = 3 sales and to do
this she contacts four n = 4 potential customers. She would like to know
the probability of exactly 3 sales out of the 4 contacts. If we label a sale as
(S) and a nonsale as (F), one possible sequence that results in 3 sales
would be [S, S, S, F]. Given that each customer contact is independent, the
probability of this particular event is as follows:
4!
C
4
4
3!(4 3)!
3
n!
C
n
x! (n x)!
x
n! X nX
P(x) P (1- P)
x ! (n x )!
P(x) = probability of x successes in n trials,
with probability of success P on each trial
Example: Flip a coin four
times, let x = # heads:
x = number of ‘successes’ in sample,
n=4
(x = 0, 1, 2, ..., n)
n = sample size (number of independent P = 0.5
trials or observations) 1 - P = (1 - 0.5) = 0.5
P = probability of “success” x = 0, 1, 2, 3, 4
n!
P(x 1) P X (1 P)n X
x! (n x)!
5!
(0.1)1(1 0.1) 51
1! (5 1)!
(5)(0.1)(0 .9) 4
.32805
Copyright © 2013 Pearson Education Ch. 4-47
Shape of Binomial Distribution
The shape of the binomial distribution depends on the
values of P and n
Mean P(x) n = 5 P = 0.1
.6
Here, n = 5 and P = 0.1 .4
.2
0 x
0 1 2 3 4 5
P(x) n = 5 P = 0.5
Here, n = 5 and P = 0.5 .6
.4
.2
0 x
0 1 2 3 4 5
Copyright © 2013 Pearson Education Ch. 4-48
Mean and Variance of a
Binomial Distribution
Mean
μ E(x) nP
Variance and Standard Deviation
σ nP(1- P)
2
σ nP(1- P)
Where n = sample size
P = probability of success
(1 – P) = probability of failure
Suppose that a real estate agent, Jeanette Nelson, has 5 contacts, and
she believes that for each contact the probability of making a sale is
0.40. Using Equation 4.18, do the following:
b. Find the probability that she makes between 2 and 4 sales (inclusive).
a. What is the probability that at most 6 students will enroll if the college offers
admission to 10 more students?
b. What is the probability that more than 12 will actually enroll if admission is
offered to 20 students?
c. If the frequency of enrollment given admission for all students was 70%, what is
the probability that at least 12 out of 15 students will actually enroll?
c) The probability that at least 12 out of 15 students enroll is the same as the
probability that at most 3 out of 15 students do not enroll (the probability of a
student not enrolling is 1 - 0.70 = 0.30).
Examples:
n = 10, x = 3, P = 0.35: P(x = 3|n =10, p = 0.35) = .2522
n = 10, x = 8, P = 0.45: P(x = 8|n =10, p = 0.45) = .0229
Suppose that you are in charge of marketing airline seats for a major carrier. Four
days before the flight date you have 16 seats remaining on the plane. You know
from past experience data that 80% of the people that purchase tickets in this
time period will actually show up for the flight.
a. If you sell 20 extra tickets, what is the probability that you will overbook the
flight or have at least 1 empty seat?
b. If you sell 18 extra tickets, what is the probability that you will overbook the
flight or have at least 1 empty seat?
c. What is the probability that at least two of these components have a defect?
x P( X <= x )
0.00 0.7351
1.00 0.9672
2.00 0.9978
3.00 0.9999
4.00 1.0000
5.00 1.0000
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 4-64
4.5
The Poisson Distribution
Probability
Distributions
Discrete
Probability
Distributions
Binomial
Poisson
Hypergeometric
Mean μx E[X] λ
Variance and Standard Deviation
σ E[(X μx ) ] λ
2
x
2
σ λ
where = expected number of successes per time or space unit
Andrew Whittaker, computer center manager, reports that his computer system
experienced three component failures during the past 100 days.
e X e 0.50 (0.50) 2
P( X 2) .0758
X! 2!
Graphically: 0.60
= .50 0.50
= P(x) 0.40
X 0.50
0.30
0 0.6065
0.20
1 0.3033
2 0.0758 0.10
3 0.0126 0.00
0 1 2 3 4 5 6 7
4 0.0016
5 0.0002 x
6 0.0000
P(X = 2) = .0758
7 0.0000
0.70
= 0.50 0.25
= 3.00
0.60
0.20
0.50
0.15
0.40
P(x)
P(x)
0.30 0.10
0.20
0.05
0.10
0.00 0.00
0 1 2 3 4 5 6 7 1 2 3 4 5 6 7 8 9 10 11 12
x x
e nP (nP) x
P(x) for x 0,1,2,...
x!
Copyright © 2013 Pearson Education Ch. 4-78
Example 4.13 Probability of Bankruptcy (Poisson Probability)
An analyst predicted that 3.5% of all small corporations would file for
bankruptcy in the coming year. For a random sample of 100 small
corporations, estimate the probability that at least 3 will file for bankruptcy
in the next year, assuming that the analyst’s prediction is correct.
Discrete
Probability
Distributions
Binomial
Poisson
Hypergeometric
S! (N S)!
CSxCNnxS x! (S x)! (n x)! (N S n x)!
P(x) N
Cn N!
n! (N n)!
Where
N = population size
S = number of successes in the population
N – S = number of failures in the population
n = sample size
x = number of successes in the sample
n – x = number of failures in the sample
Copyright © 2013 Pearson Education Ch. 4-93
Using the
Hypergeometric Distribution
■ Example: 3 different computers are checked 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
S=4 x=2
Solution: To represent the market, Sally proposes to use three age groups—
16 to 25, 26 to 45, and 46 to 65—and two purchasing patterns—buy and not
buy. Next, she collects a random sample of persons for the age range 16 to
65 and records their age group and desire to purchase. The result of this data
collection is the joint probability distribution contained in Table 4.6. Table 4.6,
therefore, provides a summary of the probability of purchase and age group
that will be a valuable resource for marketing analysis.
Copyright © 2013 Pearson Education Ch. 4-100
Copyright © 2013 Pearson Education Ch. 4-101
4.7
Jointly Distributed
Discrete Random Variables
P(x, y) P(X x Y y)
The marginal probability distributions are
P(x, y)
P(y | x)
P(x)
Similarly, the conditional probability function of X, given
Y = y is:
P(x, y)
P(x | y)
P(y)
P(x, y) P(x)P(y)
for all possible pairs of values x and y
Suppose that Charlotte King has two stocks, A and B. Let X and
Y be random variables of possible percent returns (0%, 5%,
10%, and 15%) for each of these two stocks, with the joint
probability distribution given in Table 4.7.
An equivalent expression is
Cov(X, Y) E(XY) μxμy xyP(x, y) μxμy
x y
Cov(X, Y)
ρ Corr(X, Y)
σ Xσ Y
-1 ≤ ρ ≤ 1
ρ=0 no linear relationship between X and Y
ρ>0 positive linear relationship between X and Y
when X is high (low) then Y is likely to be high (low)
ρ = +1 perfect positive linear dependency
ρ<0 negative linear relationship between X and Y
when X is high (low) then Y is likely to be low (high)
ρ = -1 perfect negative linear dependency
Copyright © 2013 Pearson Education Ch. 4-114
Correlation and Independence
W aX bY
(a is the number of shares of stock A,
b is the number of shares of stock B)
Investment
P(xiyi) Economic condition Passive Fund X Aggressive Fund Y
.2 Recession - $ 25 - $200
.5 Stable Economy + 50 + 60
.3 Expanding Economy + 100 + 350
133.04
The portfolio return and portfolio variability are between the values
for investments X and Y considered individually
Copyright © 2013 Pearson Education Ch. 4-121
Interpreting the Results for
Investment Returns
μy = 95 > μx = 50
but
σy = 193.21 > σx = 43.30
a. Find the probability distribution of X and compute the mean number of tests taken
by students on that day.
b. Find the probability distribution of Y and, hence, the mean number of snacks
eaten by students on that day.
Find the mean and standard deviation of the total number of complaints
received in a week. Having reached this point, you are concerned that the
numbers of food and service complaints may not be independent of each
other. However, you have no information about the nature of their
dependence.
What can you now say about the mean and standard deviation of the total
number of complaints received in a week?