Now, let's demonstrate this equation with an example. Suppose we have the following data:
$$X = \begin{bmatrix} 1 & 2 \\ 1 & 3 \\ 1 & 4 \end{bmatrix}, \quad y = \begin{bmatrix} 3 \\ 5 \\ 7 \end{bmatrix}$$
First, we need to find $X'$, the transpose of $X$:
$$X'
Show more…