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

  • Thread starter Dustinsfl
  • Start date
In summary: This result allows us to find the covariance of any linear combination of ##X## and ##Y## without having to explicitly calculate ##E[X^2]##, ##E[XY]##, or ##E[Y^2]##.
  • #1
Dustinsfl
2,281
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
  • #2
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
[tex] \text{Cov}(S,T) = E(ST) - (ES)(ET) [/tex]
for any random variables ##S,T## having finite first and second moments.
 

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

1. What does "Cov(W,Z) where W=X and Z = aX+Y" mean?

"Cov(W,Z) where W=X and Z = aX+Y" refers to the covariance between two variables, W and Z, where W is equal to the variable X and Z is equal to the sum of a times X and another variable Y.

2. How is the covariance between W and Z calculated in this scenario?

The covariance between W and Z can be calculated using the formula: Cov(W,Z) = E[(W-E[W])(Z-E[Z])], where E[W] and E[Z] are the expected values of W and Z, respectively. In this case, the expected value of W is equal to the expected value of X, and the expected value of Z is equal to a times the expected value of X plus the expected value of Y.

3. What does a positive covariance between W and Z indicate?

A positive covariance between W and Z indicates that the two variables tend to increase or decrease together. In other words, when the value of W is above its expected value, the value of Z is also likely to be above its expected value, and vice versa.

4. What does a negative covariance between W and Z indicate?

A negative covariance between W and Z indicates that the two variables tend to move in opposite directions. In other words, when the value of W is above its expected value, the value of Z is likely to be below its expected value, and vice versa.

5. How is the covariance affected when the value of a changes?

The covariance between W and Z will change if the value of a changes. If a is positive, the covariance will increase in magnitude if a increases, and decrease in magnitude if a decreases. If a is negative, the covariance will decrease in magnitude if a increases, and increase in magnitude if a decreases. However, the direction of the covariance (positive or negative) will remain the same regardless of the value of a.

Similar threads

  • Calculus and Beyond Homework Help
Replies
4
Views
178
  • Calculus and Beyond Homework Help
Replies
18
Views
2K
  • Calculus and Beyond Homework Help
Replies
2
Views
396
  • Calculus and Beyond Homework Help
Replies
3
Views
952
  • Calculus and Beyond Homework Help
Replies
1
Views
822
Replies
11
Views
2K
  • Calculus and Beyond Homework Help
Replies
2
Views
797
  • Calculus and Beyond Homework Help
Replies
7
Views
810
  • Calculus and Beyond Homework Help
Replies
8
Views
296
  • Calculus and Beyond Homework Help
Replies
2
Views
1K
Back
Top