Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

PSet 25: Matrices and Linear Regression

(videos: up to and including Linear Regression)

  1. Invert this matrix using Gauss-Jordan elimination:

(620104201)\begin{pmatrix} 6&2&0\\ 1&0&4\\ 2&0&1\\ \end{pmatrix}

 


 


  1. Given the following data, perform linear regression. Give me the weight vector ww. Feel free to use tools to multiply and invert matrices, but show each step.

    Recall the weight vector ww equation:

    w=(XTX)1XTy\textbf{w}=(X^TX)^{-1}X^T\textbf{y}

    Here is the input XX and their values yy:

    X=(15110115120),y=(12.0618.47226.37834.724)X = \begin{pmatrix} 1 & 5\\ 1&10\\ 1&15\\ 1&20\\ \end{pmatrix}, \textbf{y}=\begin{pmatrix} 12.06\\ 18.472\\ 26.378\\ 34.724\\ \end{pmatrix}