One of the key ways to describe a random variable is using its expectation (or expected value). Essentially, the expected value is the
result of taking many realizations of the random variable, and then
averaging the results.
B&T has a nice explanation. Suppose you are playing a game where
you are spinning a wheel; there are four possible outcomes, k =
1, 2, 3, 4, with payoffs of
$100 if k = 1, $50 if k = 2, $25 if k = 3, $0 if k = 4.
For every spin, the probability that the wheel has outcome k is pk .
Now, how much money can you expect to make per spin?
If we spun the wheel N times, the total amount of money you make
is 100 n1 + 50 n2 + 25 n3 + 0 n4, where nk is the number of times
the wheel landed on k. We could then compute the average amount
earned on each spin as
100 n1 + 50 n2 + 25 n3 + 0 n4
.
M=
K
As K gets large, we expect that
n1
n2
n3
n4
P (k = 1) ,
P (k = 2) ,
P (k = 3) ,
P (k = 4) ,
K
K
K
K
(after all, what do probabilities mean if not this?) This motivates
the definition of the expected payout as
E[X] = 100 p1 + 50 p2 + 25 p3 + 0 p4.
Definition: The expectation of a random variable X with pmf
pX (x) is
X
x pX (x).
E[X] =
x
12
ECE 3077 Notes by J. Romberg
Important Point:
The expectation of X is not random, it is a completely deterministic function of the pmf of X.
pX (x) =
x/10 for x = 1, 2, 3, 4
0
otherwise.
Calculate E[X].
13
ECE 3077 Notes by J. Romberg
pX (k) = e
k
k!
k = 0, 1, 2, . . . .
Then
E[X] =
ke
k=0
=e
=e
k
k!
k
k
k!
k=1
k
(k 1)!
k=1
= e
k=1
k1
(k 1)!
0
= e
k0!
k 0 =0
= ee
= .
14
ECE 3077 Notes by J. Romberg
15
ECE 3077 Notes by J. Romberg
6 X
1
6 X
1
E[X] = 2
k 2= 2
= .
k=1 k
k=1 k
pX (x) =
16
ECE 3077 Notes by J. Romberg
17
ECE 3077 Notes by J. Romberg
Variance
After the mean, the most important quantity associated with a random variable is its variance:
var(X) = E[(X E[X])2].
Notice that since (X E[X])2 0, the variance is always nonnegative:
var(X) 0
Related to the variance is the standard deviation:
q
var(X)
X =
The variance and the standard deviation are measures of the dispersion of X around its mean. We will use both, but X is often easier
to interpret since it has the same units as X. (For example, if X is
in feet, the var(X) is in feet2 while X is also in feet.)
Example: Let X be a Bernoulli random variable, with
(
pX (k) =
1p k =0
.
p
k=1
Then
E[X] = p,
18
ECE 3077 Notes by J. Romberg
19
ECE 3077 Notes by J. Romberg
20
ECE 3077 Notes by J. Romberg
21
ECE 3077 Notes by J. Romberg