CO1.4 Discrete Random Variable
CO1.4 Discrete Random Variable
Variable
MATH142
Engineering Data Analysis
Course Outcome
Compute the probability distribution of a random variable for both discrete and continuous data.
• At the end of the lesson, the students are expected • Understand the assumptions for some common
to discrete probability distributions;
• Determine probabilities from the probability mass • Select an appropriate discrete probability distribution
functions and the reverse; to calculate probabilities in specific applications; and
• Determine probabilities from cumulative • Calculate probabilities, determine means and
distribution functions and cumulative distribution variances for some common discrete probability
functions from probability mass functions, and the distributions.
reverse;
• Calculate the means and variances for discrete
random variables;
Random Variables
A function that assigns a real number to each Discrete
outcome in the sample space of a random
With a finite (or countably infinite) range
experiment
•number of scratches on a surface,
proportion of defective parts among 1000
Notation tested, number of transmitted bits in error
Uppercase letter such as X
Continuous
Example: The measured value is denoted by a With an interval (either finite or infinite) of real
lowercase letter such as x = 70 milliamperes numbers for its range
For multiple values, subscripts are used •Electrical current, length, pressure,
(x1, x2, x3, …) temperature, time, voltage, weight
Random Variables
2-182/58 Decide whether a discrete or 2-183/58 Decide whether a discrete or
continuous random variable is the best model continuous random variable is the best model for
for each of the following variables: each of the following variables:
(a) The time until a projectile returns to earth.
(a) The weight of an injection-molded plastic
(b) The number of times a transistor in a part.
computer memory changes state in one (b) The number of molecules in a sample of gas.
operation.
(c) The concentration of output from a reactor.
(c) The volume of gasoline that is lost to
(d) The current in an electronic circuit.
evaporation during the filling of a gas tank.
(d) The outside diameter of a machined shaft.
(e) The number of cracks exceeding, 1.2 cm in
16 km of an interstate highway.
Discrete Random Variable
PROBABILITY MASS FUNCTION CUMULATIVE DISTRIBUTION FUNCTION
For a discrete random variable X with possible The cumulative distribution function of a
values x1, x2, …, xn, a probability mass discrete random variable X, denoted as F(x),
function is a function such that is
𝐹 𝑥 = 𝑃 𝑋 ≤ 𝑥 = σ𝑥𝑖 ≤𝑥 𝑓 𝑥𝑖 .
(1) f(xi) ≥ 0
(2) σ𝑛𝑖=1 𝑓 𝑥𝑖 = 1 For discrete random variable X, 𝐹 𝑥 satisfies
(3) f(xi) = P(X = xi) the following properties.
(1) 𝐹 𝑥 = 𝑃 𝑋 ≤ 𝑥 = σ𝑥𝑖 ≤𝑥 𝑓 𝑥𝑖
(3-1)
(2) 0 ≤ F(x) ≤ 1
(3) If x ≤ y, then F(x) ≤ F(y)
(3-2)
Mathematical Expectation of Random Variable
EXPECTED VALUE OF A FUNCTION OF A VARIANCE OF A RANDOM VARIABLE
DISCRETE RANDOM VARIABLE
𝐸ℎ 𝑋 = σ𝑥 ℎ 𝑥 𝑓 𝑥 .
STANDARD DEVIATIONOF A RANDOM
(3-4)
VARIABLE
The standard deviation of X is 𝜎 = √𝜎2.
MEAN OF A RANDOM VARIABLE
The mean or expected value of the discrete
random variable X, denoted as μ or E(X), is
𝜇 = 𝐸 𝑋 = σ𝑥 𝑥𝑓 𝑥 .
(3-3)
Mathematical Expectation of Random Variable
RULES OF EXPECTATION VARIANCE OF A RANDOM VARIABLE
1. 𝐸(𝑐) = 𝑐 𝜎2 = 𝑉 𝑋 = 𝐸 𝑋 − 𝜇 2
= σ𝑥 𝑥 − 𝜇 2 𝑓 𝑥
2. 𝐸(𝑋) = 𝜇𝑥 𝜎 2 = σ𝑥 𝑥 − 𝜇 2 𝑓 𝑥
3. 𝐸 𝑎𝑋 = 𝑎𝐸 𝑋 = 𝑎𝜇𝑥
4. 𝐸 𝑋 + 𝑏 = 𝐸 𝑋 + 𝐸 𝑏 = 𝜇𝑥 + 𝑏 𝜎 2 = 𝑥 2 − 2𝜇𝑥 + 𝜇2 𝑓 𝑥
5. 𝐸 𝑎𝑋 + 𝑏 = 𝐸 𝑎𝑋 + 𝐸 𝑏 = 𝑎𝜇𝑥 + 𝑏 𝑥
𝜎 2 = 𝐸 𝑥 2 − 𝐸 2𝜇𝑥 + 𝐸 𝜇2
6. 𝑉(𝑐) = 0 𝜎 2 = 𝐸 𝑥 2 − 2𝜇𝐸 𝑥 + 𝜇2
𝜎 2 = 𝐸 𝑥 2 − 2𝜇2 + 𝜇2
7. 𝑉(𝑋) = 𝜎𝑥2
8. 𝑉 𝑎𝑋 = 𝑎2 𝑉 𝑋 = 𝑎2 𝜎𝑥2 𝜎 2 = 𝐸 𝑥 2 − 𝜇2
9. 𝑉 𝑋 + 𝑏 = 𝑉 𝑋 = 𝜎𝑥2
10. 𝑉 𝑎𝑋 + 𝑏 = 𝑉 𝑎𝑋 = 𝑎2 𝜎𝑥2
Discrete Random Variable
3-16/69 The sample space of a random experiment
is {a, b, c, d, e, f}, and each outcome is equally
likely. A random variable is defined as follows:
outcome a b c d e f
x 0 0 1.5 1.5 2 3
Determine the probability mass function of X.
Use the probability mass function to determine the
following probabilities:
(a) P(X = 1.5) (b) P(0.5 < X < 2.7)
(c) P(X > 3) (d) P(0 ≤ X < 2)
(e) P(X = 0 or X = 2)
3-38/73 Determine the cumulative distribution
function of the random variable in Exercise 3-16.
Determine the mean and variance of the random
variable in Exercise 3-16
Guided Learning Activity
3-17/70 Verify that the following functions are
probability mass functions, and determine the
requested probabilities.
x ─2 ─1 0 1 2
f(x) 0.2 0.4 0.1 0.2 0.1
(a) P(X ≤ 2) (b) P(X > −2)
(c) P(−1 ≤ X ≤ 1) (d) P(X ≤ −1 or X = 2)
3-39/73 Determine the cumulative distribution
function for random variable and also
determine the following probabilities:
(a) P(X ≤ 1.25) (b) P(X ≤ 2.2)
(c) P(−1.1 < X ≤ 1) (d) P(X > 0)
3-59/76 Determine the mean and variance
8 1 𝑥
3-18/69 f(x) = , x = 1, 2, 3
7 2
Obtain the following probabilities
(a) P(X ≤ 1) (b) P(X > 1)
(c) P(2 < X < 6) (d) P(X ≤ 1 or X > 1)
3-40/73 Determine the cumulative distribution
function for the random variable in Exercise 3-
18; also determine the following probabilities:
(a) P(X < 2) (b) P(X ≤ 3)
(c) P(X > 2) (d) P(1 < X ≤ 2)
3-50/76 Determine the mean and variance of the
random variable in Exercise
Guided Learning Activity
2𝑥 + 1
3-19/70 f(x) = 25
, x = 0, 1, 2, 3, 4
(a) P(X = 4) (b) P(X ≤ 1)
(c) P(2 ≤ X < 4) (d) P(X > −10)
3-61/77 Determine the mean and variance.
3 1 𝑥
3-20/70 f(x) = 4 4
, x = 0, 1, 2, …
(a) P(X = 2) (b) P(X ≤ 2)
(c) P(X > 2) (d) P(X ≥ 1)
3-62/77 Determine the mean and variance.
4.17/118 Let X be a random variable with the
following probability distribution:
x −3 6 9
f(x) 1/6 1/2 1/3
Find μg(X), where g(X) = (2X + 1)2.
Guided Learning Activity
3-25/69 In a semiconductor manufacturing process,
three wafers from a lot are tested. Each wafer is
classified as pass or fail. Assume that the
probability that a wafer passes the test is 0.8 and
that wafers are independent. Determine the
probability mass function of the number of wafers
from a lot that pass the test.
3-27/70 A disk drive manufacturer sells storage
devices with capacities of one terabyte, 500
gigabytes, and 100 gigabytes with probabilities 0.5,
0.3, and 0.2, respectively. The revenues associated
with the sales in that year are estimated to be $50
million, $25 million, and $10 million, respectively.
Let X denote the revenue of storage devices during
that year. Determine the probability mass function of
X.
3-50/73 Errors in an experimental transmission
channel are found when the transmission is
checked by a certifier that detects missing pulses.
The number of errors found in an eight-bit byte is a
random variable with the following distribution:
0, 𝑥 < 1
0.7, 1 ≤ 𝑥 < 4
𝐹 𝑥 = .
0.9, 4 ≤ 𝑥 < 7
1, 7 ≤ 𝑥
Determine each of the following probabilities:
(a) P(X ≤ 4) (b) P(X > 7)
(c) P(X ≤ 5) (d) P(X > 4)
(e) P(X ≤ 2)
Guided Learning Activity
3-11/76 Messages The number of e-mail messages
received per hour has the following distribution:
x 10 11 12 13 14 15
f(x) 0.08 0.15 0.30 0.20 0.20 0.07
𝑛
𝑓 𝑥 = 𝑥
𝑝𝑥 1 − 𝑝 𝑛−𝑥
,
𝑥 = 0, 1, … , 𝑛.
(3-7)
Mean and Variance
If X is a binomial random variable with parameters p
and n,
𝜇 = 𝐸(𝑋) = 𝑛𝑝
and
𝜎2 = 𝑉(𝑋) = 𝑛𝑝(1 − 𝑝)
(3-8)
Binomial Distribution
3-94/85 The random variable X has a binomial
distribution with n = 20 and p = 0.5. Determine the
following probabilities.
(a) P(X = 5) (b) P(X ≤ 2)
(c) P(X ≥ 9) (d) P(3 ≤ X < 5)