Variance of epsilon in terms of hat matrix. If we have the following weighted least-squares regression with. The model under consideration is Y X β ϵ.