Lesson 2_
Lesson 2_
Explore
A probability distribution describes the probability of each specific value in a random variable. The
probability distribution of a discrete random variable is called a probability mass function (pmf). The values of the
discrete random variable 𝑋 where 𝑓(𝑥) > 0 are called mass points.
Properties
The pmf of 𝑥 is denoted by 𝑓(𝑥) and satisfies the following two basic properties.
a. For every element 𝑥 in the Support 𝑆, all the probabilities must be positive.
b. The sum of all the probabilities for all possible 𝑥 values in the Support 𝑆 must be equal to 1.
∑ 𝑓(𝑥) = ∑ 𝑃(𝑋 = 𝑥) = 1
𝑥𝜖𝑆 𝑥𝜖𝑆
Example 1.
Suppose a random variable 𝑋 can only take the four values (0, 1, 2 and 3). If each value has equal
probability, what is its pmf and its Support?
Example 2.
Let 𝑓(𝑥) = 𝑘𝑥 for 𝑥 = 1, 2, 3, 4. Find the value of 𝑘 so that 𝑓(𝑥) satisfies the two properties of being a
probability mass function.
Solution:
4
∑ 𝑓(𝑥) = ∑ 𝑘𝑥 = 1
𝑥𝜖𝑆 𝑥=1
1
a. For 𝑥 ∈ {1, 2, 3,4}, 𝑃(𝑋 = 𝑥) = 10 𝑥 > 0.
For 𝑥 ∉ {1, 2, 3,4}, 𝑃(𝑋 = 𝑥) = 0.
1
𝑥, 𝑖𝑓 𝑥 = 1, 2, 3, 4
Simplifying, we have 𝑓(𝑥) = { 10
0, 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
By substitution,
1 2 3 4
𝑃(𝑋 = 1) = 10 𝑃(𝑋 = 2) = 10 𝑃(𝑋 = 3) = 10 𝑃(𝑋 = 4) = 10
Therefore, 𝑃(𝑋 = 𝑥) ≥ 0.
The expected value of a discrete random variable 𝑋, denoted by 𝐸(𝑋), is equal to the weighted average of
the elements 𝑥 in the Support 𝑆 where each element is weighted by its respective probability. To find the expected
value, we use the formula
𝐸(𝑋) = ∑ 𝑥 𝑓(𝑥)
𝑥𝜖𝑆
Example 3.
Let 𝑋 be a discrete random variable and 𝑆 = {0, 1, 2, 3} be its Support. With the pmf of 𝑋 given as
1
, 𝑖𝑓 𝑥 𝜖 𝑆
𝑓(𝑥) = { 4 Compute for the expected value of 𝑋.
0, 𝑖𝑓 𝑥 ∉ 𝑆
Solution:
𝐸(𝑋) = ∑ 𝑥 𝑓(𝑥)
𝑥𝜖𝑆
Example 4.
Let 𝑋 be a discrete random variable with Support 𝑆 = {1, 2, 3}. Compute for the expected value if the pmf
1
𝑥, 𝑖𝑓 𝑥 ∈ 𝑆
of 𝑋 is 𝑓(𝑥) = {6
0, 𝑖𝑓 𝑥 ∉ 𝑆
𝐸(𝑋) = ∑ 𝑥 𝑃(𝑋 = 𝑥)
𝑥𝜖𝑆
Your Turn!
Compute for the expected value of a discrete random variable with Support 𝑆 = {1, 2, 3}. The pmf of 𝑋 is
1
𝑥 2 , 𝑖𝑓 𝑥 𝜖 𝑆
given as 𝑓(𝑥) = {4
0, 𝑖𝑓 𝑥 ∉ 𝑆
Example 4.
A researcher surveyed the households in NHA Poblacion. The random variable 𝑋 represents the number of
college graduates in the households. The probability distribution of 𝑋 is shown below. Find the expected
value of 𝑋.
𝑥 0 1 2
𝑃(𝑥) 0.25 0.50 0.25
Solution:
𝒙 𝑷(𝒙) 𝒙𝑷(𝒙)
0 0.25 0
1 0.50 0.50
2 0.25 0.50
∑[𝑥𝑃(𝑥)] = 1.00
The expected value is 1. It means that the average number of college graduates in the household of NHA
Poblacion is one.
Your Turn!
Mang Gibo, a security guard at LBP recorded the number of people entering the bank every hour during one
working day. The random variable 𝑋 represents the number of people who entered the bank. The
probability distribution is shown below. Find the expected number of people who enters the bank every
hour.
The variance of a random variable 𝑋 is denoted by 𝜎 2 . It can also be written as 𝑉𝑎𝑟 (𝑋). The variance of a
random variable is the expected value of the square of the difference between the assumed value of random
variable and the mean.
The standard deviation (𝜎) is simply the square root of the variance.
Example 5.
Solve for the variance and standard deviation of the following probability mass function.
𝑥 𝑃(𝑥)
1 0.15
2 0.25
3 0.30
4 0.15
5 0.10
6 0.05
Solution:
Determine the variance and standard deviation of the following probability mass function.
𝑥 0 1 2 3 4
𝑃(𝑥) 0.1 0.2 0.3 0.3 0.1
1
𝑥 2, 𝑖𝑓 𝑥 ∈ {1, 2, 3, 4, 5}
2. 𝑃 (𝑋 = 𝑥) = { 55
0, 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
1
, 𝑖𝑓 𝑥 ∈ {1, 2, 3, 4, 5, 6}
3. 𝑃 (𝑋 = 𝑥) = { 6
0, 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
𝑥2
, 𝑖𝑓 𝑥 ∈ {1, 2, 3, … , 8}
5. 𝑃 (𝑋 = 𝑥) = {204
0, 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
7. Let 𝑋 be a discrete random variable with Support 𝑆 = {1, 2, 3, 4}. It’s pmf is given below. Compute for
the expected value.
1
, 𝑖𝑓 𝑥 ∈ 𝑡ℎ𝑒 𝑆𝑢𝑝𝑝𝑜𝑟𝑡 𝑆
𝑃 (𝑋 = 𝑥) = { 4
0, 𝑖𝑓 𝑥 ∉ 𝑡ℎ𝑒 𝑆𝑢𝑝𝑝𝑜𝑟𝑡 𝑆
9. Let 𝑋 be a discrete random variable with Support 𝑆 = {1, 2, 3, 4}. It’s pmf is given below. Compute for
its expected value.
𝑥
, 𝑖𝑓 𝑥 ∈ 𝑡ℎ𝑒 𝑆𝑢𝑝𝑝𝑜𝑟𝑡 𝑆
𝑃 (𝑋 = 𝑥) = {10
0, 𝑖𝑓 𝑥 ∉ 𝑡ℎ𝑒 𝑆𝑢𝑝𝑝𝑜𝑟𝑡 𝑆
10. Let 𝑋 be a discrete random variable with Support 𝑆 = {1, 2, 3, 4, 5, , 6, 7}. It’s pmf is given below.
Compute for its expected value.
1
, 𝑖𝑓 𝑥 ∈ 𝑡ℎ𝑒 𝑆𝑢𝑝𝑝𝑜𝑟𝑡 𝑆
𝑃 (𝑋 = 𝑥) = { 8
0, 𝑖𝑓 𝑥 ∉ 𝑡ℎ𝑒 𝑆𝑢𝑝𝑝𝑜𝑟𝑡 𝑆
III. Calculate for the expected value, variance and standard deviation.
Reference: