Application Exercise

  1. Open Rstudio Server Pro
  2. Create a new project
  3. Click File > New File > R Markdown
  4. Delete everything except for
---
title: "Untitled"
output: html_document
---
  1. Give your work a sensible title

  2. After adding your derivation to the file (remember you can incorporate \(\LaTeX\) by wrapping in $$), knit it.

  3. When you’ve finished, upload the .html file to Canvas

  4. Distribute (FOIL / get rid of the parentheses) the RSS equation

\[RSS = (\mathbf{y} - \mathbf{X}\hat\beta)^T(\mathbf{y}-\mathbf{X}\hat\beta)\]

  1. Solve \(\frac{\partial RSS}{\partial\hat\beta} =\)

  2. Solve for \(\hat\beta\)

\[-2\mathbf{X}^T\mathbf{y}+2\mathbf{X}^T\mathbf{X}\hat\beta = 0\]