To derive the least squares normal equations, we need to minimize the sum of squared residuals, which is given by:
$$ S(\beta_0', \beta_1, \beta_2) = \sum_{i=1}^{n} \left( Y_i - \left( \beta_0' + \beta_1 (x_{i1} - \bar{x}_1) + \beta_2 (x_{i2} - \bar{x}_2)
Show more…