This exercise set contains some solved exercises on the computation of the coefficient of linear correlation between two random variables. The theory needed to solve these exercises is introduced in the lecture entitled Linear correlation.
Let
be a
discrete random vector and denote its
components by
and
.
Let the support of
be:
and
its joint probability mass function
be:
Compute the coefficient of linear correlation between
and
.
The support of
is:
and
its marginal probability mass function
is:
The
expected value of
is:
The
expected value of
is:
The
variance of
is:
The
standard deviation of
is:
The
support of
is:
and
its marginal probability mass function
is:
The
expected value of
is:
The
expected value of
is:
The
variance of
is:
The
standard deviation of
is:
Using
the transformation theorem, we can compute
the expected value of
:
Hence,
the covariance between
and
is:
and
the coefficient of linear correlation between
and
is:
Let
be a
discrete random vector and denote its entries by
and
.
Let the support of
be:
and
its joint probability mass function
be:
Compute the covariance between
and
.
The support of
is:
and
its marginal probability mass function
is:
The
mean of
is:
The
expected value of
is:
The
variance of
is:
The
standard deviation of
is:
The
support of
is:
and
its probability mass function
is:
The
mean of
is:
The
expected value of
is:
The
variance of
is:
The
standard deviation of
is:
The
expected value of the product
can
be derived using the transformation
theorem:
Therefore,
putting pieces together, the covariance between
and
is:
and
the coefficient of linear correlation between
and
is:
Let
be an absolutely continuous random vector
with support:
and
let 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
can be obtained by integrating
out of the joint probability density as
follows:
Thus,
the marginal probability density function of
is:
The
expected value of
is:
The
expected value of
is:
The
variance of
is:
The
standard deviation of
is:
The
support of
is:
When
,
the marginal probability density function of
is
,
while, when
,
the marginal probability density function of
can be obtained by integrating
out of the joint probability density as
follows:
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
is:
The
variance of
is:
The
standard deviation 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:
and
the coefficient of linear correlation between
and
is: