2 - Mass Probability Function of A Discrete Random Variable
2 - Mass Probability Function of A Discrete Random Variable
Calaro
A probability distribution describes the
probability of each specific value in a random
variable. The probability distribution of a
discrete random variable is called probability
mass function (pmf). The pmf of x is denoted
by f(x) and satisfies the following two basic
properties.
a. 𝑓 𝑥 = 𝑃 𝑋 = 𝑥 ≥ ∈ 𝑡ℎ𝑒 𝑆𝑢𝑝𝑝𝑜𝑟𝑡 𝑜𝑓 𝑆
b. σ𝑥∈𝑆 𝑓(𝑥) = σ𝑥∈𝑆 𝑃 𝑋 = 𝑥 = 1
According to the first property, for every
element x in the support S, all the probabilities
must be positive and according to the second
property, the sum of all the probabilities for all
possible x values in the support S must be equal to
1. The values of the discrete random variable X
where 𝑓 𝑥 > 0 are called its mass points.
The support S of a random variable is the
set of values that the random variable can take.
It contains countably infinite number of possible
values. This means that the elements of S can be
put into one-to-one correspondence with the set of
natural numbers.
Suppose a random variable X can only take
four values (0, 1, 2, and 3). If each has equal
probability, then its probability mass function
is.
1
𝑖𝑓 𝑥 = 0 In simplified form, the pmf can be
4
1
represented as:
𝑖𝑓 𝑥 = 1
4
1 1
𝑓 𝑥 = 𝑖𝑓 𝑥 = 2 , 𝑖𝑓 𝑥 = 0, 1, 2, 𝑜𝑟 3
4 𝑓 𝑥 = ൝4
1 0, 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
4
𝑖𝑓 𝑥 = 3
0, 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒 Here, the support denoted by S, is
S = {0, 1, 2, 3}.
Let 𝑓 𝑥 = 𝑘𝑥 for 𝑥 = 1, 2, 3, 4. Find k so that
f(x) satisfies the two properties of being
probability mass function.
Solution:
4
𝑓(𝑥) = 𝑘𝑥 = 1
𝑥∈𝑆 𝑥∈𝑆
1 = 𝑘 1 + 𝑘 2 + 𝑘 3 + 𝑘(4)
1 = 1𝑘 + 2𝑘 + 3𝑘 + 4𝑘
1 = 10𝑘
1
𝑘=
10
1
a. For 𝑥 ∈ 1, 2, 3, 4 , 𝑃 𝑋 = 𝑥 = 𝑥 > 0.
10
For 𝑥 ∉ 1, 2, 3, 4 , 𝑃 𝑋 = 𝑥 = 0.
In simplified form,
1
𝑥, 𝑖𝑓 𝑥 = 1, 2, 3, 𝑜𝑟 4
𝑓 𝑥 = ቐ10
0, 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
By substitution,
1
𝑃 𝑋=1 =
10
2
𝑃 𝑋=2 =
10
3
𝑃 𝑋=3 =
10
4
𝑃 𝑋=3 =
10
Therefore, 𝑃 𝑋 ≥ 0.
b. To check that the sum of the probabilities is
1, we have:
1 2 3 4
𝑃 𝑋 = 𝑥 = + + +
10 10 10 10
10
=
10
=1
Both properties of a probability mass function
1
are satisfied. So, 𝑘 = .
10
The probabilities in example 2 can be
presented in tabular form.
x 1 2 3 4
𝑃(𝑋 = 𝑥) 1 2 3 4
10 10 10 10
A probability mass function can also be
[resented in graphical form. The probability
histogram for the probability mass function in
example 2 is show in the next slide. The values
of the random variable are plotted on the x-
axis, while their associated probabilities are
plotted on the y-axis. Rectangles with equal
width are drawn and centered on each mas
points. The heights of the rectangles are equal
to the probabilities.
Consider the pmf:
1
𝑓 𝑥 = 𝑃 𝑋 = 𝑥 = ቐ6 𝑥 𝑖𝑓 𝑥 ∈ {1, 2, 3}
0. 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒.
1 2
𝑓 𝑥 = 𝑃 𝑋 = 𝑥 = ቐ30 𝑥 𝑖𝑓 𝑥 ∈ {1, 2, 3,4}
0. 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒.