A variable $z$ is to be estimated from variables $x$ and $y$ by means of a regression equation having the form $z=a+b x+c y$. Show that the least-squares regression equation is obtained by determining $a, b$, and $c$ so that they satisfy (21), page 269 .
Let the sample points be $\left(x_1, y_1, z 1\right) \ldots,\left(x_n, y_n, z n\right)$. Then the values of $z$ on the least-squares regression plane corresponding to $\left(\mathrm{x}_1, \mathrm{y}_1\right) \ldots$ $\ldots\left(x_n, y_n\right)$ are, respectively,
$$
a+b x_1+c y_1, \ldots, a+b x_n+c y_n
$$
Therefore, the deviations from $z_1, \ldots, \mathrm{z}_{\mathrm{n}}$ are given by
$$
d_1=a+b x_1+c y_1-z_1, \ldots, d_n=a+b x_n+c y_n-z_n
$$
and the sum of the squares of the deviations is given by
$$
\Sigma d^2=\Sigma(a+b x+c y-z)^2
$$
Considering this as a function of $a, b, c$ and setting the partial derivatives with respect to $a, b$, and $c$ equal to zero, the required normal equations (21) on page 269 , are obtained.