The application of the least squares method (LSM) to the full and reduced model results in several computational formulas which are importand in by-hand calculations as well as in building statistical software.
We follow the tradition of presenting the case of equal number of replications first, followed by a modified presentation of unequal number of replications. It is typical that unequal replication number is a result of a loss of a sample.