5probability Mass Function
5probability Mass Function
5probability Mass Function
a Discrete Random
Variable
Probability Distribution
⬗ Consists of the value a random variable
can assume and its corresponding
probability.
⬗ Describes the probability of each
specific value in a random variable.
𝟏
𝒊𝒇 𝒙 = 𝟎
𝟒
𝟏
𝒊𝒇 𝒙 = 𝟏 𝟏
𝟒 𝒊𝒇 𝒙 = 𝟎, 𝟏, 𝟐, 𝒐𝒓 𝟑
𝒇 𝒙 = 𝟏
𝒊𝒇 𝒙 = 𝟐 or 𝒇 𝒙 = 𝟒
𝟒
𝟏
𝟎, 𝒐𝒕𝒉𝒆𝒓𝒘𝒊𝒔𝒆
𝟒
𝒊𝒇 𝒙 = 𝟑
𝟎, 𝒐𝒕𝒉𝒆𝒓𝒘𝒊𝒔𝒆
“
Let f(x)=kx for x=1, 2, 3, 4.
find k so that f(x) satisfies
the two properties of being a
probability mass function.
5
More examples
⬗ Consider the pmf:
1
𝑓 𝑥 = 6 𝑥 𝑖𝑓 𝑥 ∈ {1, 2, 3}
0, 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
Show that P(X) is indeed a probability mass function
⬗ Consider the pmf:
1 2
𝑓 𝑥 = 30 𝑥 𝑖𝑓 𝑥 ∈ {1, 2, 3}
0, 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
Show that f(x) is indeed a probability mass function.
6
Expected value of a discrete
random variable
Denoted by E(X)
The weighted average of the elements
x in the support S where each element
is weighted by its respective
probability
𝐸 𝑋 = 𝑥 • 𝑓(𝑥)
7
Example
Let X be a discrete Let X be a discrete
random variable and S={0, random variable and S={
1, 2, 3} be its support. 1, 2, 3} be its support.
With the pmf of X given With the pmf of X given
below, below,
1 1
, 𝑖𝑓 𝑥 ∈ 𝑆 𝑥, 𝑖𝑓 𝑥 ∈ 𝑆
𝑓 𝑥 = 4 𝑓 𝑥 = 6
0, 𝑖𝑓 𝑥 ∈ 𝑆 0, 𝑖𝑓 𝑥 ∈ 𝑆
Compute the expected value Compute the expected value
of X of X
8
Exercise
Let f(x)=kx for x=2, 3, 4. Find k so that the function of
f(x) satisfies the two properties of a probability mass
function.
Compute the expected value.