Tutorials › VEE Mathematical Statistics › The Overall F Test For Regression Significance

VEE Mathematical Statistics · Regression Inference · Tutorial 756 of 880

The Overall F Test For Regression Significance

Use regression and error mean squares to test whether a simple linear regression provides evidence of a nonzero population slope.

Advanced 10 min read

What You'll Learn

  • State the hypotheses for the overall F test in simple linear regression.
  • Calculate the regression and error mean squares from sums of squares.
  • Determine the numerator and denominator degrees of freedom.
  • Compare an observed F statistic with an upper-tail critical value.
  • Interpret rejection and nonrejection without overstating the result.
  • Recognize the model assumptions that support the exact test.

What the Overall F Test Evaluates

In simple linear regression, a fitted line can show a trend in a sample even when the population slope is zero. The overall F test evaluates whether the observed regression variation is large relative to the residual variation. In this setting, “overall regression significance” means testing the single population slope—not testing whether every possible feature of a more complicated model is useful.

The test asks whether the data provide evidence of a linear association between the predictor and response in the population. A significant result does not establish that the relationship is practically important, causal, or useful for prediction. Those conclusions require additional context.

Model and assumptions: For observations \(i=1,\ldots,n\), use the simple linear regression model \(Y_i=\beta_0+\beta_1x_i+\varepsilon_i\). For the exact F test, treat the predictor values \(x_i\) as fixed (or condition on them) and assume the errors are independent with \(\varepsilon_i\sim N(0,\sigma^2)\), where the common variance \(\sigma^2\) is unknown. The predictor values must not all be equal, and \(n\ge 3\), so the slope is estimable and there are residual degrees of freedom. If independence, constant variance, or normality is not reasonable, the exact reference distribution described below need not apply.
Hypotheses: The overall F test for simple linear regression tests \(H_0:\beta_1=0\) against \(H_1:\beta_1\ne 0\). The alternative is two-sided: a nonzero slope may be positive or negative. The test statistic is nonnegative, so evidence against the null lies in its upper tail.

Regression and Error Mean Squares

Let \(\hat{Y}_i\) be the fitted value from the least-squares line and let \(\bar{Y}\) be the sample mean of the responses. The regression sum of squares measures fitted variation around the response mean; the error sum of squares measures the remaining variation around the fitted line.

$$ \mathrm{SSR}=\sum_{i=1}^{n}(\hat{Y}_i-\bar{Y})^2, \qquad \mathrm{SSE}=\sum_{i=1}^{n}(Y_i-\hat{Y}_i)^2 $$

With an intercept in the model, the total sum of squares separates into these two parts: \(\mathrm{SST}=\mathrm{SSR}+\mathrm{SSE}\), where \(\mathrm{SST}=\sum_{i=1}^{n}(Y_i-\bar{Y})^2\). The regression has one slope parameter, so its degrees of freedom are 1. Estimating the intercept and slope uses two parameters, leaving \(n-2\) error degrees of freedom.

Test statistic: The regression mean square is \(\mathrm{MSR}=\mathrm{SSR}/1\), and the error mean square is \(\mathrm{MSE}=\mathrm{SSE}/(n-2)\). The overall F statistic is
$$ F=\frac{\mathrm{MSR}}{\mathrm{MSE}} =\frac{\mathrm{SSR}/1}{\mathrm{SSE}/(n-2)}. $$
Under \(H_0\) and the model assumptions, this statistic has an \(F\) distribution with 1 numerator degree of freedom and \(n-2\) denominator degrees of freedom.

The reason for comparing these mean squares is that, under the null hypothesis, both MSR and MSE estimate the same error variance \(\sigma^2\). The residual mean square estimates that variance using \(n-2\) degrees of freedom. When the null is true, the regression mean square also reflects error variation; when the slope is nonzero, systematic linear variation can increase MSR. Thus, a value of MSR unusually large relative to MSE counts against \(H_0\). The degrees of freedom in the formula follow from the one fitted slope and the two fitted coefficients in the model.

For a test at significance level \(\alpha\), reject \(H_0\) if the observed statistic exceeds the upper-tail critical value \(F_{1,n-2;1-\alpha}\). Equivalently, reject when the upper-tail p-value is at most \(\alpha\). The critical value or p-value must use the correct denominator degrees of freedom.

1
State the hypotheses.
For the overall test in simple linear regression, use \(H_0:\beta_1=0\) and \(H_1:\beta_1\ne0\).
2
Find the degrees of freedom.
The numerator degrees of freedom are 1; the denominator degrees of freedom are \(n-2\).
3
Calculate both mean squares.
Divide SSR by 1 and SSE by \(n-2\). Check that SSE uses the error degrees of freedom.
4
Form the F statistic and decide.
Divide MSR by MSE, then compare with the upper-tail critical value or find the upper-tail p-value.
5
Write a contextual conclusion.
Say whether there is sufficient evidence of a nonzero population slope. Do not claim that nonrejection proves the slope is zero.

Worked Applications

Worked Example: Testing a Trend in Hypothetical Claim Costs

An analyst studies a hypothetical portfolio, recording one annual claim-cost measure for each of \(n=8\) policy groups and each group’s corresponding exposure measure \(x_i\). A simple linear regression with an intercept is fitted. The regression sum of squares is \(\mathrm{SSR}=18\), and the error sum of squares is \(\mathrm{SSE}=12\). At \(\alpha=0.05\), test whether the population slope is zero. Assume the errors are independent \(N(0,\sigma^2)\) with a common unknown variance, conditional on the observed predictor values.

Method and hypotheses. This is the overall F test for the simple regression slope. The hypotheses are \(H_0:\beta_1=0\) and \(H_1:\beta_1\ne0\).

Degrees of freedom. The numerator degrees of freedom are 1. The denominator degrees of freedom are \(n-2=8-2=6\).

Mean squares. The regression mean square is \(\mathrm{MSR}=18/1=18\). The error mean square is \(\mathrm{MSE}=12/6=2\).

Test statistic and decision. The observed statistic is \(F=18/2=9\). The 5% upper-tail critical value for \(F_{1,6}\) is approximately 5.987. Since \(9>5.987\), reject \(H_0\). The upper-tail p-value is approximately 0.024.

Conclusion and check. At the 5% significance level, the data provide evidence that the population slope relating exposure to the claim-cost measure is nonzero. The arithmetic checks: \(9\) is in the upper tail beyond the stated critical value, and the p-value is below 0.05. A common mistake would be to use \(\mathrm{SSE}/(n-1)=12/7\) for MSE; the correct error degrees of freedom are \(n-2=6\).

Worked Example: Interpreting a Large F Statistic

A hypothetical study regresses a department’s quarterly operating measure on a numerical workload index. There are \(n=12\) quarters, with \(\mathrm{SSR}=32\) and \(\mathrm{SSE}=8\). Test \(H_0:\beta_1=0\) against \(H_1:\beta_1\ne0\) at \(\alpha=0.05\). Assume independent normal errors with common unknown variance and a fitted intercept.

Method and degrees of freedom. Use the overall F test. The numerator degrees of freedom are 1, and the denominator degrees of freedom are \(12-2=10\).

Calculate the mean squares. Here, \(\mathrm{MSR}=32/1=32\). Also, \(\mathrm{MSE}=8/10=0.8\).

Calculate and assess the statistic. The statistic is \(F=32/0.8=40\). The 5% upper-tail critical value for \(F_{1,10}\) is approximately 4.965. Since \(40>4.965\), reject \(H_0\); the upper-tail p-value is less than 0.001.

Conclusion and check. There is strong evidence at the 5% level of a nonzero population slope relating the workload index to the operating measure. The mean-square ratio checks directly: \(32/0.8=40\). Do not interpret this result as proof that workload causes the response to change; the test addresses a population linear slope under the stated model.

Worked Example: Nonrejection Is Not Proof of a Zero Slope

A hypothetical researcher fits a simple regression of a maintenance score on equipment age for \(n=7\) machines. The reported sums are \(\mathrm{SSR}=10\) and \(\mathrm{SSE}=30\). At \(\alpha=0.05\), test whether the population slope is zero. Assume independent normal errors with a common unknown variance and an intercept in the model.

Method and hypotheses. Apply the upper-tail overall F test with \(H_0:\beta_1=0\) and \(H_1:\beta_1\ne0\).

Degrees of freedom and mean squares. The numerator degrees of freedom are 1 and the denominator degrees of freedom are \(7-2=5\). Thus, \(\mathrm{MSR}=10/1=10\) and \(\mathrm{MSE}=30/5=6\).

Test statistic and decision. The observed statistic is \(F=10/6=1.6667\), rounded to four decimal places. The 5% upper-tail critical value for \(F_{1,5}\) is approximately 6.608. Since \(1.6667<6.608\), do not reject \(H_0\); the p-value is greater than 0.05.

Conclusion and check. The sample does not provide sufficient evidence at the 5% level that the population slope is nonzero. This does not establish that the population slope equals zero; the data may simply be insufficiently informative. The calculation is consistent because \(10/6\) is well below the critical value. A common mistake is to write “accept that the slope is zero,” which overstates what nonrejection means.

Common Traps and Scope

The overall F test is an upper-tail test even though its alternative is two-sided. A strongly negative slope can also produce a large regression sum of squares, so the F statistic does not retain the slope’s sign. Use the fitted slope or a separate coefficient estimate to describe direction; the F test itself answers whether the slope differs from zero.

Point to checkCorrect approachFrequent error
Hypothesis\(H_0:\beta_1=0\) versus \(H_1:\beta_1\ne0\)Using a one-sided alternative without a directional question
Numerator degrees of freedom1, because this simple regression tests one slopeUsing \(n-2\)
Error degrees of freedom\(n-2\), because the intercept and slope are estimatedUsing \(n-1\) in MSE
Decision regionLarge F values count against the nullUsing a lower-tail cutoff
ConclusionDescribe evidence about a nonzero population slopeClaiming causation, practical importance, or proof of a zero slope

This formula is for simple linear regression with an intercept, where there is one slope restriction. It is not automatically the appropriate test for a model with several predictors or for a regression forced through the origin. If \(\mathrm{MSE}=0\), the ratio is undefined, so the ordinary F calculation cannot be used. Subject to its assumptions and scope, the test provides a compact comparison of fitted linear variation with residual variation and is aligned with the SOA VEE Mathematical Statistics syllabus.

Check Your Understanding

For each problem, use the stated simple linear regression model with an intercept. Unless a problem says otherwise, assume independent normal errors with common unknown variance, conditional on the predictor values.

  1. A regression has \(n=8\), \(\mathrm{SSR}=9\), and \(\mathrm{SSE}=18\). At the 5% level, calculate the F statistic and decide using \(F_{1,6;0.95}\approx5.987\). (Answer: \(\mathrm{MSR}=9\), \(\mathrm{MSE}=18/6=3\), \(F=3\); do not reject \(H_0\).)
  2. For \(n=10\), suppose \(\mathrm{SSR}=24\) and \(\mathrm{SSE}=24\). Test at the 5% level using \(F_{1,8;0.95}\approx5.318\). (Answer: \(\mathrm{MSR}=24\), \(\mathrm{MSE}=24/8=3\), \(F=8\); reject \(H_0\), with evidence of a nonzero population slope.)
  3. A study has \(n=12\), \(\mathrm{SSR}=15\), and \(\mathrm{SSE}=45\). Find the test statistic and state the 5% decision using \(F_{1,10;0.95}\approx4.965\). (Answer: \(\mathrm{MSR}=15\), \(\mathrm{MSE}=45/10=4.5\), \(F=15/4.5=3.3333\); do not reject \(H_0\).)
  4. For \(n=15\), the sums of squares are \(\mathrm{SSR}=20\) and \(\mathrm{SSE}=26\). At the 5% level, use \(F_{1,13;0.95}\approx4.667\). Give the degrees of freedom and decision. (Answer: degrees of freedom \((1,13)\), \(\mathrm{MSR}=20\), \(\mathrm{MSE}=26/13=2\), \(F=10\); reject \(H_0\).)
  5. A simple regression has \(n=9\), \(\mathrm{SSR}=14\), and \(\mathrm{SSE}=14\). Test at the 1% level using \(F_{1,7;0.99}\approx12.246\). What is the conclusion, and does the test distinguish positive from negative slopes? (Answer: \(\mathrm{MSR}=14\), \(\mathrm{MSE}=14/7=2\), \(F=7\); do not reject \(H_0\) at 1%. The overall F test tests for a slope of either sign and does not indicate its direction.)
Clinical Biostats