Tutorials › Regression Analysis (Undergraduate) › Deriving the Partial F Statistic

Model Fit and Nested Comparisons · Tutorial 260 of 991

Deriving the Partial F Statistic

See how the partial F statistic measures the average fit improvement per added parameter relative to the full model’s estimated residual variance.

Intermediate 9 min read

What You'll Learn

  • Define the partial F statistic using the reduced and full models’ residual sums of squares.
  • Find the numerator degrees of freedom from the number of added parameters.
  • Find the denominator degrees of freedom from the full model’s residual degrees of freedom.
  • Derive the F reference distribution under the null and regression error assumptions.
  • Distinguish the statistic’s scale comparison from a conclusion about practical importance.
  • Avoid common mistakes when comparing nested models.

Why the Partial F Statistic Uses Two Mean Squares

When a full regression model adds predictors to a reduced model, its residual sum of squares cannot increase if both models are fitted to the same outcome and observations. But a decrease by itself does not say whether the added terms improved fit substantially: adding more parameters can reduce residual error even when those terms do not describe a real signal. The partial F statistic puts the reduction on a scale that accounts for both the number of added parameters and the residual variation left in the full model.

The statistic compares two quantities. Its numerator is the reduction in residual sum of squares divided by the number of added parameters. Its denominator is the full model’s residual mean square: residual sum of squares divided by the full model’s residual degrees of freedom. Under the null hypothesis and the usual normal linear model assumptions, this ratio has an F distribution.

Models, Residual Sums of Squares, and Degrees of Freedom

Suppose the reduced model and full model use the same \(n\) observations and the same response variable. The full model is nested in the sense that it contains every term in the reduced model, possibly with additional terms. Let \(RSS_R\) denote the reduced model’s residual sum of squares and \(RSS_F\) the full model’s residual sum of squares. The subscripts \(R\) and \(F\) stand for reduced and full.

Let \(p_R\) and \(p_F\) be the numbers of parameters estimated in the reduced and full models, respectively. Count all estimated regression coefficients, including an intercept when the model has one. The number of added parameters is \(q=p_F-p_R\). The full model must add at least one parameter, so \(q>0\). If the full model has full column rank, its residual degrees of freedom are \(n-p_F\).

Definition: For nested reduced and full regression models fitted to the same response and observations, the partial F statistic is $$ F=\frac{(RSS_R-RSS_F)/q}{RSS_F/(n-p_F)},\qquad q=p_F-p_R. $$ The numerator degrees of freedom are \(q\), the number of parameters added. The denominator degrees of freedom are \(n-p_F\), the full model’s residual degrees of freedom.

The numerator, \((RSS_R-RSS_F)/q\), is the average reduction in residual sum of squares per added parameter. The denominator, \(RSS_F/(n-p_F)\), is the full model’s residual mean square, often used to estimate the common error variance. Both quantities are measured in squared units of the response, so their ratio is dimensionless.

The statistic is defined only when the models are genuinely nested, \(q>0\), and the full model has positive residual degrees of freedom. The reduced and full residual sums of squares must also come from the same observations and response. Comparing residual sums of squares from different samples does not give this statistic a valid nested-model interpretation.

Why These Degrees of Freedom Appear

The numerator degrees of freedom count the additional independent directions in which the full model can fit the data. With \(q\) added parameters, the expanded model has \(q\) more fitted dimensions than the reduced model. The denominator degrees of freedom count what remains for estimating residual variation after fitting the full model: \(n-p_F\).

The F distribution arises from a ratio of two independent, variance-scaled sums of squares. To see why, write the regression model for the full set of observations as \(Y=\mu+\varepsilon\), where \(Y\) is the vector of responses and \(\mu\) is its mean vector. Under the null hypothesis, the reduced model describes the mean: there is no additional mean component in the directions introduced by the full model. Assume the design values are fixed and that \(\varepsilon\sim N(0,\sigma^2 I)\), so the errors are independent, normally distributed with mean zero and common variance \(\sigma^2\). Also assume the model matrices have full column rank.

Fitting each model projects the response onto its model space. Because the reduced model’s space is contained in the full model’s space, the added directions form a \(q\)-dimensional space perpendicular to the reduced model’s space. Under the null, the reduction \(RSS_R-RSS_F\) is the squared length of the error projected onto those added directions. The remaining full-model residuals lie perpendicular to the full model’s space, a space with dimension \(n-p_F\).

For a normal error vector with covariance matrix \(\sigma^2 I\), projections onto perpendicular spaces are independent. The squared length of the error projected onto a space of dimension \(d\), divided by \(\sigma^2\), has a chi-square distribution with \(d\) degrees of freedom. Therefore, under the null,

$$ \frac{RSS_R-RSS_F}{\sigma^2}\sim\chi^2_q, \qquad \frac{RSS_F}{\sigma^2}\sim\chi^2_{n-p_F}, $$

and these two quantities are independent. Dividing each by its degrees of freedom gives independent estimates on the same variance scale:

$$ \frac{(RSS_R-RSS_F)/q}{\sigma^2} \quad\text{and}\quad \frac{RSS_F/(n-p_F)}{\sigma^2}. $$

By definition, the ratio of two independent chi-square variables each divided by its degrees of freedom has an F distribution with those numerator and denominator degrees of freedom. The common \(\sigma^2\) cancels in the ratio, giving the reference distribution for the partial F statistic:

Theorem: If the reduced model is correct under the null, the models are nested and full rank, and the errors are independent \(N(0,\sigma^2)\) with common variance, then $$ F\sim F_{q,\,n-p_F}. $$

Worked Example: Computing the Statistic and Both Degrees of Freedom

Suppose hypothetical data contain \(n=48\) observations. A reduced model estimates \(p_R=3\) parameters and has \(RSS_R=620\) response-units-squared. A nested full model estimates \(p_F=6\) parameters and has \(RSS_F=500\) response-units-squared. Assume both models use the same observations and response, and the full design has full column rank.

The full model adds \(q=p_F-p_R=6-3=3\) parameters. Thus the numerator degrees of freedom are 3, and the denominator degrees of freedom are \(n-p_F=48-6=42\).

The reduction in residual sum of squares is \(620-500=120\). The numerator mean square is \(120/3=40.0\) response-units-squared. The full model residual mean square is \(500/42=11.9048\) response-units-squared. Therefore,

$$ F=\frac{(620-500)/3}{500/(48-6)} =\frac{40.0}{11.9048} =3.360. $$

The statistic is compared with an \(F\) distribution having 3 numerator and 42 denominator degrees of freedom when testing the null that the added terms do not improve the mean model. The calculation alone is not a conclusion about whether the improvement is statistically significant; that requires a specified significance level or a p-value.

Worked Examples: Reading the Formula Carefully

Worked Example: One Added Parameter

Consider hypothetical data with \(n=25\) observations. The reduced model estimates \(p_R=2\) parameters and has \(RSS_R=96\). The full model adds one parameter, so \(p_F=3\), and has \(RSS_F=84\). Both models use the same outcome and observations; assume the full design has full column rank.

There is one added parameter, so \(q=3-2=1\). The numerator degrees of freedom are 1 and the denominator degrees of freedom are \(25-3=22\). The reduction is \(96-84=12\), making the numerator mean square \(12/1=12\). The full model residual mean square is \(84/22=3.8182\). Hence,

$$ F=\frac{(96-84)/1}{84/(25-3)} =\frac{12}{3.8182} =3.143. $$

The partial F statistic has reference distribution \(F_{1,22}\) under the null and the stated error assumptions. One added parameter means one numerator degree of freedom; it does not change how the denominator degrees of freedom are counted.

Worked Example: More Added Parameters Than Residual Degrees of Freedom

Suppose hypothetical data have \(n=20\) observations. The reduced model estimates \(p_R=2\) parameters, while a nested full model estimates \(p_F=8\). Their residual sums of squares are \(RSS_R=150\) and \(RSS_F=90\). Assume both fits use the same observations and response, the full design has full column rank, and \(n>p_F\).

The full model adds \(q=8-2=6\) parameters, giving 6 numerator degrees of freedom. The denominator degrees of freedom are \(20-8=12\), which remain positive. The numerator mean square is \((150-90)/6=60/6=10.0\). The denominator mean square is \(90/12=7.5\). Thus,

$$ F=\frac{(150-90)/(8-2)}{90/(20-8)} =\frac{10.0}{7.5} =1.333. $$

The reference distribution is \(F_{6,12}\) under the null and the normal linear model assumptions. The numerator divides the improvement by six because the full model added six parameters; using the total number of parameters in the full model there would be incorrect.

How to Use the Statistic, and What It Does Not Say

Under the null, the numerator and denominator estimate the same error variance, so their ratio is typically near 1, though sampling variation can make it larger or smaller. A large value means the average reduction in residual sum of squares per added parameter is large relative to the full model’s residual mean square. For a conventional upper-tail test, unusually large values count against the null because adding the terms has produced a reduction large relative to the residual variation.

This scale comparison does not by itself describe the practical importance of the added predictors. The F statistic has no units and depends on the amount of information in the data, the number of added parameters, and residual variation. A small change in fit can yield evidence against the null in a sufficiently informative sample, while a potentially important change can be estimated imprecisely. The statistic is an inferential tool, not a measure of practical value or evidence of causation.

The normality and equal-variance assumptions support the exact F reference distribution derived above. The nesting and same-sample conditions are also essential to the sum-of-squares comparison. If these conditions are not met, the displayed statistic may still be calculable, but its stated exact null distribution is not justified by this derivation.

Common Mistakes

  • Using the wrong numerator degrees of freedom. The numerator degrees of freedom are the number of parameters added, \(p_F-p_R\), not the number of parameters in the full model.
  • Using the reduced model for the denominator. The denominator is the full model residual mean square, \(RSS_F/(n-p_F)\), because it estimates residual variance after fitting the full model.
  • Forgetting to divide the improvement by \(q\). The numerator is an average reduction per added parameter, not simply \(RSS_R-RSS_F\).
  • Comparing fits from different samples. The partial F formula requires nested models fit to the same response observations; otherwise the RSS difference does not isolate the added model dimensions.
  • Calling a larger F value proof that the added predictors are important. It indicates a larger fit improvement relative to residual variation, but statistical evidence and practical importance are distinct judgments.
Key takeaway: The partial F statistic is the reduction in residual sum of squares per added parameter divided by the full model’s residual mean square. Its degrees of freedom are \(q=p_F-p_R\) and \(n-p_F\).

Check Your Understanding

Use the definitions and derivation to answer these questions.

  1. A reduced model estimates 4 parameters and a nested full model estimates 7. What is the numerator degrees of freedom, and why?
  2. A full model uses \(n=36\) observations and estimates 5 parameters. What are its residual degrees of freedom?
  3. In the partial F statistic, why is the full model residual mean square used in the denominator?
  4. Two models have \(RSS_R=210\), \(RSS_F=174\), \(p_R=3\), \(p_F=6\), and \(n=30\). Calculate the partial F statistic and its two degrees of freedom.
  5. Name the error assumptions used to justify the exact \(F_{q,n-p_F}\) reference distribution.