1
$\begingroup$

By minimizing the mse, we get that the unique solution to this optimizing problem is $\beta = (X^TX)^{-1}X^Ty$. Why is its variance matrix $Var(\beta)=(X^TX)^{-1}\sigma^{2}$, where we assume that the observations $y_{i}$ have constant variance $\sigma^{2}$ ?

$\endgroup$
2
  • 2
    $\begingroup$ take a look at page 5 of cs229.stanford.edu/summer2020/BiasVarianceAnalysis.pdf. But you can ignore the $\lambda I$ term if you want because that becomes 0 if you're not doing ridge regression. The key idea is that constants 'factor out' of variance or covariance, whether it be a constant scalar times a one-dimensional random variable, or a constant matrix times a random vector ($y$ in your case). In linear regression, the matrix $X$ is considered constant, or you could consider it implicitly conditional, $Var(\beta | X)$. $\endgroup$ Commented Feb 27, 2021 at 10:40
  • $\begingroup$ @MathFoliage Thank you very much for the cs229 file and the clarification. $\endgroup$
    – XXX
    Commented Feb 27, 2021 at 12:28

0

Browse other questions tagged or ask your own question.