0
$\begingroup$

In the Deep Learning book at Page 146, the authors are showing that the covariance of the representation $z = W^T x$ is diagonal (Eq. 5.92 through Eq. 5.95).

The terms are conveniently arranged: $$ Var[z] = \frac{1}{m-1} Z^T Z = \frac{1}{m-1} W^T X^T X W = \ldots = \frac{1}{m-1} \Sigma^2 $$

However, I am stuck on: $$ Var[z] = \frac{1}{m-1} Z^T Z = \frac{1}{m-1} {(W^T X)}^T W^T X = \frac{1}{m-1} X^T W W^T X $$

$\endgroup$

1 Answer 1

0
$\begingroup$

So I’m not sure if I understand the question, but the thing that originally threw me off reading the book was the construction of Z.

$\mathbf z = W^T\mathbf x$ so I mistakenly assumed Z = WX, when in fact it should be Z = XW. In other words the columns of Z are the projections of the rows of X through W. Let me know if it's something else that's not clear.

$\endgroup$
1
  • $\begingroup$ Yup, that makes sense! I noticed that the equation works out when $Z = X W$, but as you said the definition of z is written as $z = W^T x$. $\endgroup$
    – borijang
    Commented Mar 25, 2023 at 15:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.