ECON 310 · Econometrics I

Testing Several Coefficients: The F Test

Learn how the F test checks whether a group of regression variables matters together, even when each one looks weak alone.

Key takeaways

  • A t test checks one coefficient; an F test checks whether several coefficients are all zero at the same time.
  • The F test compares two models: a full one and a shorter one with the suspect variables removed.
  • If dropping the variables makes the squared errors jump a lot, the variables matter, and F is large.
  • A group of variables can be jointly significant even when each one looks insignificant alone.
  • The F statistic printed at the top of a regression table tests the idea that every slope is zero.

Picture Priya, who runs a bike repair shop and keeps a tidy spreadsheet of 54 weeks of sales. She wants to explain weekly sales with four things: her posted price for a tune-up, the average temperature that week, inches of rain, and whether the week held a holiday. She runs the regression and stares at the output. Temperature has a weak t statistic. Rain has a weak t statistic. The holiday dummy has a weak t statistic. Is the weather and calendar stuff just noise?

Here is the catch. Each t test asks about one coefficient at a time. Priya's real question is bigger: "Do temperature, rain and holidays, as a group, help explain sales at all?" That is a question about several coefficients at once, and the tool built for it is the F test. By the end of this lesson you will know how to run one by hand, why it can say "yes" when every individual t test says "maybe not," and how to read the F number that sits at the top of nearly every regression printout.

Why one t test at a time is not enough

In the lesson on standard errors you learned that a t test asks, "Could this one slope plausibly be zero?" That works fine for one variable. But suppose you want to test three slopes at once. You might be tempted to run three t tests and say the group matters if any one passes.

That plan has two problems. First, tests run one after another pile up false alarms. If each test has a 5% chance of crying wolf when nothing is going on, three tests give you a bigger chance of at least one false alarm. Second, the individual tests ignore how the variables move together. Temperature and rain are tangled up in real life: hot weeks tend to be dry weeks. When two variables carry overlapping information, the regression has trouble assigning credit to either one, so each gets a large standard error and a weak t statistic. Yet together they may carry a lot of information. We will meet this problem again in the multicollinearity lesson.

So we want one test with one verdict for the whole group. That is what the F test gives.

The big idea: a full model and a shorter model

The F test works by running two regressions and comparing them.

  • The unrestricted model (the full one) includes every variable. For Priya: sales on price, ads, temperature, rain and holiday.
  • The restricted model (the shorter one) forces the suspect coefficients to be zero, which means leaving those variables out. For Priya: sales on price only.

The claim we test, called the null hypothesis, is that the suspect coefficients are all exactly zero. Written out: the temperature slope = 0, the rain slope = 0, and the holiday slope = 0. The rival claim is that at least one of them is not zero.

Now the clever part. Recall from the best-fit lesson that regression picks the line that makes the sum of squared residuals as small as possible. We write that as SSR. A residual is the gap between an actual value and the value the model predicted. When you remove variables, the model can only get worse or stay the same, so SSR for the shorter model is never smaller than SSR for the full model.

The question becomes: how much worse? If the three variables truly do nothing, removing them barely changes SSR. If they matter, SSR jumps. The F test turns that jump into a number and asks whether it is bigger than luck would produce.

How an F test works
1 Run the full model Include every variable. Record its sum of squared residuals, SSR (full). 2 Run the short model Drop the variables you are testing. Record SSR (short). 3 Measure the jump How much did the squared errors grow when the variables left? 4 Compute F Scale the jump by the number of variables dropped and by the full model's leftover error. 5 Compare to a cutoff If F beats the critical value, the group matters. Run the full model Include every variable. Record its sum of squared residuals, SSR (full). 1 Run the short model Drop the variables you are testing. Record SSR (short). 2 Measure the jump How much did the squared errors grow when the variables left? 3 Compute F Scale the jump by the number of variables dropped and by the full model's leftover error. 4 Compare to a cutoff If F beats the critical value, the group matters. 5

Two regressions, one comparison, one verdict.

The formula

Let q be the number of coefficients you are testing (the number of variables dropped). Let n be the number of observations and k the number of slope variables in the full model. The degrees of freedom left over in the full model are n − k − 1: the number of observations minus the number of coefficients estimated, counting the intercept. The F statistic is:

The F statistic
F = ΔSSR ÷ q ÷ SSR full ÷ df F = The F statistic Large values mean the dropped variables mattered. ΔSSR ÷ q = Extra error per variable dropped ΔSSR is SSR short minus SSR full. How much worse the short model fits, per restriction. SSR full ÷ df = Baseline noise df = n − k − 1. The full model's average squared error. F = ΔSSR ÷ q ÷ SSR full ÷ df F = The F statistic Large values mean the dropped variables mattered. ΔSSR ÷ q = Extra error per variable dropped ΔSSR is SSR short minus SSR full. How much worse the short model fits, per restriction. SSR full ÷ df = Baseline noise df = n − k − 1. The full model's average squared error.

The top is the extra error per dropped variable. The bottom is the typical error per leftover degree of freedom in the full model.

Read it as a ratio of two kinds of error. The top is "error we added by removing the variables, per variable removed." The bottom is "error we would see anyway, even with everything included." If removing variables adds about as much error as ordinary noise, F is near 1 and the variables look useless. If removing them adds far more than ordinary noise, F is large.

There is an equivalent version using R², the share of variation the model explains (see the R-squared lesson):

F = [(R² full − R² short) ÷ q] ÷ [(1 − R² full) ÷ (n − k − 1)]

Both versions give the same answer as long as the dependent variable is the same in both models.

A fully worked example

Back to Priya. She has n = 54 weeks, and her full model has four slopes: price, temperature, rain and holiday. So k = 4, and the degrees of freedom are 54 − 4 − 1 = 49. She is testing q = 3 coefficients: temperature, rain and holiday.

She runs both regressions and records:

SSR short (price only) = 1,400
SSR full  (all four)   =   980
Total variation (TSS)  = 4,000

Step 1: the jump in error. 1,400 − 980 = 420.

Step 2: per variable dropped. 420 ÷ 3 = 140.

Step 3: baseline noise. 980 ÷ 49 = 20.

Step 4: the ratio. F = 140 ÷ 20 = 7.0.

Check it with the R² version. R² full = 1 − 980 ÷ 4,000 = 1 − 0.245 = 0.755. R² short = 1 − 1,400 ÷ 4,000 = 1 − 0.35 = 0.65. Then the top is (0.755 − 0.65) ÷ 3 = 0.105 ÷ 3 = 0.035, and the bottom is 0.245 ÷ 49 = 0.005. The ratio is 0.035 ÷ 0.005 = 7.0. Same answer, as promised.

Priya's squared errors: short model to full model
SSR short model 1,400 Added weather and holiday (420) SSR full model 980 SSR short model 1,400 Added weather and holiday (420) SSR full model 980

Adding temperature, rain and holiday cuts the sum of squared residuals by 420. Example with made-up numbers.

Step 5: the verdict. An F statistic follows a known pattern, the F distribution, when the null hypothesis is true. Its shape depends on two numbers: the degrees of freedom on top (q = 3) and on the bottom (49). Statistics software prints a p-value for you. By hand, you use a table of critical values, which are the cutoffs that only 5% of F values would beat by chance. For 3 and 49 degrees of freedom, the 5% critical value is about 2.8. Priya's F of 7.0 is far above that, so she rejects the null. Temperature, rain and holidays are jointly significant: the group matters, even though each t statistic looked weak.

Tables and software change formats, so check your course's table or your software's output for exact cutoffs. The logic never changes: big F, reject the claim that the coefficients are all zero.

Why the group can win when each member loses

How can three weak t tests add up to one strong F test? Think of three witnesses who each saw the same event from slightly different spots. Each one alone is vague. Hot weeks are usually dry weeks, and holiday weeks are usually warm, so the three variables overlap. The regression cannot say how much credit to give temperature versus rain, so each one's standard error is large. But take away all three at once and the model loses a real chunk of information. SSR jumps by 420, and the F test sees it.

The reverse also happens, less often: one variable with a strong t statistic hiding among several useless ones. The F test is not a replacement for t tests. It answers a different question. Use t for "does this one variable matter, holding the others fixed?" Use F for "does this block of variables matter together?"

When q = 1, the two tests agree exactly. The F statistic equals the t statistic squared. A t of 2.0 gives an F of 4.0, and the p-values match.

The F test at the top of every printout

Look at the top of almost any regression output. You will find a line called "F-statistic" with a p-value. That is an F test, and it asks a specific question: are all the slope coefficients zero at once? Here the restricted model has nothing in it but an intercept, so its R² is zero, and the formula simplifies to:

F = [R² ÷ k] ÷ [(1 − R²) ÷ (n − k − 1)]

Suppose Priya's full model has R² = 0.755, k = 4 and n = 54. Then F = (0.755 ÷ 4) ÷ (0.245 ÷ 49) = 0.18875 ÷ 0.005 = 37.75. That is far above any reasonable cutoff, so the model as a whole explains something real. This test is almost always passed in practice, so a significant overall F tells you little. A failing overall F is more informative: it says that nothing in your model predicts the outcome.

Other useful questions fit the same mold. Do all the region dummies matter together? (See the dummy variable lesson.) Is a curved relationship needed, meaning do the variable and its square matter jointly? Do two variables have equal effects? Each is a set of restrictions, a restricted model, and an F test.

A common mistake

The classic slip is treating a group of insignificant t statistics as proof that the whole group can be dropped. "None of my three weather variables has a t above 2, so I will delete all three." Deleting them one by one based on their individual t tests can throw away a block that matters jointly. Run the F test first. If F says the group matters, keep them, or at least keep a sensible subset and say why.

A second slip: running the F test on models with different dependent variables or different samples. If the short model uses 54 weeks and the full model loses a few weeks to missing weather data, the two SSR values come from different data and the comparison breaks. Make sure both regressions use exactly the same rows.

A third slip is reading a significant F as proof that every variable in the group matters. It only says at least one does.

Words to know

F test a test of whether several regression coefficients are all zero at once.

Null hypothesis the claim being tested, here that the chosen coefficients are all exactly zero.

Restricted model the shorter regression, with the tested variables removed.

Unrestricted model the full regression that includes every variable.

Sum of squared residuals (SSR) the total of the squared gaps between actual and predicted values.

Degrees of freedom observations minus the number of coefficients estimated; here n − k − 1.

Critical value the cutoff F must beat for the result to count as significant at a chosen level, such as 5%.

Check yourself

  1. In your own words, what question does an F test answer that a single t test cannot?
  2. A short model has SSR = 600 and the full model has SSR = 450. You dropped q = 2 variables, and the full model has n − k − 1 = 30 degrees of freedom. Compute F.
  3. Using the numbers from question 2, the 5% critical value is about 3.3. Do you reject the null that both coefficients are zero?
  4. Explain why the SSR of the short model can never be smaller than the SSR of the full model.
  5. A regression has three variables, each with a t statistic below 1.5, but the F test of the three together is significant. Give one reason this can happen.
  6. A researcher tests one coefficient and gets t = 2.5. What F statistic would the matching F test give?
Show the answers
  1. It tests a whole group of coefficients together, giving one verdict for the block instead of one verdict per variable.
  2. (600 − 450) ÷ 2 = 75; 450 ÷ 30 = 15; F = 75 ÷ 15 = 5.0.
  3. Yes: 5.0 is above the 3.3 cutoff, so at least one of the two coefficients is not zero.
  4. Regression picks the coefficients that make SSR as small as possible, so removing variables can only keep SSR the same or raise it.
  5. The variables overlap in what they measure, which inflates each standard error, yet together they carry real explanatory power.
  6. With one restriction F = t², so F = 2.5² = 6.25.

A free self-study program written for 4Economics with AI writing tools and not reviewed line by line by a person. It is not an accredited degree and awards no credit. Check anything you rely on against a textbook or primary source. Report an error.

In this unit: Multiple regression

  1. Multiple Regression and Holding Things ConstantMultiple regression adds more predictors so each slope shows the link between x and y with the other variables held fixed.10 min
  2. Omitted Variable BiasLeaving out a variable that affects the outcome and relates to your predictor makes the slope wrong. Learn the size and direction of the error.10 min
  3. Testing Several Coefficients: The F TestLearn how the F test checks whether a group of regression variables matters together, even when each one looks weak alone.11 min
  4. Dummy VariablesSee how 0-or-1 variables let a regression handle categories like seasons or yes-or-no features, and how to avoid the dummy trap.11 min
  5. Interaction TermsLearn how multiplying two variables lets a regression say that the effect of one thing depends on the level of another.10 min
  6. Logs, Squares and Functional FormLearn how squares and logarithms let a straight-line regression fit curves, and how to read the coefficients in each form.10 min
  7. Choosing Which Variables to IncludeLearn how to decide what goes into a regression, and why leaving out and piling in variables both cause trouble.10 min

In the news