1.6. Density and Mass Functions
Definition 1.6.1 (Probability Mass Function)
The probability mass function (pmf) of a discrete random variable X is given by fX(x) = P (X = x) for all x.
Example 1.6.2 (Geometric probabilities)
For the geometric distribution of Example 1.5.4, we have the pmf
fX(x) = P (X = x) =
(1 − p)x−1p for x = 1, 2, . . .
0 otherwise.
From this example, we see that a pmf gives us “point probability”. In the discrete case, we can sum over values of the pmf to get the cdf. The analogous procedure in the continuous case is to substitute integrals for sums, and we get
P (X ≤ x) = FX(x) = Z x
−∞
fX(t)dt.
Using the Fundamental Theorem of Calculus, if fX(x) is continuous, we have the further relationship
d
dxFX(x) = fX(x).
Definition 1.6.3 (Probability Density Function)
The probability density function or pdf, fX(x), of a continuous random variable X is the function that satisfies
FX(x) = Z x
−∞
fX(t)dt for all x. (1)
A note on notation : The expression “X has a distribution given by FX(x)” is abbreviated symbolically by “X ∼ FX(x)”, where we read the symbol “∼” as “is distributed as”. We can similarly write X ∼ fX(x) or, if X and Y have the same distribution, X ∼ Y .
1
In the continuous case we can be somewhat cavalier about the specification of interval probabilities. Since P (X = x) = 0 if X is a continuous random variable,
P (a < X < b) = P (a < X ≤ b) = P (a ≤ X < b) = P (a ≤ X ≤ b).
Example 1.6.4 (Logistic probabilities) For the logistic distribution, we have
FX(x) = 1 1 + e−x, hence, we have
fX(x) = d
dxFX(x) = e−x (1 + e−x)2, and
P (a < X < b) = FX(b) − FX(a)
= Z b
−∞
fX(x)dx − Z a
−∞
fX(x)dx
= Z b
a
fX(x)dx.
Theorem 1.6.5
A function FX(x) is a pdf (or pmf) of a random variable X if and only if a. FX(x) ≥ 0 for all x.
b. P
xfX(x) = 1 (pmf) or R∞
−∞fX(x)dx = 1 (pdf).
Proof: If fX(x) is a pdf (or pmf), then the two properties are immediate from the defini- tions. In particular, for a pdf, using (1) and Theorem 1.5.3, we have that
1 = lim
x→∞FX(x) = Z ∞
−∞
fX(t)dt.
The converse implication is equally easy to prove. Once we have fX(x), we can define FX(x) and appeal to Theorem 1.5.3. Theorem 1.5.3 is the Theorem in Lecture note 5 on cumulative distribution function. ¤
2