Consider two independently distributed sets of complex Gaussian random variables $\{{X}_{i}\}^{N}_{i=1}$ and $\{{Y}_{i}\}^{N}_{i=1}$ with mean zero and variances as $\sigma^{2}_{x}$ and $\sigma^{2}_{y}$ respectively. I have calculated the value as shown below. Can someone please help verifying it.
$E[|\sum^{N}_{i=1}X^{*}_{i}Y_{i}|^{2}]$ =$ E[|\mathbf{X}^{\mathit{H}}\mathbf{Y}|^{2}]$=$N\sigma^{2}_{x}\sigma^{2}_{y}$
I did it this way:
$\begin{align*} E[\sum^{N}_{i=1}|X^{*}_{i}Y_{i}|^{2}] &= E[|\mathbf{X}^{H}\mathbf{Y}|^{2}] =E[{(\mathbf{X}^{H}\mathbf{Y})(\mathbf{Y}^{H}\mathbf{X})}] \\ &=E{[\mathrm{tr}(\mathbf{X}^{H}\mathbf{Y}\mathbf{Y}^{H}\mathbf{X})]} =E{[\mathrm{tr}(\mathbf{Y}\mathbf{Y}^{H}\mathbf{X}\mathbf{X}^{H})]} =\mathrm{tr}[E(\mathbf{Y}\mathbf{Y}^{H}\mathbf{X}\mathbf{X}^{H})] \\&=\mathrm{tr}[E(\mathbf{Y}\mathbf{Y}^{H})E(\mathbf{X}\mathbf{X}^{H})] \\&=\mathrm{tr}(\sigma^{2}_{y}\mathbf{I}_{N}\sigma^{2}_{x}\mathbf{I}_{N}) \\&=\sigma^{2}_{x}\sigma^{2}_{y}\mathrm{tr}(\mathbf{I}_{N}) \\&=N\sigma^{2}_{x}\sigma^{2}_{y} \end{align*} $