How to calculate the P-Value of an F-Statistic in Excel?

The p-value of an F-Statistic in Excel can be calculated using the ‘F.DIST’ function. This function requires the F-Statistic, the numerator degree of freedom, and the denominator degree of freedom as input. The output of this function is the p-value associated with the F-Statistic. This p-value can be interpreted to assess whether or not the observed F-Statistic is statistically significant.


An F-test produces an F-statistic. To find the p-value associated with an F-statistic in Excel, you can use the following command:

=F.DIST.RT(x, degree_freedom1, degree_freedom2)

where:

  • x: the value of the F-statistic
  • degree_freedom1: numerator degrees of freedom
  • degree_freedom2: denominator degrees of freedom

For example, here is how to find the p-value associated with an F-statistic of 5.4, with numerator degrees of freedom = 2 and denominator degrees of freedom = 9:

P-value from F-statistic in Excel

The p-value is 0.02878.

One of the most common uses of an F-test is for . In the following example, we show how to calculate the p-value of the F-statistic for a regression model.

Example: Calculating p-value from F-statistic

Suppose we have a dataset that shows the total number of hours studied, total prep exams taken, and final exam score received for 12 different students:

Raw data in Excel

If we fit a linear regression model to this data using study_hours and prep_exams as the explanatory variables and score as the response variable, we will get the following output:

F statistic for overall regression in Excel

The F-statistic for the overall regression model is 5.0905. This F-statistic has 2 degrees of freedom for the numerator and 9 degrees of freedom for the denominator.

Excel automatically calculates that the p-value for this F-statistic is 0.0332:

P-value of F-statistic in Excel

In order to calculate this p-value ourselves, we could use the following code:

P-value of F-statistic calculation in Excel

Notice that we get the same p-value as the linear regression output.

x