Postscript version of this page
STAT 801 Lecture 2
Reading: Ch. 1, 2 and 4 of Casella
and Berger.
Goals of Today's Lecture:
- Describe multivariate change of variables.
- Introduce marginal densities, independence.
Today's notes
So far: defined probability space, real and vector valued random
variables cdfs in R1 and Rp,
discrete densities and densities
for random variables with absolutely continuous distributions.
Started distribution theory: for Y=g(X) with X and Y
each real valued
Take d/dy to compute the density
Often can differentiate without doing integral.
Method 2: Change of variables.
Assume g is one to one.
I do: g is increasing and differentiable.
Interpretation of density (based on density = ):
and
Now assume y=g(x). Then
Each probability is integral of a density. The first is the
integral of the density of Y over the small interval from y=g(x) to
.
The interval is narrow so fY is
nearly constant and
Since g has a derivative the difference
and we get
Same idea applied to
gives
so that
or, cancelling the
in the limit
If you remember y=g(x) then you get
Or solve y=g(x) to get x in terms of y,
that is,
x=g-1(y) and then
This is just the change of variables formula for doing integrals.
Remark: For g decreasing
but Then
the interval
is really
so
that
.
In both cases this amounts to the formula
Example:
or
Let
or
.
Solve :
or
g-1(y) = ey. Then
and
Hence
For any y, ey > 0 so indicator = 1.
So
Define
and
;
then,
Extreme Value density with location parameter
and scale parameter .
(Note: several distributions are called
Extreme Value.)
Marginalization
Simplest multivariate problem:
,
Y=X1 (or in general any Xj).
Theorem 1
If
X has density
then
(with
q <
p) has density
is the marginal density of
and fXthe joint density of X but
they are both just densities.
``Marginal'' just to
distinguish from the joint density of X.
Example The function
f(x1,x2) = Kx1x21(x1> 0,x2 >0,x1+x2 < 1)
is a density provided
The integral is
so K=24.
The marginal density of x1 is
This is a
density.
General problem has
with
.
Case 1: q>p. Y won't have density
for ``smooth'' g. Y will have a singular or discrete distribution.
Problem rarely of real interest.
(But, e.g., residuals have singular distribution.)
Case 2: q=p. We use a
change of variables
formula which generalizes the one derived above for the
case p=q=1. (See below.)
Case 3: q < p.
Pad out Y-add on p-q more variables (carefully chosen)
say
.
Find functions
.
Define for ,
and
Choose gi so that we can use change of variables on
to compute fZ. Find fYby integration:
Change of Variables
Suppose
with
having density fX.
Assume g is a one to one (``injective") map, that is,
g(x1) = g(x2) if and only if x1 = x2.
Find fY as follows:
Step 1: Solve for x in terms of y:
x=g-1(y).
Step 2: Use basic equation:
fY(y) dy =fX(x) dx
and rewrite it in the form
Interpretation of derivative
when p>1:
which is the so called Jacobian. Equivalent formula inverts
the matrix:
This notation means
but with x replaced by the corresponding value of y, that is, replace x by
g-1(y).
Example: The density
is the standard bivariate normal density. Let
Y=(Y1,Y2) where
and
is angle
from the positive x axis to the ray from the origin to the point (X1,X2).
I.e., Y is X in polar co-ordinates.
Solve for x in terms of y:
so that
It follows that
Next: marginal densities of Y1, Y2?
Factor fY as
fY(y1,y2) = h1(y1)h2(y2) where
and
Then
so marginal density of Y1 is a multiple
of h1. Multiplier makes
but in this case
so that
(Special Weibull density or Rayleigh distribution.)
Similarly
which is the Uniform(
density.
Exercise: W=Y12/2 has standard exponential
distribution. Recall: by definition U=Y12 has a
distribution on 2 degrees of freedom. Exercise: find
density.
Note: We show below factorization of density is equivalent
to independence.
Independence, conditional distributions
So far density of X specified
explicitly. Often modelling
leads to a specification in terms of marginal and conditional
distributions.
Def'n: Events A and B are independent if
(Notation: AB is the event that both A and B happen,
also written .)
Def'n: Ai,
are independent if
for any
.
Example: p=3
All these equations needed for independence!
Def'n: X and Y are
independent if
for all A and B.
Def'n:
are
independent if
for any choice of
.
Theorem
- 1.
- If X and Y are independent then
FX,Y(x,y) = FX(x)FY(y)for all x,y and
if X and Y have densities fX and fY then
(X,Y) has density
- 2.
- If
FX,Y(x,y) = FX(x)FY(y)for all x,y then X and Y are independent.
- 3.
- If (X,Y) has density f(x,y) and
functions
g and h such that
f(x,y) = g(x) h(y)for all (technically almost all) (x,y) then
X and Y are independent; each has density
given by
Richard Lockhart
2000-01-04