# 3.6 - The General Linear Test

This is just a general representation of an *F*-test based on a full and a reduced model. We will use this frequently when we look at more complex models.

Let's illustrate the general linear test here for the single factor experiment:

First we write the full model, *Y _{ij}* = μ + τ

*+ ε*

_{i}*and then the reduced model,*

_{ij}*Y*= μ + ε

_{ij}*where you don't have a τ*

_{ij}*term, you just have an overall mean, μ. This is a pretty degenerate model that just says all the observations are just coming from one group. But the reduced model is equivalent to what we are hypothesizing when we say the μ*

_{i}*would all be equal, i.e.:*

_{i}*H*_{0} : μ_{1} = μ_{2} = ... = μ_{a}

This is equivalent to our null hypothesis where the τ* _{i}*'s are all equal to 0.

The reduced model is just another way of stating our hypothesis. But in more complex situations this is not the only reduced model that we can write, there are others we could look at.

The general linear test is stated as an *F* ratio:

\[F=\frac{(SSE(R)-SSE(F))/(dfR-dfF)}{SSE(F)/dfF}\]

This is a very general test. You can apply any full and reduced model and test whether or not the difference between the full and the reduced model is significant just by looking at the difference in the SSE appropriately. This has an *F* distribution with (*df* R - *df *F), *df* F degrees of freedom, which correspond to the numerator and the denominator degrees of freedom of this *F* ratio.

Let's take a look at this general linear test using Minitab...

### Example - Cotton Weight

Remember this experiment had treatment levels 15, 20, 25, 30, 35 % cotton weight and the observations were the tensile strength of the material.

The full model allows a different mean for each level of cotton weight %.

We can demonstrate the General Linear Test by viewing the ANOVA table from Minitab:

STAT > ANOVA > Balanced ANOVA

The *SSE*(*R*) = 636.96 with a *dfR* = 24, and *SSE*(*F*) = 161.20 with *dfF* = 20. Therefore:

\[F^\ast =\frac{(636.96-161.20)/(24-20)}{161.20/20}\]

This demonstrates the equivalence of this test to the *F*-test. We now use the General Linear Test (GLT) to test for Lack of Fit when fitting a series of polynomial regression models to determine the appropriate degree of polynomial.

We can demonstrate the General Linear Test by comparing the quadratic polynomial model (Reduced model), with the full ANOVA model (Full model). Let *Y _{ij}* = μ + β

_{1}

*x*+ β

_{ij}_{2}

*x*

_{ij}^{2}+ ε

*be the reduced model, where*

_{ij}*x*is the cotton weight percent. Let

_{ij}*Y*= μ + τ

_{ij}*+ ε*

_{i}*be the full model.*

_{ij}The viewlet above shows the *SSE*(*R*) = 260.126 with *dfR* = 22 for the quadratic regression model. The ANOVA shows the full model with *SSE*(*F*) = 161.20 with *dfF* = 20.

Therefore the GLT is:

\[\begin{eqnarray}

F^\ast &=&\frac{(SSE(R)-SSE(F))/(dfR-dfF)}{SSE(F)/dfF} \nonumber\\

&=&\frac{(260.126-161.200)/(22-20)}{161.20/20}\nonumber\\

&=&\frac{98.926/2}{8.06}\nonumber\\

&=&\frac{49.46}{8.06}\nonumber\\

&=&6.14 \nonumber

\end{eqnarray}\]

We reject *H*_{0 }: Quadratic Model and claim there is Lack of Fit if *F** > *F*_{1-α} (2, 20) = 3.49.

Therefore, since 6.14 is > 3.49 we reject the null hypothesis of no Lack of Fit from the quadratic equation and fit a cubic polynomial. From the viewlet above we noticed that the cubic term in the equation was indeed significant with *p*-value = 0.015.

We can apply the General Linear Test again, now testing whether the cubic equation is adequate. The reduced model is:

*Y _{ij}* = μ + β

_{1}

*x*+ β

_{ij}_{2}

*x*

_{ij}^{2}+ β

_{3}

*x*

_{ij}^{3}+ ε

_{ij}and the full model is the same as before, the full ANOVA model:

*Y _{ij}* = μ + τ

*+ ε*

_{i}

_{ij}The General Linear Test is now a test for Lack of Fit from the cubic model:

\[\begin{eqnarray}

F^\ast &=&\frac{(SSE(R)-SSE(F))/(dfR-dfF)}{SSE(F)/dfF} \nonumber\\

&=&\frac{(195.146-161.200)/(21-20)}{161.20/20}\nonumber\\

&=&\frac{33.95/1}{8.06}\nonumber\\

&=&4.21 \nonumber

\end{eqnarray}\]

We reject if *F** > *F*_{0.95} (1, 20) = 4.35.

Therefore we do not reject *H _{a}*: Lack of Fit and conclude the data are consistent with the cubic regression model, and higher order terms are not necessary.