Goodness of fit and testing the regression coefficients
R², explained variation (SSR) over total variation (SST), is the share of Y's variation the model explains. The F-test asks whether the model explains anything. Each coefficient gets a t-test: (estimate − hypothesized value) ÷ standard error, n − 2 degrees of freedom. F and the slope's t agree.
Before this: The four regression assumptions and what residual plots reveal, Estimation and Hypothesis Testing
On the exam
- Describe and compare the assumptions of simple linear regression, identify violations through analyzing residuals, evaluate the estimated model’s goodness-of-fit and regression coefficients, and results of ANOVA estimates
Evaluate the estimated model's goodness of fit and its coefficients. Expect R² read from an output or from SSR and SST, the correlation as √R² with the slope's sign, a p-value compared with α, and t-tests of the slope against 0 or 1 and of the intercept against 0, as in a test of unbiased forecasts. Wrong options use n − 1 degrees of freedom or forget to subtract the hypothesized value.
How deeply to learn each part
- Know the idea
- Understand it in general. It frames other topics, but you will not calculate with it.
- Use it
- Understand it well enough to solve a question with it. Recognize when it applies.
- Memorize
- Learn it by heart. The exam will not give it to you.
You know this one. The full lesson is folded away. The takeaways, formulas and checkpoint below are your quick refresher, and the checkpoint is a fair test of whether you still do.
You tested strong here. The full lesson is folded away. The takeaways, formulas and checkpoint below are your quick refresher, and the checkpoint is a fair test of whether you still know it.
How well does the line fit?
The coefficient of determination , , is the share of the variation in Y that the model explains. The total variation, the sum of squares total (SST), splits into the explained part, the sum of squares regression (SSR), and the unexplained part, the sum of squares error (SSE), so SST = SSR + SSE.
In simple regression is also the square of the correlation between X and Y. Unlike the standard error of the estimate in the next lesson, it has no units. Three numbers summarize fit: , the F-statistic and the standard error of the estimate (, also called SEE; lesson 4). describes the fit; it is not a test of significance.
A regression has SSR = 62.727 and SST = 65.5. R² is closest to:
62.727 ÷ 65.5 = 0.9577
Coefficient of determination, R²0.9577
- 62.727÷65.5=
- 62.727ENTER65.5÷
ENTER enter (on the HP, puts the number on the stack)
Try this 0 of 3
- Test the slope against 1 (worked example data, 5%).
- Add noise until R² falls below 0.80, and watch s_b̂₁ as you go.
- With B₁ = 0 at 5%, find the noise level where the slope stops being significant.
With no added noise, the line explains 95.8% of the variation in revenue growth (R² 0.958), F = 90.47, the slope's standard error is 0.136 and t against 0.00 is 9.51: reject at 5%. More noise, less fit, bigger standard error, smaller t.
Each point's deviation from Ȳ, split in two
- Explained, Ŷ − Ȳ
- Unexplained, Y − Ŷ
- Mean Ȳ
| Source | Sum of squares | df | Mean square | F |
|---|---|---|---|---|
| Regression | 62.727 | 1 | 62.727 | 90.47 |
| Error | 2.773 | 4 | 0.693 | |
| Total | 65.500 | 5 |
R² = SSR ÷ SST = 62.727 ÷ 65.500 = 0.958. Standard error of the estimate s_e = √MSE = 0.833.
|t| = 9.51 > 2.776: reject H₀: b₁ = 0.00 at 5%. The estimated slope of 1.293 is significantly different from 0.00.
Show working
Ŷ = 1.3867 + 1.2933X (b̂₀ 1.3867, b̂₁ 1.2933); Ȳ = 8.5000.
SST = Σ(Y − Ȳ)² = 65.5000. SSE = Σ(Y − Ŷ)² = 2.7733. SSR = SST − SSE = 62.7267.
R² = SSR ÷ SST = 62.7267 ÷ 65.5000 = 0.9577; r = √R² with the slope's sign = 0.9786. Not SSE ÷ SST, which is the unexplained share (0.0423).
MSE = SSE ÷ (n − 2) = 2.7733 ÷ 4 = 0.6933; s_e = √MSE = 0.8327. F = MSR ÷ MSE = 62.7267 ÷ 0.6933 = 90.47 vs 7.709 (F(1, 4), 5%): the model is significant.
s_b̂₁ = s_e ÷ √Σ(X − X̄)² = 0.8327 ÷ √37.5 = 0.1360.
t = (b̂₁ − B₁) ÷ s_b̂₁ = (1.2933 − 0.00) ÷ 0.1360 = 9.512, df = n − 2 = 4; critical ±2.776; p-value 0.0007. Reject H₀.
Against zero: t = 9.512; the F-test reaches the same verdict (significant). In simple regression the F-test and the slope's t-test against zero always agree.
Intercept: s_b̂₀ = s_e × √(1/n + X̄² ÷ Σ(X − X̄)²) = 0.8327 × √(1/6 + 5.50² ÷ 37.5) = 0.8215; t = (b̂₀ − 0) ÷ s_b̂₀ = 1.3867 ÷ 0.8215 = 1.688 → not significant at 5%.
- 2NDDATA2NDCLR WORKclear old data
- 2ENTER↓4ENTER↓X01, Y01
- 3ENTER↓5ENTER↓X02, Y02
- 5ENTER↓9ENTER↓X03, Y03
- 6ENTER↓8ENTER↓X04, Y04
- 8ENTER↓12ENTER↓X05, Y05
- 9ENTER↓13ENTER↓X06, Y06
- 2NDSTATpress 2ND SET until LIN shows
- ↓↓↓↓↓↓↓↓a = 1.3867 (intercept)
- ↓b = 1.2933 (slope)
- ↓r = 0.9786
2ND second function (the shifted label above a key) · DATA data worksheet · CLR WORK clear the worksheet · ENTER enter (on the HP, puts the number on the stack) · STAT statistics worksheet
- fCLEAR Σ
- 4ENTER2Σ+Y first, then X
- display1
- 5ENTER3Σ+Y first, then X
- display2
- 9ENTER5Σ+Y first, then X
- display3
- 8ENTER6Σ+Y first, then X
- display4
- 12ENTER8Σ+Y first, then X
- display5
- 13ENTER9Σ+Y first, then X
- display6
- 0gŷ,rSTO7a = 1.3867 (intercept: ŷ at x = 0
- storeitinR7,sinceΣ+keepsnandthesumsinR1toR6)
- x≷yr = 0.9786
- 1gŷ,rRCL7−b = 1.2933 (slope: ŷ at x = 1 minus ŷ at x = 0)
f gold shift key · CLEAR Σ clear the statistics registers · ENTER enter (on the HP, puts the number on the stack) · Σ+ add a data point · g blue shift key · ŷ,r estimated y and correlation · STO store · x≷y swap the last two numbers · RCL recall a stored number
Display: b₀ 1.3867, b₁ 1.2933, r 0.9786
- 1.2933−0=÷0.136=t = 9.512
- 1.2933ENTER0−0.136÷t = 9.512
ENTER enter (on the HP, puts the number on the stack)
Display: t = 9.512
Going the other way, the correlation is the square root of , and it takes the sign of the slope.
Is the model significant? The F-test
The F-test of the model asks whether the regression explains anything at all. In simple regression the null is that the slope is zero. The statistic is the explained variation per slope divided by the unexplained variation per remaining degree of freedom: the mean square regression (MSR) divided by the mean square error (MSE). It is a one-tailed, right-tailed test with 1 and degrees of freedom.
Read F as “big is bad for the null”: a large F rejects the claim that the model explains nothing, and an F near zero means it explains little. Lesson 4 builds F from the analysis of variance (ANOVA) table.
For the retailers, MSR = 62.727 and MSE = 2.7733 ÷ 4 = 0.69333, so . The 5% critical value of F with 1 and 4 degrees of freedom is 7.71, so reject: the model is significant.
How do you test the slope?
Each coefficient has an estimate and a standard error. The standard error of the slope coefficient falls when the residuals are small and when X is spread out widely.
The t-test of the slope then asks how many standard errors the estimate sits from the hypothesized slope . The test has degrees of freedom because two coefficients were estimated.
If exceeds the critical value, reject . Software also reports a p-value : the smallest significance level at which you would reject. Reject when the p-value is below your chosen .
The alternative can be two-sided (the slope differs from ) or one-sided (it is above, or below, ); a one-sided test puts all of in one tail. Lowering cuts the risk of a Type I error (rejecting a true null) but raises the risk of a Type II error (missing a false one).
A regression gives a slope of 1.2933 with a standard error of 0.136. The t-statistic for H₀: B₁ = 1 is closest to:
(1.2933 − 1) ÷ 0.136 = 2.1566
Test statistic, t2.1566
- 1.2933−1=÷0.136=
- 1.2933ENTER1−0.136÷
ENTER enter (on the HP, puts the number on the stack)
With one independent variable, the F-test and the slope’s t-test against zero reach the same conclusion. With several independent variables, only F tests the slopes together.
What about the intercept?
The test of the intercept works the same way, with and degrees of freedom. Output tables give the standard error of the intercept ; you can also build it:
- Goodness of fit Memorize how much of Y the line explains
- R² = SSR ÷ SST explained share, 0 to 1; describes, does not test
- F-test of the model H₀: slope is zero; a large F rejects
- s_e typical miss in the units of Y (lesson 4)
-
- Tests of the coefficients Memorize t-tests with n − 2 degrees of freedom
- Slope t = (b̂₁ − B₁) ÷ s_b̂₁
- Intercept t = (b̂₀ − B₀) ÷ s_b̂₀; unbiased forecasts: intercept 0, slope 1
-
- Reading the result Use it compare with the critical value or p-value
- |t| above critical value, or p below α reject H₀: the coefficient differs from the hypothesized value
- |t| at or below critical value fail to reject H₀
-
Are the forecasts unbiased?
Regress actual outcomes (Y) on forecasts (X). Unbiased forecasts mean an intercept of 0 and a slope of 1, so test each against its own hypothesized value. This is the test of unbiased forecasts .
Testing whether two group means differ
Lesson 1 showed that with an indicator variable as X, the slope is the difference between the two group means. Its t-test is therefore a test of whether the means differ.
Exam tip When a question asks whether beta “differs from 1”, write the subtraction down before you divide.
Go deeper Why the F-test and the t-test agree here
The F-test checks whether all slope coefficients are jointly zero. With a single slope, that is the same claim the slope’s t-test makes, and the square of a t-statistic with degrees of freedom follows the F-distribution with 1 and . With several independent variables, F tests all slopes at once and no single t-statistic equals it. You can check it on the retailers: with t to four decimals, . Treat it as a check, not a formula to learn.
Go deeper Testing a stock's beta against 1
Regress a stock’s excess returns on the market’s excess returns and the slope is its beta (lesson 7). Asking whether beta differs from 1 is a slope test with , exactly as above. A beta of 1.22 can look high but still be statistically indistinguishable from 1 when the standard error is large.
Go deeper Statistically significant versus economically meaningful
With a large sample, a tiny slope can have a huge t-statistic. Statistical significance tells you the slope is unlikely to be zero, not that it is large enough to matter for a decision. Judge the size of the coefficient in its units alongside its t-statistic.
Memorize this
MemorizeFit and coefficient tests
| Item | Rule |
|---|---|
| (explained share), a description, not a test | |
| Correlation | , sign of the slope |
| t-statistic | |
| Degrees of freedom (t) | |
| F-statistic | , df and ; same verdict as the slope t-test |
| Decision | critical → reject; or reject when |
| Unbiased forecasts | intercept and slope (two t-tests) |
Memory hook The slope test is "estimate minus claim, over its own standard error": the same shape as every t-test you know. n − 2 because two coefficients were estimated.
Know it cold To test a slope against 1, subtract 1 first. Testing against zero is the special case where there is nothing to subtract.
- Goodness of fit Memorize how much of Y the line explains
- R² = SSR ÷ SST explained share, 0 to 1; describes, does not test
- F-test of the model H₀: slope is zero; a large F rejects
- s_e typical miss in the units of Y (lesson 4)
-
- Tests of the coefficients Memorize t-tests with n − 2 degrees of freedom
- Slope t = (b̂₁ − B₁) ÷ s_b̂₁
- Intercept t = (b̂₀ − B₀) ÷ s_b̂₀; unbiased forecasts: intercept 0, slope 1
-
- Reading the result Use it compare with the critical value or p-value
- |t| above critical value, or p below α reject H₀: the coefficient differs from the hypothesized value
- |t| at or below critical value fail to reject H₀
-
Quick example
SST = 200 and SSE = 52, so SSR = 148. R² = 148 ÷ 200 = 0.74: the model explains 74% of the variation in Y.
- 200−52=÷200= 0.74
- 200ENTER52−200÷ 0.74
ENTER enter (on the HP, puts the number on the stack)
Quick example
R² = 0.81 and a negative slope: r = −√0.81 = −0.90.
- 0.81√x+|- −0.9
√x square root · +|- change sign
- 0.81g√xCHS −0.9
g blue shift key · √x square root · CHS change sign
Quick example
s_e = 2.0 and Σ(X − X̄)² = 64. s_b̂₁ = 2.0 ÷ √64 = 2.0 ÷ 8 = 0.25.
- 2÷64√x= 0.25
√x square root
- 2ENTER64g√x÷ 0.25
ENTER enter (on the HP, puts the number on the stack) · g blue shift key · √x square root
Quick example
Slope 1.35, standard error 0.20, testing H₀: B₁ = 1. t = (1.35 − 1) ÷ 0.20 = 1.75. With a critical value near 2.0 you fail to reject.
- 1.35−1=÷0.2= 1.75
- 1.35ENTER1−0.2÷ 1.75
ENTER enter (on the HP, puts the number on the stack)
Quick example
s_e = 2.0, n = 25, X̄ = 3, Σ(X − X̄)² = 100: 2.0 × √(0.04 + 0.09) = 2.0 × √0.13 = 0.72.
- 3x²÷100+251/x=√x×2= 0.7211
x² square · 1/x reciprocal · √x square root
- 3ENTER×100÷251/x+g√x2× 0.7211
ENTER enter (on the HP, puts the number on the stack) · 1/x reciprocal · g blue shift key · √x square root
How it is asked
-
R² from sums of squares
SST = 200, SSE = 52. R²?
SSR = 148, R² = 148 ÷ 200 = 0.74. Trap: SSE ÷ SST = 0.26.
-
Test beta against 1
b̂₁ = 1.22, standard error 0.12, n = 27. t for H₀: B₁ = 1?
(1.22 − 1) ÷ 0.12 = 1.83. |t| < 2.060 (df 25): fail to reject. Trap: 1.22 ÷ 0.12 = 10.17 tests against zero.
-
Correlation from R²
R² = 0.49 and the slope is −1.3. Correlation?
−√0.49 = −0.70. Traps: +0.70 (sign ignored), 0.49 (R² itself).
-
Unbiased forecasts?
Actual on forecast: intercept 0.35 (standard error 0.22), slope 0.93 (standard error 0.04), critical t 2.048.
t = 1.59 and (0.93 − 1) ÷ 0.04 = −1.75: no evidence of bias. Trap: 0.93 ÷ 0.04 = 23.25 tests the slope against zero.
Exam traps
- Using R² = SSE ÷ SST: that is the unexplained share. R² = SSR ÷ SST.
- Testing H₀: B₁ = 1 with b̂₁ ÷ s_b̂₁. Subtract the hypothesized value first.
- Using n − 1 degrees of freedom instead of n − 2.
- Comparing R² with the significance level. R² describes fit; significance comes from F, a t-statistic or a p-value.
- Dropping the slope's sign when taking r = √R².
Checkpoint
4 exam-style questions. About 90 seconds each.
1A regression has SST = 120 and SSE = 30. R² is closest to:
2A regression of a stock's excess returns on the market's excess returns gives b̂₁ = 0.84 with a standard error of 0.30 (n = 42). To test whether beta differs from 1, the t-statistic is closest to:
3A regression uses X = 1 for months with a policy-rate cut and 0 otherwise. The slope coefficient best represents the:
4An analyst regresses a company's actual quarterly earnings growth on a broker's forecasts over 32 quarters to test whether the forecasts are unbiased. The intercept is −0.45 (standard error 0.25) and the slope is 1.12 (standard error 0.05). The 5% critical t-values are 1.697 (one-tailed) and 2.042 (two-tailed). The analyst should most likely conclude that the forecasts are:
Key takeaways
- R² = SSR ÷ SST, the explained share; r = √R² with the slope's sign.
- The F-test judges the whole model and agrees with the slope's t-test in simple regression.
- t = (estimate − hypothesized value) ÷ standard error, with n − 2 degrees of freedom; reject when |t| beats the critical value or p < α.
- Unbiased forecasts: intercept 0 and slope 1, each tested with t.
Quick example
SST = 200 and SSE = 52, so SSR = 148. R² = 148 ÷ 200 = 0.74: the model explains 74% of the variation in Y.
- 200−52=÷200= 0.74
- 200ENTER52−200÷ 0.74
ENTER enter (on the HP, puts the number on the stack)
Quick example
R² = 0.81 and a negative slope: r = −√0.81 = −0.90.
- 0.81√x+|- −0.9
√x square root · +|- change sign
- 0.81g√xCHS −0.9
g blue shift key · √x square root · CHS change sign
Quick example
s_e = 2.0 and Σ(X − X̄)² = 64. s_b̂₁ = 2.0 ÷ √64 = 2.0 ÷ 8 = 0.25.
- 2÷64√x= 0.25
√x square root
- 2ENTER64g√x÷ 0.25
ENTER enter (on the HP, puts the number on the stack) · g blue shift key · √x square root
Quick example
Slope 1.35, standard error 0.20, testing H₀: B₁ = 1. t = (1.35 − 1) ÷ 0.20 = 1.75. With a critical value near 2.0 you fail to reject.
- 1.35−1=÷0.2= 1.75
- 1.35ENTER1−0.2÷ 1.75
ENTER enter (on the HP, puts the number on the stack)
Quick example
s_e = 2.0, n = 25, X̄ = 3, Σ(X − X̄)² = 100: 2.0 × √(0.04 + 0.09) = 2.0 × √0.13 = 0.72.
- 3x²÷100+251/x=√x×2= 0.7211
x² square · 1/x reciprocal · √x square root
- 3ENTER×100÷251/x+g√x2× 0.7211
ENTER enter (on the HP, puts the number on the stack) · 1/x reciprocal · g blue shift key · √x square root
All Quantitative Methods formulas, every lesson
Practice exam-style questions on Simple Linear Regression in Finance
Questions about this lesson?
Where this comes back
- The ANOVA table and the standard error of the estimate Simple Linear Regression in Finance
- Simple Linear Regression in Finance Quantitative Methods
Questions candidates ask
What does R-squared mean in regression?
R² is the share of the variation in Y that the regression explains: SSR ÷ SST. An R² of 0.80 means 80% of the variation is explained and 20% is not. Its square root, with the slope's sign, is the correlation. It says nothing about whether the assumptions hold.
How do you test if a regression slope is significant?
Compute t = (b̂₁ − B₁) ÷ s_b̂₁, where B₁ is the hypothesized slope (zero for a significance test), and compare |t| with the critical value for n − 2 degrees of freedom. If |t| is larger, or the p-value is below your significance level, reject H₀.
Do the F-test and the t-test agree in simple regression?
Yes. With one independent variable both test whether the slope is zero and reach the same verdict. With several independent variables, F tests all the slopes together and each t-test judges one coefficient.
Spotted an error? Tell us and we will fix it.