Skip to main content
5 of 6
added 33 characters in body
Carlo Beenakker
  • 188.1k
  • 18
  • 448
  • 651

initial attempt failed, second attempt, let me calculate $\mathbb{E}[y^\top y]=\text{tr}\,\mathbb{E}[yy^\top]$ (using Isserlis theorem):

$$\mathbb{E}[y^\top y]=\sum_{ij}\mathbb{E}\bigl[A_{ij}\epsilon_j\epsilon_i\bigr]+\sum_{ijkl}\mathbb{E}\bigl[B_{ij} \epsilon_j \epsilon_l B_{kl} \epsilon_k\epsilon_i\bigr]$$ $$\qquad=\sum_{ij}A_{ij}\delta_{ij}+\sum_{ijkl}B_{ij}B_{kl}(\delta_{jl}\delta_{ki}+\delta_{ji}\delta_{lk}+\delta_{jk}\delta_{li})$$ $$\qquad=\text{tr}\,A+(\text{tr}\,B)^2+\text{tr}\,B^2+\text{tr}\,BB^\top.$$

Carlo Beenakker
  • 188.1k
  • 18
  • 448
  • 651