4 Random Variables
4 Random Variables
4 Random Variables
Faculty of Engineering
Electrical and Electronics Engineering Department
Salma Elkawafi
[email protected]
In random experiments with outcomes that are not numerical, it is very useful to map outcomes to
numerical values. For example, in a coin toss experiment : 𝐻 → 1 𝑎𝑛𝑑 𝑇 → 0.
Random Variables
If a sample space contains a finite number If a sample space contains an infinite
of possibilities or an unending sequence number of possibilities equal to the
with as many elements as there are whole number of points on a line segment, it
numbers, it is called a discrete sample is called a continuous sample space.
space.
A Random variable whose set of
Random variable X is discrete if the set of possible values is an entire interval of
all possible values of X (that is, the range of numbers is not discrete. When a
the function represented by X, denoted X, is random variable can take on values
countable. on a continuous scale, it is called a
continuous random variable.
Discrete Random Variables
The probability function, probability mass function (PMF): دالة الثقل االحتمالي أو تابع الكثافة االحتمالية
The function
𝑝 𝑥𝑘 = 𝑃𝑋 𝑥𝑘 = 𝑃(𝑋 = 𝑥𝑘 ), 𝑓𝑜𝑟 𝑘 = 1,2,3, … ,
is called the probability mass function (PMF) of 𝑋.
The set of ordered pairs (𝑥, 𝑝(𝑥)) is called the probability function or probability mass
function, of the discrete random variable 𝑋.
4
𝑝 1 =
16
6
𝑝 2 =
16
4
𝑝 3 =
16 Probability Mass Function Plot Probability Histogram
1
𝑝 4 =
16
Random Variables
For example, An experiment consists of tossing two fair coins. Letting 𝑌 denotes the
number of heads appearing. 𝑌 is RV with possible values 0,1,2 with respective
probabilities
1
𝑝 0 = 𝑃 𝑌=0 =4
1
𝑝 1 = 𝑃(𝑌 = 1) = 2
𝑦 0 1 2
𝑝(𝑦) 1 1 1
4 2 4
Discrete Random Variables
The probability function, probability mass function
Assuming that 1 fair coin was tossed twice, we find that the sample space for
our experiment is 𝑆 = {𝐻𝐻, 𝐻𝑇, 𝑇𝐻, 𝑇𝑇}.
Since the 4 sample points are all equally likely, it follows that
1
𝑃 𝑋 = 0 = 𝑃 𝑇𝑇 =
4
1
𝑃(𝑋 = 1) = 𝑃(𝑇𝐻) + 𝑃(𝐻𝑇) =
2
1
𝑃(𝑋 = 2) = 𝑃(𝐻𝐻) =
4
Therefore,
1 1 1
𝜇 = 𝐸 𝑋 = 0 ∗ + 1 ∗ + 2 ∗ = 1
4 2 4
This result means that a person who tosses 2 coins over and over again will, on the average, get 1
head per toss.
Discrete Random Variables
Expected Value:
Solution:
1
Since 𝑝 1 = 𝑝 2 = 𝑝 3 = 𝑝 4 = 𝑝 5 = 𝑝 6 = 6
, we obtain
1 1 1 1 1 1 7
𝐸 𝑋 = 1× + 2× + 3× + 4× + 5× + 6× =
6 6 6 6 6 6 2
Discrete Random Variables
The Variance and Standard Deviation:
Another quantity of great importance in probability and statistics is called the variance
and is defined by
𝑛
2
Var 𝑋 = 𝜎 2 = 𝐸 𝑋 − 𝜇 2 = 𝑥𝑗 − 𝜇 𝑝(𝑥𝑗 )
𝑗=1
The variance is a nonnegative number. The positive square root of the variance is
called the standard deviation and is given by
𝜎𝑋 = 𝜎 = Var 𝑋 = 𝐸[ 𝑋 − 𝜇 2 ]
• 𝜎2 = 𝐸 𝑋 − 𝜇 2 = 𝐸 𝑋2 − 𝐸 𝑋 2 = 𝐸 𝑋 2 − 𝜇2
The variance of a sum of independent variables equals the sum of their variances.
Solution:
𝑛
2
Var 𝑋 = 𝜎 2 = 𝐸 𝑋 2 − 𝜇2 = 𝑥𝑗 − 𝜇 𝑝(𝑥𝑗 )
𝑗=1
1 7
Since 𝑝 1 = 𝑝 2 = 𝑝 3 = 𝑝 4 = 𝑝 5 = 𝑝 6 = 6 and 𝐸 𝑋 = 2
2 2
1 2
1 2
1 2
1 2
1 2
1 1
𝐸 𝑋 = 1 × + 2 × + 3 × + 4 × + 5 × + 6 × = × 91
6 6 6 6 6 6 6
Hence,
2
2 2
91 7 35
Var 𝑋 = 𝐸 𝑋 − 𝐸 𝑋 = − =
6 2 12
Discrete Random Variables
Discrete random variables are often classified according to their probability
mass functions. In this course we consider some of these random variables,
including:
𝑝(0) = 𝑃{𝑋 = 0} = 1 − 𝑝,
𝑝(1) = 𝑃{𝑋 = 1} = 𝑝
Thus, the expected number of successes in a single trial is just the probability that the
trial will be a success.
𝑉𝑎𝑟[𝑋] = 𝑝(1 − 𝑝)
Discrete Random Variables
The Binomial Random Variable /Binomial distribution:
Suppose that 𝑛 independent trials, each of which results in a “success” with probability
𝑝 and in a “failure” with probability 1 − 𝑝, are to be performed. If 𝑋 represents the
number of successes that occur in the 𝑛 trials, then X is said to be a binomial random
variable with parameters 𝑏 𝑥, 𝑛, 𝑝 , 𝐵𝑖𝑛𝑜𝑚𝑖𝑎𝑙 𝑛, 𝑝 .
The probability mass function of a binomial random variable having parameters
𝑏(𝑥, 𝑛, 𝑝).is given by:
𝑛 𝑥
𝑝 𝑥 = 𝑃𝑋 𝑥 = 𝑝 1 − 𝑝 𝑛−𝑥 , 𝑥 = 0, 1, . . . , 𝑛
𝑥
Discrete Random Variables
The Binomial Random Variable /Binomial distribution:
Mean 𝝁 = 𝒏𝒑
Variance 𝝈𝟐 = 𝒏𝒑(𝟏 − 𝒑)
Standard Deviation 𝝈= 𝒏𝒑(𝟏 − 𝒑)
Discrete Random Variables
Example:
Four fair coins are flipped. If the outcomes are assumed independent, what is the
probability that two heads and two tails are obtained?
Solution:
𝑛 𝑥 𝑛−𝑥 ,
𝑝 𝑥 = 𝑃𝑋 𝑥 = 𝑝 1 −𝑝 𝑥 = 0, 1, . . . , 𝑛
𝑥
Letting 𝑋 equal the number of heads (“successes”) that appear, then 𝑋 is a binomial
1
random variable with parameters (𝑥 = 2, 𝑛 = 4, 𝑝 = 2).
Hence,
2 2
4 1 1 3
𝑃 𝑋 = 2 = =
2 2 2 8
Discrete Random Variables
Example:
It is known that any item produced by a certain machine will be defective with
probability 0.1, independently of any other item. What is the probability that in a sample
of three items, at most one will be defective?
Solution:
𝑛 𝑥 𝑛−𝑥
𝑝 𝑥 = 𝑃𝑋 𝑥 = 𝑝 1 −𝑝 , 𝑥 = 0, 1, . . . , 𝑛
𝑥
3 0 3
3 1 2
𝑃 𝑋 = 0 + 𝑃 𝑋 = 1 = 0.1 0.9 + 0.1 0.9 = 0.972
0 1
Discrete Random Variables
The Geometric Random Variable / Geometric distribution:
𝑝 𝑛 = 𝑃{𝑁 = 𝑛} = 1 − 𝑝 𝑛−1 𝑝, 𝑛 = 1, 2, . . .
Random Variables
For example, Suppose that we toss a coin having a probability 𝑝 of coming up heads.
Letting 𝑁 denotes the number of flips required to obtain head, then assuming that the
outcome of successive flips are independent, 𝑁 is a RV taking on one of the values
1,2,3,…,𝑛 with respective probabilities
𝑝 1 = 𝑃(𝑁 = 1) = 𝑝
𝑝 2 = 𝑃(𝑁 = 2) = 1 − 𝑝 𝑝
𝑝 3 = 𝑃 𝑁 = 3 = 1 − 𝑝 2𝑝
.
.
.
𝑛−1 𝑝
𝑝 𝑛 = 𝑃 𝑁 =𝑛 = 1− 𝑝
Probability mass function plot
Discrete Random Variables
Example:
(Expectation of a Geometric Random Variable)
Calculate the expectation of a geometric random variable having parameter 𝑝.
Solution:
∞ ∞ ∞
𝑑
𝐸 𝑁 = 𝑛𝑝 1 − 𝑝 𝑛−1 = 𝑝 𝑛𝑞 𝑛−1 = 𝑝 𝑞 𝑛
𝑑𝑞
𝑛=1 𝑛=1 𝑛=1
∞
𝑑 𝑛
𝑑 𝑞 𝑝 1
=𝑝 𝑞 =𝑝 = 2 =
𝑑𝑞 𝑑𝑞 1 − 𝑞 1−𝑞 𝑝
𝑛=1
1−𝑝
𝑉𝑎𝑟 𝑁 =
𝑝2
Discrete Random Variables
The Poisson Random Variable/ Poisson distribution:
A random variable 𝑋 ∼ 𝑃𝑜𝑖𝑠𝑠𝑜𝑛(𝜆) , taking on one of the values 0, 1, 2, . . . , is said to be
a Poisson
random variable with parameter 𝜆, if for some 𝜆 > 0,
𝜆𝑥
𝑝 𝑥; 𝜆 = 𝑃 𝑋 = 𝑥 = 𝑒 −𝜆
, 𝑥 = 0, 1, . . .
𝑥!
where 𝜆 is the average number of outcomes per unit time, distance, area, or
volume and 𝑒 = 2.71828 . . . .
The Poisson distribution is one of the most widely used probability distributions.
It is usually used in scenarios where we are counting the occurrences of certain
events in an interval of time or space.
Counting the number of customers who visit a certain store from 1pm to 2pm
Based on data from previous days, we know that on average λ=15 customers visit the
store.
Discrete Random Variables
The Poisson Random Variable/ Poisson distribution:
Mean 𝝁=𝝀
Variance 𝝈𝟐 = 𝝀
Standard Deviation 𝝈= 𝝀
Discrete Random Variables
Example:
Suppose that the number of typographical errors on a single page of this course has a
Poisson distribution with parameter 𝜆 = 1. Calculate the probability that there is at
least one error on this page.
Solution:
𝜆 𝑥
𝑝 𝑥; 𝜆 = 𝑃 𝑋 = 𝑥 = 𝑒 −𝜆 , 𝑥 = 0, 1, . . .
𝑥!
Solution:
𝜆 𝑥
𝑝 𝑥; 𝜆 = 𝑃 𝑋 = 𝑥 = 𝑒 −𝜆 , 𝑥 = 0, 1, . . .
𝑥!
4 6
𝑝 6; 4 = 𝑒 −4 = 0.1042.
6!
Continuous Random Variables
• A continuous random variable has a probability of 0 of assuming exactly any of its
values.
• Its probability distribution cannot be given in tabular form.
• In dealing with continuous variables, 𝑓(𝑥) is usually called the probability density
function (PDF), or simply the density function, of 𝑋.
Continuous Random Variables
Probability Density Function
The function 𝑓(𝑥) is a probability density function (pdf) for the continuous random
variable 𝑋, defined over the set of real numbers, if
Note : 𝑃(𝑎 < 𝑋 ≤ 𝑏) = 𝑃(𝑎 < 𝑋 < 𝑏) + 𝑃(𝑋 = 𝑏) = 𝑃(𝑎 < 𝑋 < 𝑏).
Continuous Random Variables
Example
Suppose that the error in the reaction temperature, in 𝐶 ° , for a controlled laboratory
experiment is a continuous random variable X having the probability density function.
𝑥2
𝑓 𝑥 = ቐ3 , −1 < 𝑥 < 2
0, elsewhere
(a) Verify that 𝑓(𝑥) is a density function.
(b) Find 𝑃(0 < 𝑋 ≤ 1)
Solution
∞ 2 𝑥2 𝑥3 2 8 1
a)
−∞
𝑓 𝑥 𝑑𝑥 = −1 𝑑𝑥 = ȁ−1 = + = 1
3 9 9 9
1 1𝑥 2 𝑥3 1 1
b) 𝑃 0 < 𝑋 ≤ 1 = 0 𝑓 𝑥 𝑑𝑥 = 0 𝑑𝑥 = ȁ0 =
3 9 9
Continuous Random Variables
Cumulative Distribution Function
𝑑𝐹(𝑥)
𝑓 𝑥 =
𝑑𝑥
𝑃 𝑎 <𝑋 <𝑏 =𝐹 𝑏 −𝐹 𝑎
Continuous Random Variables 𝑥2
𝑓 𝑥 = ቐ3 , −1 < 𝑥 < 2
0, elsewhere
Example
For the density function of the previous example. Find 𝐹(𝑥), and use it to evaluate
𝑃(0 < 𝑋 ≤ 1).
Solution
𝑥 𝑥
𝑡2 𝑡3 𝑥 𝑥3 + 1
F 𝑥 = න 𝑓 𝑡 𝑑𝑡 = න 𝑑𝑡 = ቚ =
−∞ −1 3 9 −1 9
0, 𝑥 < −1
𝑥3 + 1
𝐹 𝑥 = , −1 < 𝑥 < 2
9
1, 𝑥 ≥2
2 1 1
𝑃 0<𝑋 ≤1 =𝐹 1 −𝐹 0 = − =
9 9 9
which agrees with the result obtained by using the density function example
Continuous Random Variables
Expected Value
Let 𝑋 be a continues random variable with probability distribution 𝑓(𝑥). The mean, or
expected value, of 𝑋 is
∞
𝜇 = 𝐸 𝑋 = න 𝑥𝑓 𝑥 𝑑𝑥
−∞
Let 𝑋 be a continues random variable with probability distribution 𝑓(𝑥) and mean 𝜇.
The variance of 𝑋 is
∞
𝜎2 = 𝐸[ 𝑋 − 𝜇 2] =න 𝑥 − 𝜇 2 𝑓 𝑥 𝑑𝑥
−∞
2
𝜎 = 𝐸(𝑋 ) − 𝜇2 .
2
The positive square root of the variance, 𝜎, is called the standard deviation of 𝑋.
Continuous Random Variables
Example
The weekly demand for a drinking-water product, in thousands of liters, from a local chain of
efficiency stores is a continuous random variable X having the probability density
2 𝑥−1 , 1 <𝑥< 2
𝑓 𝑥 = ቊ
0, elsewhere
Find the mean and variance of X.
Solution
∞ 2
𝑥3 𝑥 2 2 5
𝜇 = 𝐸 𝑋 = න 𝑥𝑓 𝑥 𝑑𝑥 = න 𝑥 ∗ 2 𝑥 − 1 𝑑𝑥 = 2( − ) ቚ =
−∞ 1 3 2 1 3
2 4 3
2 2
𝑥 𝑥 2 17
𝐸 𝑋 = න 2 ∗ 𝑥 𝑥 − 1 𝑑𝑥 = 2( − ) ቚ =
1 4 3 1 6
2
2 2 2
17 5 1
𝜎 =𝐸 𝑋 −𝜇 = − =
6 3 8
Continuous Random Variables
Continuous random variables are often classified according to their
probability distribution functions. In this course we consider some of these
random variables, including:
The density function of the continuous uniform random variable X on the interval
[𝐴, 𝐵] is
1
, A ≤𝑥≤B
𝑓 𝑥 = 𝑓(𝑥; 𝐴, 𝐵) = ቐ (𝐵 − 𝐴)
0, elsewhere
Continuous Random Variables
The Uniform distribution (Rectangular distribution)
4
1 1
𝑃 𝑥≥3 = න 𝑑𝑥 =
3 4 4
Continuous Random Variables
The Exponential distribution
• The continuous random variable 𝑋 has an exponential distribution, with parameter
𝜆 > 0 , if its density function is given by;
−𝜆𝑥
𝑓 𝑥 = 𝑓 𝑥; 𝜆 = ቊ 𝜆𝑒 , 𝑥>0
0, 𝑒𝑙𝑠𝑒𝑤ℎ𝑒𝑟𝑒,
The mean and variance of the exponential distribution are
1 1
𝜇 = 𝜆 and 𝜎 2 = 𝜆2
The cumulative distribution function 𝐹(𝑥) of an exponential random variable is given by
𝑎 𝑎
−𝜆𝑥 −𝜆𝑥
𝐹 𝑥 = 𝑃 𝑋 ≤ 𝑎 = න 𝜆𝑒 𝑑𝑥 = − 𝑒 ቚ = 1 − 𝑒 −𝜆𝑎
0 0
Continuous Random Variables
The Exponential distribution
Example:
Based on extensive testing, it is determined that the time 𝑌 in years before a major repair is required for
a certain washing machine is characterized by the density function.
1 −𝑦
𝑓(𝑦) = ቐ 4 𝑒 , 𝑦 >0
4
0, 𝑒𝑙𝑠𝑒𝑤ℎ𝑒𝑟𝑒,
1
Note that 𝑌 is an exponential random variable with 𝜆 = . The machine is considered a bargain if it is
4
unlikely to require a major repair before the sixth year. What is the probability 𝑃(𝑌 > 6)?
Solution:
𝐹 𝑦 = 𝑃 𝑌 ≤ 𝑦 = 1 − 𝑒 −𝜆𝑦
6
−4
𝑃 𝑌 >6 =1−𝑃 𝑌 ≤6 =1−𝐹 6 =1− 1 −𝑒 = 0.2231
Continuous Random Variables
The Normal distribution
• The most important continuous probability distribution in the entire field of statistics
is the normal distribution.
• Its graph, called the normal curve, or bell-shaped curve which approximately
describes many phenomena that occur in nature, industry, and research.
• Often referred to as the Gaussian distribution, in honor of Karl Friedrich Gauss
1 𝑥−𝜇 2
−
𝑓 𝑥 = 𝑓 𝑥; 𝜇, 𝜎 = 𝑁 𝑥; 𝜇, 𝜎 = 𝑒 2𝜎2 , −∞ < 𝑥 < ∞
2𝜋 𝜎
with mean 𝜇 and variance 𝜎 2,
This integral does not have a closed form solution. Nevertheless, because of the
importance of the normal distribution, the values of 𝐹(𝑧) have been tabulated and many
calculators and software packages have this function. We usually denote the standard
normal CDF by Φ.
𝐹 𝑧 =Φ(z)
Next table indicates
the area under
the standard normal
curve corresponding to
𝑃(𝑍 < 𝑧) for values of
𝑧 ranging from
−3.49 to 3.49.
𝑃(𝑍 < 1.74) = 0.9591
Continuous Random Variables
The Normal distribution
Example
Given a standard normal distribution, find the area
under the curve that lies
(a) to the right of 𝑧 = 1.84 and
(b) between 𝑧 = −1.97 and 𝑧 = 0.86.
Solution:
(a) The area in (a) to the right of 𝑧 = 1.84 is equal to 1 minus the area
in The table to the left of 𝑧 = 1.84, namely, 1 − 0.9671 = 0.0329.
(b) The area in Figure (b) between 𝑧 = −1.97 and 𝑧 = 0.86 is equal to the
area to the left of 𝑧 = 0.86 minus the area to the left of z = −1.97. From the table we find
the desired area to be 0.8051 − 0.0244 = 0.7807.
Continuous Random Variables
The Normal distribution
Example:
Given a random variable 𝑋 having a normal distribution with 𝜇 = 50 and 𝜎 = 10, find
the probability that 𝑋 assumes a value between 45 and 62.
Solution:
The z values corresponding to x1 = 45 and x2 = 62 are
45 − 50 62 − 50
𝑧1 = 10 = −0.5 and 𝑧2 = 10 = 1.2.
𝑃(−0.5 < 𝑍 < 1.2) is shown by the area of the shaded region in the Figure
Using the 𝑍 Table we have
𝑃(45 < 𝑋 < 62) = 𝑃(−0.5 < 𝑍 < 1.2) = 𝑃(𝑍 < 1.2) − 𝑃(𝑍 < −0.5)
= 0.8849 − 0.3085 = 0.5764.
Discrete Random Variables
𝐹 𝑥 = 𝑃 𝑋 ≤ 𝑥 = 𝑝 𝑡 , 𝑓𝑜𝑟 − ∞ < 𝑥 < ∞
𝑡≤𝑥
𝑃 𝑎<𝑋 ≤𝑏 =𝐹 𝑏 −𝐹 𝑎
𝑃 𝑋 > 𝑥 = 1 − 𝑃 𝑋 ≤ 𝑥 = 1 − 𝐹(𝑥)
Exercise:
Let 𝑋 be a discrete random variable with range 1,2,3, … Suppose the 𝑃𝑋 𝑘 is given by
1
𝑃𝑋 𝑘 = 𝑘 , 𝑘 = 1,2,3, …
2
Using CDF, Find a) Find 𝑃 2 < 𝑋 ≤ 5 , b) Find 𝑃(𝑋 > 4).
Solution
𝐹𝑜𝑟 𝑥 < 1, 𝐹(𝑥) = 0.
1
𝐹𝑜𝑟 1 ≤ 𝑥 < 2, 𝐹(𝑥) = 𝑝(1) = .
2
1 1 3
𝐹𝑜𝑟 2 ≤ 𝑥 < 3, 𝐹(𝑥) = 𝑝(1) + 𝑝(2) = + = .
2 4 4
In general, we have
𝐹(𝑥) = 𝑝(1) + 𝑝(2) + ⋯ + 𝑝(𝑘)
1 1 1 2𝑘 −1
= + + ⋯+ = .
2 4 2𝑘 2𝑘
Discrete Random Variables
Exercise: Cont.
Let 𝑋 be a discrete random variable with range 1,2,3, … Suppose the 𝑃𝑋 𝑘 is given by
1
𝑃𝑋 𝑘 = 𝑘 , 𝑘 = 1,2,3, …
2
Using CDF, Find a) Find 𝑃 2 < 𝑋 ≤ 5 , b) Find 𝑃(𝑋 > 4).
Solution
2𝑘 −1
𝐹(𝑥) = .
2𝑘
31 3 7
a) 𝑃 2 < 𝑋 ≤ 5 = 𝐹 5 − 𝐹 2 = 32 − 4 = 32
15 1
b) 𝑃 𝑋 > 4 = 1 − 𝑃 𝑋 ≤ 4 = 1 − 𝐹 4 = 1 − 16 = 16 .
Discrete Random Variables
Exercise:
Suppose that a game is to be played with a single die assumed fair. In this game a
player wins $20 if a 2 turns up, $40 if a 4 turns up; loses $30 if a 6 turns up; while the
player neither wins nor loses if any other face turns up. Find the expected sum of money
to be won
Solution:
Let 𝑋 be the random variable giving the amount of money won on any toss. Therefore,
the expected value or expectation is
1 1 1 1 1 1
𝐸 𝑋 =0 + 20 +0 + 40 +0 + −30 =5
6 6 6 6 6 6
It follows that the player can expect to win $5.
Discrete Random Variables
Exercise:
A school class of 120 students is driven in 3 buses to a symphonic performance. There
are 36 students in one of the buses, 40 in another, and 44 in the third bus. When the
buses arrive, one of the 120 students is randomly chosen. Let X denote the number of
students on the bus of that randomly chosen student, and find 𝐸[𝑋].
Solution:
36 40 44
𝑃 𝑋 = 36 = , 𝑃 𝑋 = 40 = , 𝑃 𝑋 = 44 =
120 120 120
Hence,
3 1 11 1208
𝐸 𝑋 = 36 + 40 + 44 = = 40.2667
10 3 30 30
Discrete Random Variables
Exercise:
Let the random variable 𝑋 represent the number of defective parts for a machine when
3 parts are sampled from a production line and tested. The following is the probability
distribution of 𝑋. Find the Variance of 𝑋
Solution:
𝜎 2 = 𝐸 𝑋 2 − 𝜇2
55 1
The probability that we win money is given by σ3𝑖=1 𝑃 𝑋 = 𝑖 = =
165 3
Discrete Random Variables
Exercise
𝑐𝜆𝑖
The probability mass function of a random variable X is given by 𝑝 𝑖 = ,𝑖 = 0,1,2, . .
𝑖!
where 𝜆 is some positive value. Find a) 𝑃 𝑋 = 0 and b) 𝑃 𝑋 > 2
Solution
Since σ∞
𝑖=0 𝑝 𝑖 = 1
𝑐𝜆 𝑖
σ∞
𝑖=0 𝑖! =1
𝑥 𝑖
Because 𝑒𝑥 = σ∞
𝑖=0 𝑖! implies that 𝑐 = 𝑒 −𝜆
hence :
𝑒 −𝜆 𝜆0
a) 𝑃 𝑋=0 = 0!
= 𝑒 −𝜆
b) 𝑃 𝑋 > 2 = 1 − 𝑃 𝑋 ≤ 2 = 1 − 𝑃 𝑋 = 0 − 𝑃 𝑋 = 1 − 𝑃 𝑋 = 2 = 1 − e−𝜆
𝑒 −𝜆 𝜆2
− 𝜆𝑒 −𝜆 − 2
Discrete Random Variables
Exercise
A stockroom clerk returns three safety helmets at random to three steel mill employees
who had previously checked them. If Smith, Jones, and Brown, in that order, receive one
of the three hats, list the sample points for the possible orders of returning the helmets,
and find the value 𝑚 of the random variable 𝑀 that represents the number of correct
matches. And find the cumulative distribution function
Sample Space m
SJB 3
Solution
SBJ 1
For the random variable 𝑀, the cumulative distribution function is
BJS 1
0, 𝑓𝑜𝑟 𝑚 < 0
1
JSB 1
3
, 𝑓𝑜𝑟 0 ≤ 𝑚 < 1 JBS 0
𝐹 𝑚 = 5 BSJ 0
, 𝑓𝑜𝑟 1 ≤ 𝑚 < 3
6
1, 𝑓𝑜𝑟 𝑚 ≥ 3