Docsity

Properties of Discrete Random Variables: Cumulative Distribution Functions and Expectation, Study notes of Probability and Statistics

Toggle sidebar
bg1
Lecture 10
1. (Cumulative) distribution functions
Let Xbe a discrete random variable with mass function f. The (cumulative)
distribution function Fof Xis defined by
F(x) = P{X!x}.
Here are some of the properties of distribution functions:
(1) F(x)!F(y)whenever x!y; therefore, Fis non-decreasing.
(2) 1 −F(x) = P{X > x}.
(3) F(b)−F(a) = P{a < X !b}for a < b.
(4) F(x) = !y:y!xf(y).
(5) F(∞) = 1 and F(−∞) = 0. [Some care is needed]
(6) Fis right-continuous. That is, F(x+) = F(x)for all x.
(7) f(x) = F(x)−F(x−)is the size of the jump [if any] at x.
Example 10.1. Suppose Xhas the mass function
fX(x) =
1
2if x=0,
1
2if x=1,
0 otherwise.
Thus, Xhas equal chances of being zero and one. Define a new random
variable Y=2X−1. Then, the mass function of Yis
fY(x) = fX!x+1
2"=
1
2if x=−1,
1
2if x=1,
0 otherwise.
33
pf3
pf4

Partial preview of the text

Download Properties of Discrete Random Variables: Cumulative Distribution Functions and Expectation and more Study notes Probability and Statistics in PDF only on Docsity!

Lecture 10

1. (Cumulative) distribution functions

Let X be a discrete random variable with mass function f. The (cumulative) distribution function F of X is defined by

F(x) = P{X! x}.

Here are some of the properties of distribution functions: (1) F(x)! F(y) whenever x! y; therefore, F is non-decreasing. (2) 1 − F(x) = P{X > x}. (3) F(b) − F(a) = P{a < X! b} for a < b. (4) F(x) =

y: y!x f(y). (5) F(∞) = 1 and F(−∞) = 0. [Some care is needed] (6) F is right-continuous. That is, F(x+) = F(x) for all x. (7) f(x) = F(x) − F(x−) is the size of the jump [if any] at x.

Example 10.1. Suppose X has the mass function

f (^) X (x) =

1 2 if^ x^ =^ 0, 1 2 if^ x^ =^ 1, 0 otherwise.

Thus, X has equal chances of being zero and one. Define a new random variable Y = 2 X − 1. Then, the mass function of Y is

f (^) Y (x) = fX

x + 1 2

1 2 if^ x^ =^ −1, 1 2 if^ x^ =^ 1, 0 otherwise.

The procedure of this example actually produces a theorem.

Theorem 10.2. If Y = g(X) for a function g, then

f (^) Y (x) =

z: g(z)=x

fX (z).

2. Expectation

The expectation EX of a random variable X is defined formally as

EX =

x

xf(x).

If X has infinitely-many possible values, then the preceding sum must be defined. This happens, for example, if

x |x|f(x)^ <^ ∞. Also, EX^ is always defined [but could be ±∞] if P{X " 0 } = 1, or if P{X! 0 } = 1. The mean of X is another term for EX.

Example 10.3. If X takes the values ±1 with respective probabilities 1/ 2 each, then EX = 0.

Example 10.4. If X = Bin(n , p), then I claim that EX = np. Here is why:

EX =

∑^ n

k= 0

k

︷ f︸︸(k) ︷ ( n k

p k^ q n−k

∑^ n

k= 1

n! (k − 1 )!(n − k)! p

k (^) q n−k

= np

∑^ n

k= 1

n − 1 k − 1

pk−^1 q (n−^1 )−(k−^1 )

= np

n∑− 1

j= 0

n − 1 j

p j^ q (n−^1 )−j

= np,

thanks to the binomial theorem.

where C =

j= 1 (^1 /j^2 ). Then,

EX =

∑^ ∞

j= 1

j · 1 Cj^2

But P{X < ∞} =

j= 1 1 /(Cj^2 ) =^ 1.

Example 10.8 (A random variable with an undefined mean). Let X be a random with mass function,

f(x) =

Dx 2

if x = ±1, ±2,.. ., 0 otherwise,

where D =

j∈ Z { 0 } (^1 /j^2 ). Then, EX^ is undefined. If it were defined, then it would be

n,mlim→∞

∑^ −^1

j=−m

j Dj^2 +

∑^ n

j= 1

j Dj 2

D n,limm→∞

∑^ −^1

j=−m

j +

∑^ n

j= 1

j

But the limit does not exist. The rough reason is that if ∑ N is large, then N j= 1 (^1 /j)^ is very nearly ln^ N^ plus a constant (Euler’s constant). “There- fore,” if n, m are large, then  

∑^ −^1

j=−m

j +

∑^ n

j= 1

j

 (^) ≈ − ln m + ln n = ln

( (^) n m

If n = m → ∞, then this is zero; if m # n → ∞, then this goes to −∞; if n # m → ∞, then it goes to +∞.