More on Random Variables
Expectation :: Properties :: Pairs :: Independence :: Two R.V.S. :: Functions :: Inequalities :: Conditional :: General
Expectation
When we say ''expectation,'' we mean ''average,'' the average being roughly what you would think of (i.e., the arithmetic average, as opposed to a median or mode). For a discrete r.v.
For a continuous r.v., we define the expectation as
Now a bit of technicality regarding integration, which introduces
notation commonly used. When you integrate, you are typically doing a
Riemann integral:
< x_2 < \cdots
In other words, we break up the interval into little slices and add up the vertical rectangular pieces.
Another way of writing this is to recognize that
< X \leq X_{i+1}) =
z_i(F_X(x_{i+1}) - F_X(x_i))
\end{displaymath}" border="0" height="37" width="478" />
and that in the limit, the approximation becomes exact. Note, however, that this is expressed in terms of the c.d.f., not the p.d.f., and so exists for all random variables, not just continuous ones.
This gives rise to what is known as the Riemann-Stieltjes Integral:
We write the limit as
This notation ''describes'' continuous, discrete, and mixed cases. That is,
We have defined the Riemann-Stieltjes integral in a context of
expectation. However, it has a more general definition:
When
of bounded variation
- and
continuous on
of bounded variation
continuous
In a directly analogous way we define
Now consider the r.v.
Note that
< Y \leq y_...
... \leq g^{-1}(y_{i+1})) = Pr(x_i < X
\leq x_{i+1})
\end{aligned}\end{displaymath}" border="0" height="51" width="511" />
which, in the limit is equal to
Let us put this in more familiar terms: If
One might think that finding
An interesting result is obtained through the use of indicator
functions. Let
be defined by
In other words, the indicator function indicates which its argument is in the set which is the subscripted argument.
We define a simple function as one which is a linear combination
of indicator functions: For some collection
,
This gives us a piecewise-constant function on
Note that the collection need not be disjoint. However, we can
shuffle things around to write the function as
where the
Now note that
Based on this, and the disjointness of the
There are many instances where indicator functions are used to get a ''handle'' on the probability of an event.
Now we will get a bit more technical, dealing with some issues related
to the existence of expectations. We have seen how to define
expectations for simple functions (which are random variables). But
what about more general random variables? Let
be a random
variable. We define
where the
Generalizing further, let
be an arbitrary r.v. Since the previous
result holds for non-negative random variables, let us split
:
where
Now
which is defined in every case except when
Let us examine the expectation in light of the Riemann-Stieltjes
integral. We define
This is a stronger sense of the limit than, for example
For example,
Now we will consider an example of a density where the expectation
does not exist.







![\begin{displaymath}
\boxed{E[Y] = \int_{-\infty}^\infty g(x) f_X(x) dx}
\end{displaymath}](img24_5.png)
