A regression table answers two questions about each explanatory variable. How large is its estimated relationship with the outcome? And, because the coefficient is an estimate from one sample, how far could it be from the population coefficient? The first column, the coefficient, answers the first question. The columns to its right answer the second: the standard error estimates the typical distance between the coefficient and the population coefficient across samples, and the t-statistic, p-value and interval use it to say which population values the data rule out.
Reading across a row, the columns are:
- Coefficient. The estimated difference in the outcome (the dependent variable) that goes with a one-unit difference in that explanatory variable, holding the others fixed.
- Standard error. An estimate of the standard deviation of the coefficient across repeated samples: the typical distance between the coefficient and the population coefficient.
- t-statistic. The coefficient divided by its standard error.
- p-value. How likely a t-statistic at least that far from zero would be if the true coefficient were zero.
- 95% confidence interval. The range of true values of the coefficient that are compatible with the data.
The lines above or below the table describe the regression as a whole: the number of observations, R-squared (the share of the variation in the outcome that the explanatory variables, also called regressors, account for) and the F-test (whether the regressors jointly account for anything). One rule ties three of the columns together: a t-statistic beyond the 5% critical value in either direction (1.9645 in the regression below, close to 2), a p-value below 0.05 and a 95% interval that excludes zero are the same statement.
1. A real regression table in Stata, R and Python
The table we will read comes from one of the data sets that accompany Wooldridge's textbook: 526 US workers surveyed in 1976 (WAGE1). The dependent variable is the logarithm of the hourly wage, lwage. The explanatory variables are years of education (educ), years of work experience (exper) and years with the current employer (tenure). The question behind the regression is how pay differs with education among workers who have the same experience and tenure.
The table gives the estimated regression of log wage on education, experience and tenure, one row for each variable. The numbers in circles are used in the rest of the page.
| Variable | 1 Coefficient | 2 Std. error | 3 t | 4 p-value | 5 95% interval |
|---|---|---|---|---|---|
| educ | 0.0920 | 0.0073 | 12.56 | 0.000 | 0.0776 to 0.1064 |
| exper | 0.0041 | 0.0017 | 2.39 | 0.017 | 0.0007 to 0.0075 |
| tenure | 0.0221 | 0.0031 | 7.13 | 0.000 | 0.0160 to 0.0281 |
| constant | 0.2844 | 0.1042 | 2.73 | 0.007 | 0.0797 to 0.4890 |
6 The whole regression: n = 526, R-squared = 0.316, adjusted R-squared = 0.312, F(3, 522) = 80.39 with p below 0.0001, root MSE = 0.441.
- 1 Coefficient, 0.0920. On average, among workers with the same experience and tenure, those with one more year of education are paid about 9.2% more. (The outcome is a log wage. A difference of 0.0920 in log pay multiplies pay by \(e^{0.0920}\), which is close to 1 + 0.0920 for a number this small, so the coefficient reads as about 9.2%.)
- 2 Standard error, 0.0073. Another sample of 526 workers would give a different coefficient. The standard error, 0.7 of a percentage point, estimates the typical distance between the coefficient and the population coefficient across samples.
- 3 t, 12.56. The coefficient lies 12.6 standard errors above zero.
- 4 p-value, 0.000. If the coefficient in the population were zero, a t-statistic this far from zero would occur in fewer than 5 samples in 10,000. The 0.000 is rounded; it is not an exact zero.
- 5 95% interval, 0.0776 to 0.1064. The data are compatible with an extra year of education going with anything from 7.8% to 10.6% higher pay.
Stata, R and Python print these numbers in three different layouts. Choose the program your course uses to see the commands and what appears on screen; the educ row is tinted in each.
Stata: the code
* once: ssc install bcuse bcuse wage1, clear regress lwage educ exper tenure
Stata: what it prints
. regress lwage educ exper tenure
Source | SS df MS Number of obs = 526
-------------+---------------------------------- F(3, 522) = 80.39
Model | 46.8741776 3 15.6247259 Prob > F = 0.0000
Residual | 101.455574 522 .194359337 R-squared = 0.3160
-------------+---------------------------------- Adj R-squared = 0.3121
Total | 148.329751 525 .28253286 Root MSE = .44086
------------------------------------------------------------------------------
lwage | Coefficient Std. err. t P>|t| [95% conf. interval]
-------------+----------------------------------------------------------------
educ | .092029 .0073299 12.56 0.000 .0776292 .1064288
exper | .0041211 .0017233 2.39 0.017 .0007357 .0075065
tenure | .0220672 .0030936 7.13 0.000 .0159897 .0281448
_cons | .2843595 .1041904 2.73 0.007 .0796756 .4890435
------------------------------------------------------------------------------
R: the code
library(wooldridge)
data("wage1")
fit <- lm(lwage ~ educ + exper + tenure, data = wage1)
summary(fit)
confint(fit)
R: what it prints
> library(wooldridge)
> data("wage1")
> fit <- lm(lwage ~ educ + exper + tenure, data = wage1)
> summary(fit)
Call:
lm(formula = lwage ~ educ + exper + tenure, data = wage1)
Residuals:
Min 1Q Median 3Q Max
-2.05802 -0.29645 -0.03265 0.28788 1.42809
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 0.284360 0.104190 2.729 0.00656 **
educ 0.092029 0.007330 12.555 < 2e-16 ***
exper 0.004121 0.001723 2.391 0.01714 *
tenure 0.022067 0.003094 7.133 3.29e-12 ***
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Residual standard error: 0.4409 on 522 degrees of freedom
Multiple R-squared: 0.316, Adjusted R-squared: 0.3121
F-statistic: 80.39 on 3 and 522 DF, p-value: < 2.2e-16
> confint(fit)
2.5 % 97.5 %
(Intercept) 0.0796755675 0.48904351
educ 0.0776292151 0.10642876
exper 0.0007356984 0.00750652
tenure 0.0159896854 0.02814475
Python: the code
import wooldridge
import statsmodels.formula.api as smf
wage1 = wooldridge.data("wage1")
fit = smf.ols("lwage ~ educ + exper + tenure", data=wage1).fit()
print(fit.summary())
Python: what it prints
OLS Regression Results
==============================================================================
Dep. Variable: lwage R-squared: 0.316
Model: OLS Adj. R-squared: 0.312
Method: Least Squares F-statistic: 80.39
Date: Thu, 08 Oct 2026 Prob (F-statistic): 9.13e-43
Time: 14:49:41 Log-Likelihood: -313.55
No. Observations: 526 AIC: 635.1
Df Residuals: 522 BIC: 652.2
Df Model: 3
Covariance Type: nonrobust
==============================================================================
coef std err t P>|t| [0.025 0.975]
------------------------------------------------------------------------------
Intercept 0.2844 0.104 2.729 0.007 0.080 0.489
educ 0.0920 0.007 12.555 0.000 0.078 0.106
exper 0.0041 0.002 2.391 0.017 0.001 0.008
tenure 0.0221 0.003 7.133 0.000 0.016 0.028
==============================================================================
Omnibus: 11.534 Durbin-Watson: 1.769
Prob(Omnibus): 0.003 Jarque-Bera (JB): 20.941
Skew: 0.021 Prob(JB): 2.84e-05
Kurtosis: 3.977 Cond. No. 135.
==============================================================================
Notes:
[1] Standard Errors assume that the covariance matrix of the errors is correctly specified.
In each printout, find the block with one row per variable (educ, exper, tenure and the constant). That block is the table above. R's summary() leaves out the intervals, and confint(fit) adds them. The Python printout ends with a block of diagnostic statistics (Omnibus, Durbin-Watson, Jarque-Bera, Cond. No.), which are not needed for reading the table and are not covered here.
The programs use different names for the same things:
| On this page | Stata | R | Python (statsmodels) |
|---|---|---|---|
| 1 Coefficient | Coefficient | Estimate | coef |
| 2 Standard error | Std. err. | Std. Error | std err |
| 3 t-statistic | t | t value | t |
| 4 p-value | P>|t| | Pr(>|t|) | P>|t| |
| 5 95% interval | [95% conf. interval] | from confint() | [0.025 0.975] |
| Constant | _cons | (Intercept) | Intercept |
| Typical size of a residual | Root MSE | Residual standard error | not printed; the square root of fit.scale |
| F-test of all slopes | F(3, 522) and Prob > F | F-statistic and its p-value | F-statistic and Prob (F-statistic) |
What students say
“Nicky is an excellent econometrics tutor. He explains complex concepts clearly and makes them much easier to understand.”
“I was completely lost in my economics class, and then I started working Nicky and he totally saved me. He was excellent at explaining the material and extremely accommodating to meet with me many times despite us being in different time zones! Highly recommend working with Nicky!”
“Nicky is a very good and thorough teacher. He has excellent knowledge of econometrics and takes the time to work through your questions. Highly recommended!”
“Really great tutor! Encouraging, knowledgeable, friendly”
“Very good lesson, Nicky is very helpful.”
“Very helpful and clear.”
“I gather it was very useful, thank you!”
“Fantastic!”
2. Why the table has these columns
The 526 workers are a sample. The coefficient on education, 0.092, is what this sample gives. A different sample of 526 workers from the same population would give a slightly different number. What we want to know is the value in the population, which we never observe, so a bare estimate is not enough. We also need to know how far it is likely to be from the population value.
That is why every row has more than one number. The coefficient is the estimate. The standard error estimates the typical distance between it and the population value across samples. The t-statistic, the p-value and the confidence interval combine the two to say what the data do and do not rule out. Figure 1 draws the table in this way: a dot for each estimate and a bar for its 95% confidence interval.
The picture shows what the columns say in numbers. Education's interval is far from zero. Experience's interval is short, because its standard error is small, but it sits close to zero, because the coefficient itself is small. The sections below take the columns one at a time.
3. 1 The coefficient: what is a regression coefficient and how do I interpret it?
A coefficient is the estimated difference in the dependent variable that goes with a one-unit difference in that explanatory variable, with the other explanatory variables held fixed. Its units are those of the two variables. Here the dependent variable is a logarithm. A coefficient \(b\) on a log outcome means the outcome is multiplied by \(e^{b}\) for each one-unit difference, and for a small \(b\), \(e^{b}\) is close to \(1 + b\), so 100 times the coefficient is approximately the percentage difference.
- educ, 0.0920. Comparing workers with the same experience and tenure, one more year of education goes with about 9.2% higher hourly pay.
- exper, 0.0041. One more year of experience goes with about 0.4% higher pay, with education and tenure held fixed.
- tenure, 0.0221. One more year with the same employer goes with about 2.2% higher pay, with education and experience held fixed.
- The constant, 0.2844. This is the predicted log wage of a worker with no education, no experience and no tenure. Nobody in the sample is like that, so the constant fixes the height of the fitted line and is not interpreted.
"Held fixed" is what separates this regression from three separate ones: regress log wage on education alone and the coefficient is 0.0827, not 0.0920, because education is then also standing in for the experience and tenure that go with it (the OLS explainer works through this). Lesson 12 sets out what each coefficient means with the others held fixed. "Goes with" is used rather than "causes", because the table by itself cannot rule out that something not in the regression, such as ability, moves with education; see correlation and causation. The percentage reading (multiply the coefficient by 100) is an approximation that is good for small coefficients. The exact figure for education is 100 × (e0.0920 - 1) = 9.6%, as logs and elasticities in regression explains; this page uses the quick reading throughout.
The calculation behind the coefficients is ordinary least squares; What is OLS? shows it on five data points.
4. 2 The standard error: what does the standard error tell you in regression?
Imagine drawing many samples of 526 workers and running the same regression on each. The education coefficients would not all be 0.092. Provided nothing left in the error moves with the regressors (assumption 3 in the OLS explainer), they would be spread around the population coefficient. The size of that spread is measured by the variance of the coefficient: the average squared distance between the coefficient and the population coefficient over repeated samples. Under random sampling, and if the errors have the same variance at every value of the regressors (homoskedasticity; section 10 drops this), the variance is the error variance divided by the variation in education that experience and tenure do not account for (the sum of squared residuals from a regression of education on experience and tenure). Its square root returns it to the units of the coefficient, log points per year, and with the error variance estimated from the residuals it is the standard error, 0.0073. A typical distance between the estimate and the population coefficient is therefore about 0.007, which is small next to 0.092: the coefficient is estimated precisely. Lesson 11 builds the one-variable version by hand.
educ in this sample is 2.77 years: it describes how much the workers differ from each other. The standard error of the education coefficient is 0.0073: it describes how much the estimate would differ from sample to sample. Collect more data and the standard deviation stays about the same, while the standard error falls.We can see the standard error falling in the data. Run the same regression on the first 30 workers in the file, then the first 100, then all 526:
| Workers used | Coefficient on educ | Std. error | 95% interval |
|---|---|---|---|
| First 30 | 0.158 | 0.043 | 0.070 to 0.246 |
| First 100 | 0.118 | 0.021 | 0.076 to 0.160 |
| All 526 | 0.092 | 0.0073 | 0.078 to 0.106 |
These are the first rows of the file, so the three samples overlap; the table is there to show how the estimate and its standard error change with the number of workers. The estimate moves, and the standard error falls from 0.043 to 0.0073. Under random sampling the variation in education grows roughly in proportion to the number of workers while the error variance stays the same, so the variance of the coefficient falls roughly in proportion to one over the sample size, and the standard error in proportion to one over its square root: four times the data roughly halves it (lesson 5 shows the same for a mean). Three things make it small: a large sample, little scatter of the points around the fitted line, and plenty of variation in that explanatory variable that is not shared with the other explanatory variables. The five-worker table below computes one from scratch.
Everything to the right of the standard error in a row is calculated from the coefficient, the standard error and the degrees of freedom: the number of observations minus the number of coefficients estimated, 526 - 4 = 522 here, which picks the t distribution that the p-value and the interval are read from.
5. 3 The t-statistic
The t-statistic is the coefficient divided by its standard error. It says how many standard errors the estimate lies from zero:
$$ \begin{aligned} t &= \frac{\text{coefficient}}{\text{standard error}} , \\ t_{\text{educ}} &= \frac{0.09203}{0.00733} = 12.56 . \end{aligned} $$Why zero? Because zero is the value the coefficient would take if the variable had no relationship with the outcome once the others are held fixed. If the population coefficient were zero, estimates would scatter around zero. Under random sampling, and provided the errors have a finite variance, their distribution is approximately normal in large samples (the central limit theorem), and a normal variable lies more than 1.96 standard deviations from its centre with probability 5%. Hence an estimate would land more than 1.96 standard errors from zero in only about 5% of samples, and a t-statistic beyond 1.96 in either direction, about 2, is evidence that the population coefficient is not zero. Education's 12.56 is far beyond it. For experience, t = 0.004121/0.001723 = 2.39: beyond 2, but not by much.
The printed t-statistic tests one hypothesis only, that the coefficient is zero. To test another value, subtract it first. Is the coefficient on education consistent with 0.10, one more year of education going with about 10% higher pay? Then t = (0.09203 - 0.10)/0.00733 = -1.09, which is well inside ±1.96, so the data are compatible with 10%.
6. 4 The p-value
The p-value turns the t-statistic into a probability. It answers this question: if the population coefficient were zero, in what fraction of samples would the t-statistic be at least as far from zero as the one we have? For experience the answer is 0.017, or 1.7% of samples. A small p-value means the data would be surprising if the coefficient were zero, and so counts as evidence against zero. By convention, a coefficient is called statistically significant at the 5% level when p is below 0.05.
Two points about reading it. First, a printed 0.000 does not mean zero. It means the p-value is below 0.0005 and has been rounded; R prints education's as < 2e-16, which means less than 2 × 10-16. Second, the p-value is not the probability that the coefficient is zero, and it says nothing about how large the coefficient is. Hypothesis testing explained builds p-values from first principles.
7. 5 The 95% confidence interval
The confidence interval is a range around the coefficient built to contain the population coefficient in 95% of samples. It is the coefficient plus and minus a multiple of the standard error. In large samples the multiple is the normal 1.96 (section 5). Because the standard error is itself estimated, the multiple is taken from the t distribution with the regression's degrees of freedom; that choice is exact if the errors are normally distributed and a close approximation in a sample this large otherwise. The degrees of freedom are the 522 of section 4, the 526 observations less the 4 coefficients estimated: each estimated coefficient puts one condition on the residuals, so only 522 of them are free (what degrees of freedom mean). For 95% the multiple is 1.9645, which rounds to 1.96:
$$ 0.09203 \pm 1.9645 \times 0.00733 , $$which is 0.0776 to 0.1064.
In words: the data are compatible with a population coefficient anywhere from about 0.078 to 0.106, that is, with one more year of education going with between 7.8% and 10.6% higher pay. The interval gives the size of the relationship and the uncertainty about it together, in the units of the problem. Confidence intervals and t-tests explains how the multiple is chosen and what "95%" does and does not mean.
The t-statistic, the p-value and the interval always agree
The t-statistic, the p-value and the interval are computed from the same coefficient and standard error, with the same degrees of freedom, so they cannot disagree. Take the row for experience.
t-statistic
2.39
larger than the critical value 1.96
p-value
0.017
smaller than 0.05
95% interval
0.0007 to 0.0075
does not contain zero
All three say that the coefficient on experience is statistically significant at the 5% level. Ask for the 1% level instead and all three change together: the critical value rises to 2.59, which is above 2.39; 0.017 is larger than 0.01; and the 99% interval, -0.0003 to 0.0086, contains zero. So the coefficient is significant at 5% and not at 1%, whichever column we look at.
8. 6 The whole regression: R-squared and the F-test
The lines outside the coefficient table describe the regression as a whole.
- Number of observations, 526. Check it first. If it is smaller than the data set, rows with missing values have been dropped.
- R-squared, 0.316. Education, experience and tenure together account for 31.6% of the variation in log wages across these workers; the other 68.4% is in the residuals. In Stata's printout this is the Model sum of squares over the Total, 46.87/148.33. A low R-squared does not make the coefficients wrong, and a high one does not make them right: R-squared and adjusted R-squared explains what the number does and does not show.
- Adjusted R-squared, 0.312. R-squared with a penalty for the number of regressors, used when comparing regressions that have different numbers of variables.
- Root MSE, 0.441. Root mean squared error, which R calls the residual standard error: the typical size of a residual, in the units of the dependent variable (here log points). Despite the name, it is not the standard error of any coefficient. It measures how far the workers are scattered around the fitted values.
- F(3, 522) = 80.39, Prob > F = 0.0000. The F-test asks whether the regression explains anything at all. Its null hypothesis, the claim being tested, is that all three slope coefficients are zero at once. A p-value below 0.0001 rejects that. With a single regressor the F-statistic is the square of that regressor's t-statistic and adds no new information.
9. Statistically significant is not the same as large
A coefficient can be small and still statistically significant, or large and not significant. The coefficient on experience shows both, depending on how much data we use.
| Workers used | Coefficient on exper | Std. error | t | p-value | 95% interval |
|---|---|---|---|---|---|
| First 30 | 0.0189 | 0.0109 | 1.73 | 0.095 | -0.004 to 0.041 |
| All 526 | 0.0041 | 0.0017 | 2.39 | 0.017 | 0.0007 to 0.0075 |
In the first 30 workers the coefficient is 0.0189, more than four times the full-sample figure, and yet it is not significant at the 5% level: its standard error is so large that the interval runs from below zero to 0.041. In the full sample the coefficient is significant, and it is small. Ten more years of experience go with about 4% higher pay, less than half of what a single extra year of education goes with.
So read the two things separately. Significance comes from the coefficient relative to its standard error, and it depends heavily on the sample size. Size comes from the coefficient and its units, and whether 0.4% a year matters is a question about economics that no column of the table answers.
10. What changes when the standard errors are robust?
The standard errors above are calculated on the assumption that the scatter of the points around the regression line is the same at every value of the regressors (homoskedasticity). When the scatter is uneven, the coefficients are computed in the same way and are still unbiased, but those standard errors no longer estimate the coefficients' standard deviations correctly. Heteroskedasticity-robust standard errors use a formula that does not rely on the assumption. In Stata add , robust to the command; in statsmodels use .fit(cov_type="HC1", use_t=True); in R use coeftest(fit, vcov = vcovHC(fit, type = "HC1")) from the lmtest and sandwich packages.
| Variable | Coefficient | Std. error | t | Robust std. error | t |
|---|---|---|---|---|---|
| educ | 0.0920 | 0.0073 | 12.56 | 0.0079 | 11.62 |
| exper | 0.0041 | 0.0017 | 2.39 | 0.0017 | 2.36 |
| tenure | 0.0221 | 0.0031 | 7.13 | 0.0038 | 5.83 |
| constant | 0.2844 | 0.1042 | 2.73 | 0.1117 | 2.55 |
Stata: the code
* once: ssc install bcuse bcuse wage1, clear regress lwage educ exper tenure, robust
Stata: what it prints
. regress lwage educ exper tenure, robust
Linear regression Number of obs = 526
F(3, 522) = 67.76
Prob > F = 0.0000
R-squared = 0.3160
Root MSE = .44086
------------------------------------------------------------------------------
| Robust
lwage | Coefficient std. err. t P>|t| [95% conf. interval]
-------------+----------------------------------------------------------------
educ | .092029 .0079212 11.62 0.000 .0764676 .1075903
exper | .0041211 .0017459 2.36 0.019 .0006913 .0075509
tenure | .0220672 .003782 5.83 0.000 .0146374 .0294971
_cons | .2843595 .1117069 2.55 0.011 .0649093 .5038098
------------------------------------------------------------------------------
R: the code
library(wooldridge)
library(lmtest)
library(sandwich)
data("wage1")
fit <- lm(lwage ~ educ + exper + tenure, data = wage1)
coeftest(fit, vcov = vcovHC(fit, type = "HC1"))
coefci(fit, vcov = vcovHC(fit, type = "HC1"))
R: what it prints
> library(wooldridge)
> library(lmtest)
Loading required package: zoo
Attaching package: ‘zoo’
The following objects are masked from ‘package:base’:
as.Date, as.Date.numeric
> library(sandwich)
> data("wage1")
> fit <- lm(lwage ~ educ + exper + tenure, data = wage1)
> coeftest(fit, vcov = vcovHC(fit, type = "HC1"))
t test of coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 0.2843595 0.1117069 2.5456 0.01120 *
educ 0.0920290 0.0079212 11.6181 < 2.2e-16 ***
exper 0.0041211 0.0017459 2.3605 0.01862 *
tenure 0.0220672 0.0037820 5.8348 9.461e-09 ***
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
> coefci(fit, vcov = vcovHC(fit, type = "HC1"))
2.5 % 97.5 %
(Intercept) 0.0649092741 0.503809808
educ 0.0764676403 0.107590337
exper 0.0006913121 0.007550906
tenure 0.0146373636 0.029497072
Python: the code
import wooldridge
import statsmodels.formula.api as smf
wage1 = wooldridge.data("wage1")
fit = smf.ols("lwage ~ educ + exper + tenure", data=wage1).fit(cov_type="HC1", use_t=True)
print(fit.summary())
Python: what it prints
OLS Regression Results
==============================================================================
Dep. Variable: lwage R-squared: 0.316
Model: OLS Adj. R-squared: 0.312
Method: Least Squares F-statistic: 67.76
Date: Thu, 08 Oct 2026 Prob (F-statistic): 5.12e-37
Time: 14:49:42 Log-Likelihood: -313.55
No. Observations: 526 AIC: 635.1
Df Residuals: 522 BIC: 652.2
Df Model: 3
Covariance Type: HC1
==============================================================================
coef std err t P>|t| [0.025 0.975]
------------------------------------------------------------------------------
Intercept 0.2844 0.112 2.546 0.011 0.065 0.504
educ 0.0920 0.008 11.618 0.000 0.076 0.108
exper 0.0041 0.002 2.360 0.019 0.001 0.008
tenure 0.0221 0.004 5.835 0.000 0.015 0.029
==============================================================================
Omnibus: 11.534 Durbin-Watson: 1.769
Prob(Omnibus): 0.003 Jarque-Bera (JB): 20.941
Skew: 0.021 Prob(JB): 2.84e-05
Kurtosis: 3.977 Cond. No. 135.
==============================================================================
Notes:
[1] Standard Errors are heteroscedasticity robust (HC1)
The coefficients are identical in the two versions, and so is R-squared. The standard errors change, and with them the t-statistics, p-values, confidence intervals and the F-statistic: tenure's standard error is 22% larger and its t-statistic falls from 7.13 to 5.83. Here no conclusion changes. That is not guaranteed, so if your course asks for robust standard errors, use them from the start. If the header of your output says "Robust" or "HC1", read the columns exactly as before. Diagnostic tests for the linear model covers how to check for heteroskedasticity.
11. A table you can check by hand
Each column can be built with a calculator when the regression is small enough. The OLS explainer fits a line to five workers, with years of education after 16 as x and hourly pay in pounds as y. It finds a slope of 2.2 and an intercept of 9.6, and residuals of 0.4, 0.2, -1.0, -0.2 and 0.6, whose squares add to 1.60. Give the same five pairs to any of the three programs and the results are:
| Variable | Coefficient | Std. error | t | p-value | 95% interval |
|---|---|---|---|---|---|
| educ16 (the slope) | 2.2 | 0.2309 | 9.53 | 0.002 | 1.465 to 2.935 |
| constant | 9.6 | 0.5657 | 16.97 | 0.000 | 7.800 to 11.400 |
The whole regression: n = 5, R-squared = 0.968, F(1, 3) = 90.75, root MSE = 0.730. Sums of squares: explained 48.4, residual 1.6, total 50.
Stata: the code
clear input educ16 pay 0 10 1 12 2 13 3 16 4 19 end regress pay educ16
Stata: what it prints
. regress pay educ16
Source | SS df MS Number of obs = 5
-------------+---------------------------------- F(1, 3) = 90.75
Model | 48.4 1 48.4 Prob > F = 0.0025
Residual | 1.6 3 .533333333 R-squared = 0.9680
-------------+---------------------------------- Adj R-squared = 0.9573
Total | 50 4 12.5 Root MSE = .7303
------------------------------------------------------------------------------
pay | Coefficient Std. err. t P>|t| [95% conf. interval]
-------------+----------------------------------------------------------------
educ16 | 2.2 .2309401 9.53 0.002 1.465046 2.934954
_cons | 9.6 .5656854 16.97 0.000 7.799737 11.40026
------------------------------------------------------------------------------
R: the code
# five made-up workers: years of education after 16 and hourly pay in pounds workers <- data.frame(educ16 = c(0, 1, 2, 3, 4), pay = c(10, 12, 13, 16, 19)) fit <- lm(pay ~ educ16, data = workers) summary(fit) confint(fit) anova(fit)
R: what it prints
> # five made-up workers: years of education after 16 and hourly pay in pounds
> workers <- data.frame(educ16 = c(0, 1, 2, 3, 4), pay = c(10, 12, 13, 16, 19))
> fit <- lm(pay ~ educ16, data = workers)
> summary(fit)
Call:
lm(formula = pay ~ educ16, data = workers)
Residuals:
1 2 3 4 5
0.4 0.2 -1.0 -0.2 0.6
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 9.6000 0.5657 16.971 0.000446 ***
educ16 2.2000 0.2309 9.526 0.002453 **
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Residual standard error: 0.7303 on 3 degrees of freedom
Multiple R-squared: 0.968, Adjusted R-squared: 0.9573
F-statistic: 90.75 on 1 and 3 DF, p-value: 0.002453
> confint(fit)
2.5 % 97.5 %
(Intercept) 7.799737 11.400263
educ16 1.465046 2.934954
> anova(fit)
Analysis of Variance Table
Response: pay
Df Sum Sq Mean Sq F value Pr(>F)
educ16 1 48.4 48.400 90.75 0.002453 **
Residuals 3 1.6 0.533
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Python: the code
import pandas as pd
import statsmodels.formula.api as smf
# five made-up workers: years of education after 16 and hourly pay in pounds
workers = pd.DataFrame({"educ16": [0, 1, 2, 3, 4], "pay": [10, 12, 13, 16, 19]})
fit = smf.ols("pay ~ educ16", data=workers).fit()
print(fit.summary())
Python: what it prints
OLS Regression Results
==============================================================================
Dep. Variable: pay R-squared: 0.968
Model: OLS Adj. R-squared: 0.957
Method: Least Squares F-statistic: 90.75
Date: Thu, 08 Oct 2026 Prob (F-statistic): 0.00245
Time: 14:49:33 Log-Likelihood: -4.2461
No. Observations: 5 AIC: 12.49
Df Residuals: 3 BIC: 11.71
Df Model: 1
Covariance Type: nonrobust
==============================================================================
coef std err t P>|t| [0.025 0.975]
------------------------------------------------------------------------------
Intercept 9.6000 0.566 16.971 0.000 7.800 11.400
educ16 2.2000 0.231 9.526 0.002 1.465 2.935
==============================================================================
Omnibus: nan Durbin-Watson: 1.725
Prob(Omnibus): nan Jarque-Bera (JB): 0.641
Skew: -0.795 Prob(JB): 0.726
Kurtosis: 2.262 Cond. No. 4.74
==============================================================================
Notes:
[1] Standard Errors assume that the covariance matrix of the errors is correctly specified.
Here is where each number in the slope's row comes from.
- Root MSE. The sum of squared residuals is 1.60. Divide by n - 2 = 3, because two numbers (the intercept and the slope) were estimated from the data, and take the square root: \(\sqrt{1.60/3} = 0.730\). This is the typical size of a residual, in pounds.
- Standard error of the slope. Divide the root MSE by the square root of the sum of squared deviations of x from its mean, which is 10: \(0.730/\sqrt{10} = 0.231\) (0.2309 before rounding). More scatter around the line makes it larger; more spread in x makes it smaller.
- t-statistic. 2.2/0.2309 = 9.53.
- p-value. A t of 9.53 with 3 degrees of freedom has a p-value of 0.0025 (R prints 0.002453; Stata and Python round it to 0.002).
- 95% interval. With only 3 degrees of freedom the multiple is 3.182, not 1.96: 2.2 ± 3.182 × 0.2309 gives 1.47 to 2.93.
- R-squared and F. The squared deviations of pay from its mean add to 50: the Total line of Stata's upper block, and the two
Sum Sqentries of R'sanova(fit)added together. R-squared is 1 - 1.60/50 = 0.968, and F is the square of the slope's t-statistic, 9.52632 = 90.75.
Every number in the table follows from the residuals, the x values and the t distribution. With five observations the interval is wide, 1.47 to 2.93, even though the line fits closely: a high R-squared does not make up for a small sample. (The p-value and the multiple 3.182 are exact only if the errors are normally distributed, which five made-up points cannot tell us; the example shows where the numbers come from.) Lesson 11 of the course goes through this calculation more slowly.
12. How to write up a regression result in one sentence
In an essay or an exam answer the table has to be turned into a sentence that states the size, the units, what is held fixed and the precision. For the wage regression:
The sentence gives the coefficient with its interval, not the coefficient alone, and it says "associated with", because the table does not establish cause. When a results table is required, report each coefficient with its standard error in brackets underneath, and state the sample size and R-squared.
13. Common mistakes
- Reading significance as importance. The coefficient on experience is significant and small. Look at the size of the coefficient and its interval as well as the p-value.
- Reading "not significant" as "no relationship". In the 30-worker regression the interval for experience runs from -0.004 to 0.041. It contains zero, and it also contains values ten times the full-sample estimate. The data there are too few to say much either way.
- Reading the p-value as the probability that the coefficient is zero. It is the probability of a t-statistic this extreme if the coefficient were zero.
- Dropping "holding the others fixed". Each coefficient compares observations that have the same values of the other regressors. Education's coefficient is 0.092 with experience and tenure in the regression and 0.083 without them.
- Confusing the standard error with the standard deviation. One describes the precision of an estimate, the other the spread of the data.
- Reading 0.000 as zero. It is a rounded number: report it as p < 0.001.
14. Check your understanding
Five questions, marked on the page; every option has an explanation, including the wrong ones. (Without JavaScript the explanations are shown beneath each question.)
1. A regression of the hourly wage (in dollars) on years of education reports a coefficient on education of 0.541 with a standard error of 0.053. What is the t-statistic for the hypothesis that the coefficient is zero?
0.053/0.541 = 0.098 is the ratio upside down. The coefficient goes on top and its standard error underneath.
0.541 - 0.053 = 0.488 subtracts the standard error from the coefficient. The t-statistic is a ratio, not a difference: it counts how many standard errors the estimate is from zero.
1.96 is the critical value the t-statistic is compared with in a large sample. It is the same for every coefficient and is not computed from this row.
Correct. t = 0.541/0.053 = 10.2: the estimate is about ten standard errors from zero, far beyond the 1.96 needed at the 5% level.
2. Three coefficients from three different regressions, each with its 95% confidence interval: education, 0.078 to 0.106; experience (in a sample of 30 workers), -0.004 to 0.041; cigarettes, -0.69 to -0.34. Which are statistically significant at the 5% level?
Significant means different from zero, in either direction. The cigarettes interval lies entirely below zero, so that coefficient is significantly negative.
Correct. A 95% interval that excludes zero is the same statement as p below 0.05. The experience interval runs from -0.004 to 0.041, so zero is among the values compatible with the data.
This is the rule the wrong way round. An interval that includes zero means zero is among the values compatible with the data, so that coefficient is the one that is not significant.
3. In the first 30 workers of the wage data, the coefficient on experience is 0.0189 with a standard error of 0.0109. In all 526 workers it is 0.0041 with a standard error of 0.0017. Which statement is right?
Significance is judged by the coefficient relative to its standard error, not by the coefficient alone. 0.0189/0.0109 = 1.73, which is below the critical value.
Closeness to zero in absolute terms says nothing until it is compared with the standard error. 0.0041 is 2.4 standard errors from zero, which is significant at the 5% level.
Correct. t = 0.0041/0.0017 = 2.4 in the full sample, against 0.0189/0.0109 = 1.73 in the small one (critical value 2.06 with 26 degrees of freedom). A large coefficient with a large standard error is weak evidence.
4. You re-run a regression asking for heteroskedasticity-robust standard errors. Which numbers in the coefficient table can change?
Correct. Robust standard errors are a different formula for the uncertainty; the least-squares coefficients are the same numbers as before. In the wage regression the tenure coefficient stays at 0.0221 while its standard error goes from 0.0031 to 0.0038.
The coefficients are still the least-squares ones. Heteroskedasticity does not bias them; it makes the usual standard errors wrong, and only those are replaced.
The two formulas give different numbers in any sample, and close ones when the spread of the errors is even. The software does not check first; it applies the robust formula whenever asked.
5. A regression of log wage on education, experience and tenure prints F(3, 522) = 80.39 with Prob > F = 0.0000. What is the null hypothesis of this test?
This mixes up the two hypotheses. The alternative is that at least one slope is not zero; the null is that all of them are zero.
The intercept is not part of this test. The 3 in F(3, 522) counts the restrictions, one for each slope.
Correct. The F-test in the header asks whether the regressors jointly explain anything. A p-value below 0.0001 rejects the hypothesis that education, experience and tenure all have zero coefficients.
15. Questions people ask
Read across each row. The coefficient is the estimated difference in the outcome that goes with a one-unit difference in that variable, holding the others fixed. The standard error measures its precision. The t-statistic, the p-value and the confidence interval say whether zero is ruled out. Then read R-squared and the F-test for the regression as a whole.
A regression coefficient is the estimated difference in the dependent variable that goes with a one-unit difference in an explanatory variable, holding the other regressors fixed. Interpret it with its units: in a regression of log wage on years of education, a coefficient of 0.092 means about 9% higher pay per extra year.
The standard error estimates the typical distance between a coefficient and the population coefficient across repeated samples, so it measures the precision of the estimate. A coefficient of 0.092 with a standard error of 0.007 is precisely estimated. It is not the standard deviation of the data, and it falls as the sample size grows.
State the size, the units, what is held fixed and the precision. For example: one more year of education is associated with about 9.2% higher hourly pay, holding experience and tenure fixed (95% confidence interval 7.8% to 10.6%, p below 0.001). Give the sample size, and write p < 0.001, never p = 0.000.
Stars mark statistical significance. In R's default output one star means a p-value below 0.05, two below 0.01 and three below 0.001. Other tables use 10%, 5% and 1% instead, so read the note under the table. Stars say that a coefficient can be told apart from zero, not that it is large.
16. Where next
- Lesson 11: reading regression output, which builds the standard error, t and interval from the residuals, with five more marked questions.
- What is OLS? for where the coefficients come from, and R-squared and adjusted R-squared for the fit.
- Confidence intervals and t-tests and hypothesis testing explained, for the interval and the p-value from first principles, and the normal, t, chi-square and F distributions for the critical values.
- Logs and elasticities in regression, for why a coefficient of 0.092 on a log wage reads as about 9%.
- Diagnostic tests for the linear model and the Gauss-Markov theorem, for when the usual standard errors can be trusted.
- Expectation, variance and covariance (lesson 3), the central limit theorem (lesson 4) and standard deviation versus standard error (lesson 5), the statistics underneath the standard error and the t-statistic.
Send me your output: module, question and deadline
I tutor econometrics one-to-one, from a first regression table through to panel data and time series. Bring the output you are stuck on and we will read it together in the free 30-minute consultation.
Book a free 30-minute consultation Econometrics tutor: how it works
Data. Wage regression: Wooldridge, Introductory Econometrics: A Modern Approach, data set WAGE1 (526 workers, 1976 Current Population Survey), loaded with bcuse in Stata and with the wooldridge package in R and in Python; results quoted, data not republished. Robust standard errors are the HC1 version, which is what Stata's robust option reports. Five-worker example: illustrative data.
