Next: About this document ...
Lecture 14: More Functions of Random Variables
Since a statistic is a function of a vector valued random variable, it
will be useful to be able to find the distribution function, density or
probability mass function of a function of a vector valued random variable.
The general rule of thumb is that if the vector valued random variable has
a density it is best to try to find the distribution function of the statistic
in terms of this density. If the vector valued random variable is discrete,
one should try to find the probability mass function of the statistic. Rather
than preceding with generalities, let us look at some examples.
Example 1: Suppose that R has a density rR and that S = aR
+ b, where a > 0. Express the density of S in terms of the density of R.
Solution: We express the distribution function of S in terms
of the distribution function of R:

and now we change variables in the integral to
to get

so that we see that the density of S is (1/a)fR((z-b)/a). For example, if
R has a Gamma density with
, then for any b > 0, bR has a gamma
density with
.Example 2: Suppose that R and S have gamma distributions with
a common value of
. If R and S are independent find the density of R +
S.
Solution: Our first example shows we might as well assume that
the commmon value is 1. Then the vector random variable V = (R, S) has the
density

if x > 0 and y > 0, and is zero otherwise. We propose to compute
for any positive number z. Recall that
is shorthand
for

so we have to compute

by making the change of variables y = u - x in the inner integral. Since we
can now easily invert the order of integration we have

from which we see that the density of R + S must be given by
|  |
(1) |
So far we have used nothing about R and S save that they have a joint density,
so (1) holds for all ordered pairs of random variables V with
joint density fV.
Since we have additional information, we can continue with

The remaining integral is just the Beta function in disguise. Let
and we get

so

In other words, Gamma densities add if the ``
'' parameters are equal!
Here is an important application of this observation.
The Poisson process
Suppose that events occur at at random times, and the times between events
are independent random variables, each with an exponential distribution
with mean 1/b. Let Nt be the number of events observed by time t
assuming that no events have been observed at time 0. Find the probability
mass function of Nt.
Let
be the times between the arrivals.
The key is the observation that for any non-negative integer k,

so
|  |
(2) |
Since the Sj are independent and exponential we know that the sum
has a gamma distribution with
and
we have

Now one integration by parts gives

so applying (2) we see

Since Nt only takes integer values we see

so that Nt has the so-called Poisson distribution.
Example 3: Suppose that
is random sample
from a distribution with distribution function F. Put
. Find the distribution function of M(V).
Solution: Since V is a random sample its components are
independent and each component has F as its distribution function. Therefore

Application:
Suppose that V is a random sample from a uniform distribution on (1, b).
M(V) is a reasonable estimate of b. Determine if M(V) is unbiased for b.
We need to compute E[M(V)]. To do so we need the density for V to avoid using
the Law of the Unconscious Statistician and an N dimensional integral. It is
clear that the density of M(V) is zero off of the interval (1,b). On the
interval (1,b) the distribution function of each component of V is given by
F(t) = (t-1)/(b-1), so the distribution function of M(V) given by

on (1,b). Hence the density of M(V) is given by

on (1,b). Therefore
![\begin{displaymath}
E[M(V)] = \int_0^b tN\left(\frac{t-1}{b-1}\right)^{N-1}\frac{1}{b-1}\;dt
=
\frac{N}{N+1}b + \frac{1}{N+1}\end{displaymath}](img33.gif)
Hence M(V) is only assymptotically unbiased for b.

is an unbiased estimate of b. What is more, we can compute the variance of
T(V) and show that it goes to 0 like 1/N.
Next: About this document ...
Eric S Key
10/14/1998