Definition

Consider a Multiple Linear Regression model We want to test the linearity of the model

Assume that is the -th replication at , then The is decomposed to the sum of the pure error sum of squares and the lack-of-fit sum of squares .

The degree of freedoms are , , and , where

Also, the mean squares are obtained by dividing the sum of squares by its degree of freedom

Under , the is an unbiased estimator of , and is always an unbiased estimator of , regardless of . Therefore, we can test the hypothesis by comparing ratios of both estimators.

and . Therefore,

Hence, we reject if

Facts

The lack of fit test uses data’s replication, Therefore, there should be more than one data (replication) for some ‘s.