I was able to derive the MSE, but there's a part of the derivation which I don't really get. Here's what I got:
Facts:
- $\mathbb{E}(\hat{\beta})=\hat{\beta}\space$ (unbiased estimator)
- $\text{Cov}(\hat{\beta})= \sigma^2[(X^TX)^{-1}] $
By definition,
$$MSE = \mathbb{E}[||\hat{\beta}-\beta||^2] $$ $$= \space \mathbb{E}[(\hat{\beta}-\beta)^T(\hat{\beta}-\beta)]$$ Since $\hat{\beta}$ is unbiased, $$ \boldsymbol{= \text{tr}[\text{Cov}(\hat{\beta})]} *$$ $$= \text{tr}[\sigma^2(X^T X)^{-1}]$$ $\sigma^2$ is a scalar so it can be factored out, $$= \sigma^2 tr[(X^T X)^{-1}] $$
My confusion is line $*$, where I'm not sure how we got equation $ \text{tr}[\text{Cov}(\hat{\beta})] $. Here's what I understand so far:
Through Bias-Variance Decomposition, $$ \space \mathbb{E}[(\hat{\beta}-\beta)^T(\hat{\beta}-\beta)]=\mathbb{V}(\hat{\beta})+[\mathbb{E}(\hat{\beta})-\beta]^T[\mathbb{E}(\hat{\beta})-\beta]$$ Our estimator is unbiased so $\mathbb{E}(\hat{\beta})-\beta= 0$. Thus, $$\mathbb{E}[(\hat{\beta}-\beta)^T(\hat{\beta}-\beta)]=\mathbb{V}(\hat{\beta})$$
- First, $\mathbb{V}(\hat{\beta})$ is supposed to be a scalar which doesn't really make sense to me, which brings me to my next question...
- I assume that $V(\hat{\beta}) = \text{tr}[\text{Cov}(\hat{\beta})]$. Why is that?