Cov(W,Z) where W=X and Z = aX+Y

  • Thread starter Thread starter Dustinsfl
  • Start date Start date
Click For Summary
SUMMARY

The discussion focuses on demonstrating that the covariance between two transformed random variables, W and Z, is zero. Specifically, W is defined as X, and Z is defined as aX + Y, where a is calculated as -cov(X, Y)/var(X). The solution confirms that cov(W, Z) equals zero by applying the covariance formula and simplifying the expressions. The final result shows the relationship between the covariance of X and Y and the variances involved.

PREREQUISITES
  • Understanding of covariance and variance in probability theory
  • Familiarity with random variables and their properties
  • Knowledge of mathematical expectations (E[X])
  • Ability to manipulate algebraic expressions involving random variables
NEXT STEPS
  • Study the properties of covariance and variance in detail
  • Learn about transformations of random variables and their implications
  • Explore the concept of conditional expectations and their applications
  • Investigate the use of covariance in statistical modeling and regression analysis
USEFUL FOR

Students and professionals in statistics, data science, and quantitative fields who are working with random variables and need to understand covariance transformations.

Dustinsfl
Messages
2,217
Reaction score
5

Homework Statement


If ##X## and ##Y## have a covariance of ##cov(X, Y)##, we can transform them to a new pair of random variables whose covariance is zero. To do so, we let
\begin{align*}
W &= X\\
Z &= aX + Y
\end{align*}
where ##a = -cov(X, Y)/var(X)##. Show that ##cov(W, Z) = 0##.

Homework Equations


##var(X) = E[X^2] - E^2[X]##
##cov(X, Y) = E[XY] - E[X]E[Y]##

The Attempt at a Solution


SOLVED[/B]
\begin{align*}
cov(W, Z) &= E[(W - E[W])(Z - E[Z])]\\
&= E\big[WZ - ZE[W] - WE[Z] + E[W]E[Z]\big]\\
&= E[aX^2 + XY] - E[X]E[aX + Y]\\
&= aE[X^2] + E[XY] - aE^2[X] - E[X]E[Y]\\
&= \frac{-cov(X, Y)}{var(X)}E[X^2] +
\frac{cov(X, Y)}{var(x)}E^2[X] + E[XY] - E[X]E[Y]\\
&= cov(X, Y)\bigg[\frac{E[X^2] + E^2[X]}{E[X^2] - E^2[X]}
+ 1\bigg]
\end{align*}

$$
avar(X) + cov(X, Y) = aE[X^2] + E[XY] - aE^2[X] - E[X]E[Y]
$$
So I found the error
 
Last edited:
Physics news on Phys.org
Dustinsfl said:

Homework Statement


If ##X## and ##Y## have a covariance of ##cov(X, Y)##, we can transform them to a new pair of random variables whose covariance is zero. To do so, we let
\begin{align*}
W &= X\\
Z &= aX + Y
\end{align*}
where ##a = -cov(X, Y)/var(X)##. Show that ##cov(W, Z) = 0##.

Homework Equations


##var(X) = E[X^2] - E^2[X]##
##cov(X, Y) = E[XY] - E[X]E[Y]##

The Attempt at a Solution


SOLVED[/B]
\begin{align*}
cov(W, Z) &= E[(W - E[W])(Z - E[Z])]\\
&= E\big[WZ - ZE[W] - WE[Z] + E[W]E[Z]\big]\\
&= E[aX^2 + XY] - E[X]E[aX + Y]\\
&= aE[X^2] + E[XY] - aE^2[X] - E[X]E[Y]\\
&= \frac{-cov(X, Y)}{var(X)}E[X^2] +
\frac{cov(X, Y)}{var(x)}E^2[X] + E[XY] - E[X]E[Y]\\
&= cov(X, Y)\bigg[\frac{E[X^2] + E^2[X]}{E[X^2] - E^2[X]}
+ 1\bigg]
\end{align*}

$$
avar(X) + cov(X, Y) = aE[X^2] + E[XY] - aE^2[X] - E[X]E[Y]
$$
So I found the error

It is often easier and faster to use the well-known result
\text{Cov}(S,T) = E(ST) - (ES)(ET)
for any random variables ##S,T## having finite first and second moments.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 18 ·
Replies
18
Views
3K
Replies
2
Views
1K
Replies
11
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K