Why R-Squared and Regression Significance Are Related
In simple linear regression, R-squared summarizes how much of the observed variation in the response is accounted for by the fitted line. The overall F test addresses a different question: whether the data provide evidence that the population slope is nonzero. The two quantities are connected by an exact formula, but they are not interchangeable. In particular, the same R-squared can lead to different test conclusions when sample sizes differ.
The connection is useful when a regression summary reports R-squared but not the F statistic. It also clarifies why a visually strong fit, measured by R-squared, is not by itself an inferential conclusion. The test uses both the amount of variation explained and the sample size, as well as a model and its assumptions.
Model, Sums of Squares, and R-Squared
Consider \(n\) observations \((x_i,Y_i)\) modeled by a simple linear regression with an intercept:
For the exact, finite-sample F test, assume the \(x_i\) values are fixed and not all equal, and that the errors are independent with \(\varepsilon_i\sim N(0,\sigma^2)\) for a common variance \(\sigma^2>0\). Equivalently, for random predictors, the same test is exact conditional on the observed predictor values when these error assumptions hold. The fitted values are \(\hat{Y}_i\), the response mean is \(\bar{Y}\), and the residuals are \(e_i=Y_i-\hat{Y}_i\).
R-squared is a descriptive measure of this sample’s fit. For a non-perfect fit with \(SST>0\), it lies between 0 and 1. If the response values are all identical, \(SST=0\) and R-squared is undefined. If \(SSE=0\), the fit is perfect and the usual finite F ratio has a zero denominator; the finite-statistic formula below presumes \(SSE>0\).
Deriving the F Statistic from R-Squared
The overall regression test for simple linear regression with an intercept tests \(H_0:\beta_1=0\) against \(H_A:\beta_1\ne 0\). Under the null, the predictor adds no linear slope to the intercept-only model. The overall F statistic compares the regression mean square, which has 1 numerator degree of freedom, with the residual mean square, which has \(n-2\) degrees of freedom.
The identity \(SST=SSR+SSE\) gives \(SSR=R^2SST\) and \(SSE=(1-R^2)SST\). Substitution shows why the total variation cancels and leaves a formula involving only \(n\) and \(R^2\):
The test is upper-tailed: larger values of \(F\) provide more evidence against \(H_0\). At significance level \(\alpha\), reject when the observed statistic exceeds the upper-tail critical value \(F_{1,n-2;1-\alpha}\), or equivalently when its upper-tail p-value is less than \(\alpha\). The degrees of freedom must accompany the statistic; the same numerical F value does not have the same reference distribution for every sample size.
The formula also works in reverse. Solving for R-squared gives \(R^2=F/(F+n-2)\). Thus, for fixed \(n\), larger R-squared means larger F. But a test decision also depends on the null distribution and its degrees of freedom. R-squared alone does not supply a significance level or a p-value.
Confirm that the summary is for simple linear regression with an intercept and that the overall test concerns the slope \(H_0:\beta_1=0\).
Use the sample size \(n\) and reported R-squared in \(F=(n-2)R^2/(1-R^2)\).
Compare the result with an \(F\) distribution having 1 and \(n-2\) degrees of freedom, using the stated significance level.
Report the test decision as evidence about the slope under the model assumptions; describe R-squared as a sample fit measure.
Worked Applications
Worked Example: Testing a Reported R-Squared
A hypothetical study models a laboratory measurement using one predictor and an intercept. It has \(n=12\) observations and reports \(R^2=0.36\). Using a 5% significance level, determine whether the overall regression is significant. Assume the simple-regression error model and its exact-test assumptions hold.
Method. Convert R-squared to the overall F statistic, then compare with the 5% upper-tail critical value for degrees of freedom \(1\) and \(12-2=10\).
First, \(1-R^2=1-0.36=0.64\), and \(n-2=10\). Therefore,
The 5% critical value is approximately \(F_{1,10;0.95}=4.965\). Since \(5.625>4.965\), reject \(H_0:\beta_1=0\) at the 5% level. The evidence supports a nonzero population slope under the model assumptions.
Check. The calculation uses \(n-2=10\), because two coefficients, the intercept and slope, are estimated. A common mistake is to use \(n-1=11\), which would produce \(11(0.36)/0.64=6.188\) and the wrong reference degrees of freedom. The correct statistic is 5.625 with degrees of freedom \(1,10\).
Worked Example: Equal R-Squared, Different Sample Sizes
Two hypothetical studies use the same type of regression and each reports \(R^2=0.25\). Study A has \(n=8\) observations; Study B has \(n=30\). At the 5% level, compare the overall slope tests. Assume the model assumptions hold for both studies.
Method. Calculate the F statistic separately with each study’s residual degrees of freedom. For Study A, \(1-R^2=0.75\) and \(n-2=6\), so
The 5% critical value for \(F_{1,6}\) is approximately 5.987. Since \(2.000<5.987\), Study A does not reject the null hypothesis.
For Study B, \(n-2=28\), so
The 5% critical value for \(F_{1,28}\) is approximately 4.196. Since \(9.333>4.196\), Study B rejects the null hypothesis. The two studies have the same R-squared, but the larger sample produces a larger F statistic and a different test conclusion.
Check. R-squared describes the proportion of observed response variation accounted for by the fitted line in each sample; it does not encode sample size. Treating \(R^2=0.25\) as proof that both results must have the same significance is the trap. The correct decisions are not significant for Study A and significant for Study B.
Worked Example: Recovering R-Squared from an F Statistic
A hypothetical simple regression with an intercept has \(n=20\) observations. Its overall test statistic is reported as \(F=4.500\). Find the corresponding R-squared and decide whether the test is significant at the 5% level. Assume the exact-test conditions hold.
Method. Rearrange \(F=(n-2)R^2/(1-R^2)\). Multiplying by \(1-R^2\) gives \(F-FR^2=(n-2)R^2\), so \(F=(F+n-2)R^2\), and therefore \(R^2=F/(F+n-2)\).
The test has degrees of freedom \(1\) and \(18\). The 5% critical value is approximately \(F_{1,18;0.95}=4.414\), and \(4.500>4.414\). Therefore reject the zero-slope null hypothesis at the 5% level.
Check. Substituting the recovered value into the original relation gives \(18(0.200)/(1-0.200)=3.600/0.800=4.500\), as reported. A common error is to divide \(F\) by \(n\) rather than by \(F+n-2\); that would not solve the defining equation.
What R-Squared Does—and Does Not—Say
A value such as \(R^2=0.36\) says that, in the sample and under this fitted regression decomposition, 36% of the total variation in the observed response is accounted for by the fitted line. It does not say that the predictor caused 36% of the response, that predictions will be accurate for new observations, or that the slope is statistically significant. Those claims require different reasoning and, for significance, a specified inferential procedure.
The F test uses a model-based measure of variation relative to the residual variation, adjusted for degrees of freedom. Under its assumptions, its reference distribution lets us quantify how unusual the observed statistic would be if the slope were zero. If the error distribution or other assumptions are unsuitable, the exact F reference distribution may not apply. A high R-squared does not repair a violated assumption, and a low R-squared does not by itself prove that the slope is zero.
There is also a practical distinction. A small effect can be statistically significant in a large sample, while a potentially meaningful effect may not reach a chosen significance level in a small sample. Statistical significance concerns evidence against the specified null under the model; R-squared is a descriptive summary of in-sample fit. Neither quantity alone measures the practical importance of a slope.
Common Exam Traps
- Using the wrong degrees of freedom. In simple regression with an intercept, the overall F test has degrees of freedom \(1\) and \(n-2\), not \(1\) and \(n-1\).
- Applying the formula to a different model. The displayed identity uses one predictor and an intercept. Do not assume the same numerator degrees of freedom or formula for a model with multiple predictors or different restrictions.
- Calling R-squared a test. R-squared has no significance level or p-value by itself. Use the sample size to obtain F, then use the correct reference distribution.
- Interpreting significance as practical importance or causation. A significant slope is evidence against a zero slope under the model assumptions; it is not, on its own, proof of a large effect or a causal relationship.
- Forgetting the intercept condition. The sum-of-squares decomposition and formula here use regression with an intercept. Do not apply them automatically to a regression forced through the origin.
Check Your Understanding
For each problem, use the overall test for simple linear regression with an intercept. Unless stated otherwise, assume the exact-test error conditions hold and use a 5% significance level.
- A calibration study has \(n=14\) observations and \(R^2=0.16\). Calculate the F statistic and determine whether the slope test is significant. (Answer: \(F=2.286\), degrees of freedom \(1,12\); not significant at 5%.)
- A pilot study has \(n=25\) and \(R^2=0.30\). Find F and state the 5% test decision. (Answer: \(F=9.857\), degrees of freedom \(1,23\); significant at 5%.)
- A regression with \(n=10\) has \(F=5.000\). Recover R-squared and decide whether the overall test is significant. (Answer: \(R^2=5/(5+8)=0.3846\); degrees of freedom \(1,8\), not significant at 5%.)
- Two studies have the same \(R^2=0.10\), with sample sizes 11 and 41. Calculate each statistic and compare the decisions. (Answer: for \(n=11\), \(F=1.000\), df \(1,9\), not significant; for \(n=41\), \(F=4.333\), df \(1,39\), significant at 5%.)
- A study has \(n=6\) and \(R^2=0.64\). Calculate F and assess the test at 5%; explain whether an R-squared of 0.64 guarantees significance. (Answer: \(F=7.111\), degrees of freedom \(1,4\); not significant at 5% because the critical value is approximately 7.709. R-squared alone does not guarantee significance.)