4 - Discrete Random Variables & Probability Distributions
4 - Discrete Random Variables & Probability Distributions
CHAPTER OUTLINE
3.1 Probability Distributions and 3.6 Geometric Distributions
Probability Mass Functions 3.8 Poisson Distribution
3.2 Cumulative Distribution
Functions
3.3 Mean and Variance of a
Discrete Random Variable
3.4 Discrete Uniform Distribution
3.5 Binomial Distribution
Chapter 3 Contents
Copyright © 2019 John Wiley & Sons, Inc. All Rights Reserved 2
Learning Objectives for Chapter 3
After careful study of this chapter, you should be able to do the following:
1. Determine probabilities from probability mass functions and the reverse.
2. Determine probabilities and probability mass functions from cumulative
distribution functions and the reverse.
3. Calculate means and variances for discrete random variables.
4. Understand the assumptions for discrete probability distributions.
5. Select an appropriate discrete probability distribution to calculate
probabilities.
6. Calculate probabilities and determine means and variances for some
common discrete probability distributions.
Copyright © 2019 John Wiley & Sons, Inc. All Rights Reserved 3
Probability Distributions
• A random variable is a function that assigns a real number to
each outcome in the sample space of a random experiment.
• The probability distribution of a random variable 𝑋 is a
description of the probabilities associated with the possible
values of 𝑋.
• A discrete random variable has a probability distribution that
specifies the list of possible values of 𝑋 along with the probability
of each, or it can be expressed in terms of a function or formula.
(2) σ𝑛𝑖=1 𝑓 𝑥𝑖 = 1
(3) 𝑓 𝑥𝑖 = 𝑃(𝑋 = 𝑥𝑖 )
Note
𝑓 −2 = 0.2 − 0 = 0.2 Even if the random variable 𝑋 can assume only
𝑓 0 = 0.7 − 0.2 = 0.5 integer values, the cumulative distribution
𝑓 2 = 1.0 − 0.7 = 0.3 function is defined at non-integer values.
Copyright © 2019 John Wiley & Sons, Inc. All Rights Reserved 13
Expected Value of a Function of a Discrete Random
Variable
• If 𝑋 is a discrete random variable with probability mass function
𝑓(𝑥), then
𝐸[ℎ(𝑥)] = ℎ(𝑥)𝑓(𝑥)
𝑥
• The variance can be considered as an expected value of a
specific function of 𝑋, namely, ℎ 𝑋 = 𝑋 − 𝜇 2
Copyright © 2019 John Wiley & Sons, Inc. All Rights Reserved 14
Example 3.9 | Digital Channel
• In Example 3.7, 𝑋 is the number of bits received in error of the
next 4 transmitted.
• The probabilities are shown in the table in the 𝑓 𝑥 column.
• What is the expected value of the square of the number of bits
in error?
• ℎ 𝑋 = 𝑋2
Copyright © 2019 John Wiley & Sons, Inc. All Rights Reserved 15
Famous Types of Discrete Random Variables:
(1) Discrete Uniform Distribution
Copyright © 2019 John Wiley & Sons, Inc. All Rights Reserved 16
Mean and Variance of Discrete Uniform Distribution
Copyright © 2019 John Wiley & Sons, Inc. All Rights Reserved 17
Example 3.11 | Number of Voice Lines
Let the random variable 𝑋 denote the number of the 48 voice
lines that are in use at a particular time. Assume that 𝑋 is a
discrete uniform random variable with a range of 0 to 48. Find
𝐸(𝑋) and 𝜎.
Practical Interpretation
The average number of lines in use is 24, but the
dispersion (as measured by 𝜎) is large. Therefore, at
many times far more or fewer than 24 lines are used.
Copyright © 2019 John Wiley & Sons, Inc. All Rights Reserved 18
(2) Binomial Distribution
An experiment is said to be a binomial experiment if
1. The experiment is performed a fixed number of times. Each
repetition of the experiment is called a trial.
2. The trials are independent. This means the outcome of one trial
will not affect the outcome of the other trials.
3. For each trial, there are two mutually exclusive (or disjoint)
outcomes, success or failure.
4. The probability of success is fixed for each trial of the
experiment. Copyright @ 2019 John Wiley & Sons, Inc. All Rights Reserved
19
(2) Binomial Distribution (contd.)
Notations:
• There are n independent trials of the experiment.
• Let p denote the probability of success so that 1 – p is the
probability of failure.
• The random variable 𝑋 that equals the number of trials that
result in a success out of 𝑛 trials is a binomial random variable
with parameters 0 < 𝑝 < 1 and 𝑛 = 1, 2, … .
Copyright @ 2019 John Wiley & Sons, Inc. All Rights Reserved
20
(2) Binomial Distribution (contd.)
• The probability mass function is:
𝑛
𝑓 𝑥 = 𝑥
𝑝𝑥 1 − 𝑝 𝑛−𝑥 = 𝐶𝑥𝑛 𝑝 𝑥 1 − 𝑝 𝑛−𝑥 , for 𝑥 = 0, 1, … , 𝑛
Remember:
10 10! 10 ⋅ 9 ⋅ 8 ⋅ 7!
= = = 120
3 3! 7! 3 ⋅ 2 ⋅ 1 ⋅ 7!
15 15! 15 ⋅ 14 ⋅ 13 ⋅ 12 ⋅ 11 ⋅ 10!
= = = 3,003
10 10! 5! 5 ⋅ 4 ⋅ 3 ⋅ 2 ⋅ 1 ⋅ 10!
Copyright © 2019 John Wiley & Sons, Inc. All Rights Reserved 21
Example 3.15a | Organic Pollution
Each sample of water has a 10% chance of containing a particular
organic pollutant. Assume that the samples are independent with
regard to the presence of the pollutant. Find the probability that, in the
next 18 samples, exactly 2 contain the pollutant.
Answer: Let 𝑋 denote the number of samples that contain the
pollutant in the next 18 samples analyzed. Then 𝑋 is a binomial
random variable with 𝑝 = 0.1 and 𝑛 = 18.
18
𝑃 𝑋=2 = 0.12 1 − 0.1 18−2 = 153 0.1 2 0.9 16 = 0.2835
2
In Microsoft Excel®, use the BINOMDIST function to calculate
𝑃 𝑋 = 2 by 𝐁𝐈𝐍𝐎𝐌𝐃𝐈𝐒𝐓(𝟐, 𝟏𝟖, 𝟎. 𝟏, 𝐅𝐀𝐋𝐒𝐄)
Sec 3.5 Binomial Distribution
Copyright © 2019 John Wiley & Sons, Inc. All Rights Reserved 22
Example 3.15b | Organic Pollution
Determine the probability that at least 4 samples contain the
pollutant.
Answer: The problem calls for calculating 𝑃 𝑋 ≥ 4 but is easier
to calculate the complementary event, 𝑃 𝑋 ≤ 3 , so that:
3
18
𝑃 𝑋 ≥4 =1− 0.1𝑥 0.9 18−𝑥
𝑥
𝑥=0
= 1 − 0.150 + 0.300 + 0.284 + 0.168 = 0.098
In Microsoft Excel®, use the BINOMDIST function to calculate
𝑃 𝑋 ≥ 4 by = 𝟏 − 𝐁𝐈𝐍𝐎𝐌𝐃𝐈𝐒𝐓(𝟑, 𝟏𝟖, 𝟎. 𝟏, 𝐓𝐑𝐔𝐄)
Sec 3.5 Binomial Distribution
Copyright © 2019 John Wiley & Sons, Inc. All Rights Reserved 23
Example 3.15c | Organic Pollution
Determine the probability that 3 ≤ 𝑋 < 7.
Answer:
6
18
𝑃 3≤𝑋<7 = 0.1𝑥 0.9 18−𝑥
𝑥
𝑥=3
= 0.168 + 0.070 + 0.022 + 0.005 = 0.265
In Microsoft Excel®, use the BINOMDIST function to calculate
𝑃 3≤𝑋<7 by 𝐁𝐈𝐍𝐎𝐌𝐃𝐈𝐒𝐓 𝟔, 𝟏𝟖, 𝟎. 𝟏, 𝐓𝐑𝐔𝐄 −
𝐁𝐈𝐍𝐎𝐌𝐃𝐈𝐒𝐓(𝟐, 𝟏𝟖, 𝟎. 𝟏, 𝐓𝐑𝐔𝐄)
Sec 3.5 Binomial Distribution Appendix A, Table II (pp. A-5 to A-7) presents cumulative binomial
tables (for selected values of 𝑝 and 𝑛) that will simplify calculations.
Copyright © 2019 John Wiley & Sons, Inc. All Rights Reserved 24
Binomial Mean and Variance
If 𝑋 is a binomial random variable with parameters 𝑝 and 𝑛,
• The mean of 𝑋 is:
𝜇 = 𝐸(𝑋) = 𝑛𝑝
• The variance of 𝑋 is:
𝜎2 = 𝑉(𝑋) = 𝑛𝑝(1 − 𝑝)
Copyright © 2019 John Wiley & Sons, Inc. All Rights Reserved 25
Example 3.16 | Binomial Mean and Variance
For the number of transmitted bits received in error in Example
3.13, 𝑛 = 4 and 𝑝 = 0.1 . Find the mean and variance of the
binomial random variable.
Answer:
𝜇 = 𝐸 𝑋 = 𝑛𝑝 = 4 ⋅ 0.1 = 0.4
Copyright © 2019 John Wiley & Sons, Inc. All Rights Reserved 26
(3) Geometric Distribution
• Binomial distribution has
• Fixed number of trials
• Random number of successes
• Geometric distribution has reversed roles
• Random number of trials
• Fixed number of successes, in this case 1
The mean number of bits transmitted until the next error, after
50 bits have already been transmitted, is 1/0.1 = 10, the same
result as the mean number of bits until the first error.
Copyright © 2019 John Wiley & Sons, Inc. All Rights Reserved 33
Example 3.27a | Wire Flaws
• Assume that flaws occur at random along the length of a thin
copper wire. Let 𝑋 denote the random variable that counts the
number of flaws in a length of 𝑇 mm of wire and suppose that
the average number of flaws is 2.3 per mm. Find the probability
of exactly 10 flaws in 5 mm of wire.
Answer:
Let 𝑋 denote the number of flaws in 5 mm of wire. Then 𝑋 has the Poisson
distribution with . Therefore,
Copyright © 2019 John Wiley & Sons, Inc. All Rights Reserved 34
Example 3.27b | Wire Flaws
• Find the probability of at least 1 flaw in 2 mm of wire.
Answer:
Copyright © 2019 John Wiley & Sons, Inc. All Rights Reserved 35
Poisson Mean and Variance
• The mean and variance of the Poisson model are the same.
• For example, if particle counts follow a Poisson distribution with a mean of
25 particles per square centimeter, the variance is also 25 and the
standard deviation of the counts is 5 per square centimeter.
• If the variance of a data is much greater than the mean, then the Poisson
distribution would not be a good model for the distribution of the random
variable.
Sec 3.8 Poisson Distribution
Copyright © 2019 John Wiley & Sons, Inc. All Rights Reserved 36
Important Terms & Concepts of Chapter 3
• Lack of memory property—discrete random
• Binomial distribution
variable
• Cumulative distribution function—
• Mean—discrete random variable
discrete random variable
• Poisson distribution
• Discrete uniform distribution
• Probability distribution—discrete random
• Expected value of a function of a
variable
discrete random variable
• Probability mass function
• Geometric distribution
• Standard deviation—discrete random
variable
• Variance—discrete random variable
Chapter 3 Important Terms and Concepts Copyright © 2019 John Wiley & Sons, Inc. All Rights Reserved 37