In the Derive the Hat Matrix video, I derive the hat matrix. I skip a few steps when taking the derivative of (y−Xβ)T(y−Xβ). Fill in these steps and derive the hat matrix here (using LATEX). Don’t remember all of the LATEX symbols? Here is a cheat sheet.
Start with the sum of squared residuals:
∑ϵ2=ϵTϵ=(y−Xβ)T(y−Xβ)
02-appex-hat-matrix
)---
title: "Untitled"
output: html_document
---
$$
), knit it.