Set Up

Suppose we have 3 observations:

Our model is

\[ y_i = \beta_0 + \beta_1 x_i + \varepsilon_i \\ \varepsilon_i \sim \text{Normal}(0, \sigma^2) \]

The design matrix is \(X = \begin{bmatrix} 1 & 0 \\ 1 & 1 \\ 1 & 1 \end{bmatrix}\)

The fitted values are \(\hat{y} = \begin{bmatrix} 1 \\ 2.5 \\ 2.5 \end{bmatrix}\)

Illustration of fitted values

In the graphic below,