Very simple question about trace

69 Views Asked by At

In MSE in econometrics,
$$\mathrm{MSE}=E\| \hat{\theta}-\theta \|^2$ $=E(\hat{\theta}-\theta)'(\hat{\theta}-\theta)$$

$$=E(\hat{\theta}-E\hat{\theta}+E\hat{\theta}-\theta)'(\hat{\theta}-E\hat{\theta}+E\hat{\theta}-\theta)$$

$$=E(\hat{\theta}-E\hat{\theta})'(\hat{\theta}-E\hat{\theta})+(E\hat{\theta}-\theta)'(E\hat{\theta}-\theta)$$

$$=\operatorname{tr}(\operatorname{Var}(\hat{\theta}))+\| E\hat{\theta}-\theta \|^2$$

Here, why the last trace term appeared?

1

There are 1 best solutions below

0
On BEST ANSWER

Note that: $$ E(\hat{\theta}-E(\hat{\theta}))^\prime E(\hat{\theta}-E(\hat{\theta}))=E\begin{bmatrix}\hat{\theta}_1-E(\hat{\theta}_1),&\dots,&\hat{\theta}_n-E(\hat{\theta}_n)\end{bmatrix}\begin{bmatrix}\hat{\theta_1}-E(\hat{\theta}_1)\\\vdots\\ \hat{\theta}_n-E(\hat{\theta}_n)\end{bmatrix}=\sum_{i=1}^nV(\hat{\theta}_i) $$

This is the diagonal of the variance covariance matrix of the coefficients. The trace operator gives you just that - the sum of the diagonal elements.