How do I perform a Partial F-Test in Excel?

A Partial F-Test in Excel is a statistical tool used to compare the significance of two regression models. It helps determine if adding a new variable to a model significantly improves its predictive power. This test can be performed by using the built-in Analysis ToolPak add-in in Excel. First, select the data and go to the Data tab, then click on “Data Analysis” and choose “Anova: Two-Factor with Replication” from the list. Next, select the variables for the “Model” and “Residual” fields and click “OK” to generate the results, including the F-statistic and p-value. A low p-value indicates that the new variable has a significant impact on the model’s performance. This test is useful in evaluating the necessity of adding new variables to a model and making informed decisions in data analysis.

Perform a Partial F-Test in Excel


A is used to determine whether or not there is a statistically significant difference between a regression model and some nested version of the same model.

nested model is simply one that contains a subset of the predictor variables in the overall regression model.

For example, suppose we have the following regression model with four predictor variables:

Y = β0 + β1x1 + β2x2 + β3x3 + β4x4 + ε

One example of a nested model would be the following model with only two of the original predictor variables:

Y = β0 + β1x1 + β2x2 + ε

To determine if these two models are significantly different, we can perform a partial F-test, which calculates the following F test statistic:

F = ((RSSreduced – RSSfull)/p)  /  (RSSfull/n-k)

where:

  • RSSreduced: The residual sum of squares of the reduced (i.e. “nested”) model.
  • RSSfull: The residual sum of squares of the full model.
  • p: The number of predictors removed from the full model.
  • n: The total observations in the dataset.
  • k: The number of coefficients (including the intercept) in the full model.

This test uses the following null and alternative :

H0: All coefficients removed from the full model are zero.

HA: At least one of the coefficients removed from the full model is non-zero.

If the corresponding to the F test-statistic is below a certain significance level (e.g. 0.05), then we can reject the null hypothesis and conclude that at least one of the coefficients removed from the full model is significant.

The following example shows how to perform a partial F-test in Excel.

Example: Partial F-Test in Excel

Suppose we have the following dataset in Excel:

Suppose we would like to determine if there is a difference between the following two regression models:

Full Model: y = β0 + β1x1 + β2x2 + β3x3 + β4x4

Reduced Model: y = β0 + β1x1 + β2x2

We can proceed to perform for each model to get the following output:

We can then use the following formula to calculate the F test-statistic for the partial F-test:

The test statistic turns out to be 2.064.

We can then use the following formula to calculate the corresponding p-value:

The p-value turns out to be 0.1974.

Since this p-value is not less than .05, we will fail to reject the null hypothesis. This means we don’t have sufficient evidence to say that either of the predictor variables x3 or x4 are statistically significant.

In other words, adding x3 and x4 to the regression model do not significantly improve the fit of the model.

Additional Resources

x