Given a discrete random variable taking values in
, what is its expectation, if it exists?
Let’s suppose takes on finitely many values, i.e. the set
is finite. Denote . The expectation of
is the value that we expect
to take. In a sense, we want to obtain the “center value”
that the random variable
will take.
We can think of the center value as a “pivot” on a “balance beam”. Each
will induce a “weight” of
that tilts the beam anticlockwise, and similarly, each
will induce a “weight” of
that tilts the beam clockwise. Intuitively, the total contributions ought to cancel out, yielding the equality
Expanding the left-hand side,
Therefore,
Using measure notation and
for brevity,
where the left-hand side is well-defined if is finite. This quantity we will formally define as the expectation, if the sum exists (even if the sum is infinite).
Let be a
-valued random variable.
Definition 1. The expectation of , denoted
, is defined by
whenever the right-hand side exists.
Example 1. For , if
, then
Lemma 1. Let be a probability space and
be a random variable. Then
Whenever both sides are well-defined,
Proof. We first observe that
Hence,
Lemma 2. For any map ,
is a
-valued random variable.
Theorem 1. If exists, then
whenever both sides are well-defined.
Proof. Defining by Lemma 2, the proof and result in Lemma 1 yields
Corollary 1. Let be a
-valued random variable. For any map
,
is a
-valued random variable. Furthermore,
Furthermore, if exist, then the following hold:
,
for any
,
.
Proof. We prove the first identity for simplicity. Define . Then
where the simplifications arise from
Thankfully, all series here are valid due to linearity.
Example 2. For and
, if
, then
.
Proof. Find independent identically distributed (i.i.d.) Bernoulli random variables such that
By Corollary 1,
Example 3. Equip the finite sample with the uniform probability measure and induced random variable
. Then
Thus, the right-hand side is called the mean of the sample .
The expectation has a cousin—the covariance and its child the variance. We will discuss these ideas more in the next post.
—Joel Kindiak, 1 Jul 25, 1915H
Leave a comment