This exercise set contains some solved exercises on the computation of the covariance between absolutely continuous random variables. The theory needed to solve these exercises is introduced in the lecture entitled Covariance.
Let
be an absolutely continuous random vector
with support:
i.e.
is the set of all couples
such that
and
.
Let the joint probability density function of
be:
Compute
the covariance between
and
.
The support of
is:
thus,
when
,
the marginal probability density function of
is
,
while, when
,
the marginal probability density function of
is:
Therefore,
the marginal probability density function of
is:
The
expected value of
is:
The
support of
is:
When
,
the marginal probability density function of
is
,
while, when
,
the marginal probability density function of
is:
Therefore,
the marginal probability density function of
is:
The
expected value of
is:
The
expected value of the product
can be computed using the transformation
theorem:
Hence,
using the covariance formula, the covariance between
and
is:
Let
be an absolutely continuous random vector
with support:
and
its joint probability density function
be:
Compute
the covariance between
and
.
The support of
is:
When
,
the marginal probability density function of
is
,
while, when
,
the marginal probability density function of
is:
Putting
pieces together, the marginal probability density function of
is:
The
expected value of
is:
The
support of
is:
When
,
the marginal probability density function of
is
,
while, when
,
the marginal probability density function of
is:
We
do not explicitly compute the integral, but we write the marginal probability
density function of
as
follows:
The
expected value of
is:
The
expected value of the product
can be computed using the transformation
theorem:
Hence,
using the covariance formula, the covariance between
and
is:
Let
and
be two random variables such
that:
Compute the following
covariance:
Using bilinearity of the covariance
operator: