ECON 310 · Econometrics I

Standard Errors and Inference in Regression

A slope is a guess from one sample. Standard errors, t statistics and confidence intervals tell you how far that guess could be off.

Key takeaways

  • A standard error measures how much an estimate would typically vary from sample to sample.
  • The t statistic is the estimate divided by its standard error; a large value (about 2 or more in magnitude) suggests the true value is not zero.
  • A 95% confidence interval is roughly the estimate plus or minus about two standard errors, with exact multipliers coming from the t distribution.
  • A p-value is the chance of seeing a result at least this extreme if the true slope were really zero.
  • "Statistically significant" does not mean "important," and "not significant" does not mean "no effect."

You ask five friends how long they studied and what they scored on a quiz. OLS says each extra hour goes with 8.5 more points. Then a skeptic leans over and says, "Five people? You might have just gotten lucky."

The skeptic has a point. Pick five different friends and you would get a different slope, maybe 6 or 11. The number 8.5 is a guess drawn from one small sample. The big question is: how much could it have wobbled, and is the true slope even different from zero? Answering those questions is called inference: drawing conclusions about a whole population from a sample. The tools are the standard error, the t statistic and the confidence interval.

This lesson uses the same five students from The Line of Best Fit, and it leans on the assumptions in The Classical Assumptions.

Why estimates wobble

Think of the slope as a measurement taken with a slightly shaky ruler. Each sample of students gives a slightly different reading. If you could repeat the whole study a thousand times, you would get a thousand slopes, and they would pile up in a bell-shaped heap centered near the true slope (if OLS is unbiased). How wide that heap is tells you how reliable a single reading is.

The width of that heap, measured as a typical distance from its center, is the standard error of the slope. A small standard error means a tight heap: samples agree, so our one reading is probably close. A large one means a wide heap: another sample could have given something quite different.

You almost never get to repeat the study, so statisticians estimate the standard error from the one sample you have. That is the clever part.

What makes the standard error small

The formula for the slope's standard error shows three levers:

SE(b₁) = s ÷ √Σ(x − x̄)²      where s = √(sum of squared residuals ÷ (n − 2))
  • A smaller scatter around the line (smaller s) gives a smaller standard error. Tight clouds make firm slopes.
  • More spread in x gives a smaller standard error, because the bottom of the fraction grows. It is easier to see the effect of study hours if some students studied 1 hour and others studied 10.
  • More observations make the sum on the bottom bigger and also help s. More data shrinks the standard error.

The n − 2 in s reflects that we used up two pieces of information to estimate the intercept and the slope. The number n − 2 is called the degrees of freedom.

The t statistic
t = b₁ − 0 ÷ SE(b₁) t = t statistic How many standard errors the estimate is from the claimed value b₁ − 0 = Estimate minus the claim The claim is usually that the true slope is zero SE(b₁) = Standard error Typical sample-to-sample wobble of the slope t = b₁ − 0 ÷ SE(b₁) t = t statistic How many standard errors the estimate is from the claimed value b₁ − 0 = Estimate minus the claim The claim is usually that the true slope is zero SE(b₁) = Standard error Typical sample-to-sample wobble of the slope

Worked example: the five students

We have n = 5, the sum of squared residuals 27.5, and Σ(x − x̄)² = 10. Slope b₁ = 8.5.

Step 1: degrees of freedom: n − 2 = 3.

Step 2: s² = 27.5 ÷ 3 = 9.167, so s = √9.167 ≈ 3.03. That is the typical miss of the line, in score points.

Step 3: standard error of the slope: SE = 3.03 ÷ √10 = 3.03 ÷ 3.162 ≈ 0.957.

Step 4: t statistic: t = 8.5 ÷ 0.957 ≈ 8.88.

So the slope sits almost nine standard errors away from zero. That is a big distance. If the true slope were zero, getting a slope this far from zero would be extremely rare.

Testing a claim: the hypothesis test

A hypothesis test asks whether the data are surprising if some claim were true. The claim we test is usually the null hypothesis: the slope is zero, meaning study time has no linear relationship with score in the population. The alternative is that the slope is not zero.

Steps of a hypothesis test
1 State the null For example: the true slope is zero. 2 Compute t Estimate divided by its standard error. 3 Compare Check t against the critical value or find the p-value. 4 Decide Reject the null if the result would be very surprising under it. State the null For example: the true slope is zero. 1 Compute t Estimate divided by its standard error. 2 Compare Check t against the critical value or find the p-value. 3 Decide Reject the null if the result would be very surprising under it. 4

With 3 degrees of freedom, the t distribution (a slightly fatter-tailed cousin of the bell curve used for small samples) says that a value beyond ±3.182 would happen less than 5% of the time if the null were true. Our t of 8.88 far exceeds 3.182, so we reject the null at the 5% level. In fact the chance of a t this large in either direction is well below 1%. That chance is the p-value: the probability of getting a result at least this extreme, if the null were true.

With bigger samples the cutoff drops toward about 1.96, which is where the "about 2" rule of thumb comes from.

Confidence intervals

A test gives a yes or no. A confidence interval gives a range of plausible values for the true slope. The 95% interval is:

b₁ ± (critical t) × SE = 8.5 ± 3.182 × 0.957
                       = 8.5 ± 3.05
                       = from 5.45 to 11.55

We would say: "We are 95% confident that the true slope is between about 5.5 and 11.6 points per hour." The wording needs care. The 95% describes the method: if you repeated the study many times and built an interval each time, about 95% of those intervals would catch the true slope. It does not say there is a 95% chance this particular interval holds the truth, though most working economists use the phrase loosely.

Notice that the interval does not include zero. That matches the test: we rejected "slope = 0." The two ideas are always consistent for the same confidence level.

Where the true slope plausibly sits
Relative plausibility Spread of the estimate 95% interval Estimate 8.5 Possible true slope (points per hour) Relative plausibility Spread of the estimate 95% interval Estimate 8.5 Possible true slope (points per hour)

The interval runs from 5.45 to 11.55 and excludes zero.

Another example: a weaker result

Suppose a study of 200 workers finds that each year of experience goes with $1.00 higher hourly pay, with a standard error of $0.80. Then t = 1.00 ÷ 0.80 = 1.25. That is smaller than the rough cutoff of 2. The 95% interval is about 1.00 ± 1.96 × 0.80 = 1.00 ± 1.57, which runs from −0.57 to 2.57. It includes zero.

What can we say? Not "experience has no effect." The interval allows a fairly big positive effect as well as a small negative one. The honest conclusion is "this study is too noisy to tell." The data neither confirm nor rule out an effect.

Common mistakes

"Significant" means "big." With 100,000 observations, a slope of 0.01 can be statistically significant, and still be trivial for any practical purpose. Significance speaks of how sure we are the slope is not zero, not of how large it is. Always look at the size and the interval, not only the star next to the number.

"Not significant" means "no effect." A small sample can fail to detect a real effect. Lack of evidence is not evidence of lack.

Misreading the p-value. A p-value of 0.03 does not mean there is a 3% chance the null is true. It means that if the null were true, results this extreme would occur 3% of the time.

Hunting for stars. If you try twenty different regressions and report only the one with p < 0.05, you have probably found luck. One in twenty useless variables will cross the line by chance.

Trusting the standard error blindly. The formulas above assume constant error spread and uncorrelated errors. If those fail, the reported standard error may be wrong even though the slope is fine. Heteroskedasticity and Robust Standard Errors shows the repair.

How big a sample do you need?

The standard error shrinks roughly with the square root of the sample size. That has a surprising consequence: to cut the standard error in half, you need four times as many observations, not twice as many. Going from 100 workers to 400 halves the wobble. Going from 400 to 1,600 halves it again. Each gain costs more than the last.

This explains why large surveys run by the Census Bureau or the Bureau of Labor Statistics can detect small differences that a classroom survey of thirty people never could. It also explains why the five-student example, though it produced a high t statistic, deserves modest trust. With only 3 degrees of freedom, the t cutoff is a hefty 3.182, and the whole analysis rests on the assumptions holding in a tiny group. A tidy result from five friends is a fine teaching example and a poor basis for a policy.

Reading the numbers in a printout

Regression software prints a table with one row per coefficient. Each row typically shows the estimate, its standard error, the t statistic and the p-value. A quick way to read a row is to divide the first column by the second in your head. If the estimate is more than about twice its standard error, the coefficient is probably distinguishable from zero. If it is smaller than its standard error, the data say very little about it.

Then look at the size of the estimate and its interval and ask whether the plausible range matters in real life. A slope with an interval from 0.1 to 0.3 points per hour and one with an interval from 4 to 12 points per hour may both be "significant," but they tell very different stories.

Looking ahead

Standard errors work the same way for every coefficient in a larger model. In Multiple Regression and Holding Things Constant you will read t statistics and intervals for several slopes at once. Then, in Testing Several Coefficients: The F Test, you will learn how to test several claims together.

Words to know

Inference drawing conclusions about a population from a sample, including how sure we can be.

Standard error an estimate of how much a statistic, such as a slope, would vary from sample to sample.

t statistic an estimate divided by its standard error, showing how far it is from the claimed value in standard-error units.

Null hypothesis the claim being tested, often that a true coefficient equals zero.

p-value the chance of a result at least this extreme if the null hypothesis were true.

Confidence interval a range of plausible values for the true coefficient built from the estimate and its standard error.

Degrees of freedom the sample size minus the number of coefficients estimated, used to pick the right t cutoff.

Check yourself

  1. What does a standard error measure?
  2. List the three things that make a slope's standard error smaller.
  3. In the five-student example, how do you get the standard error 0.957? Show the main steps.
  4. A slope estimate is 3.0 with a standard error of 1.2. Find the t statistic and say whether it is beyond the rough cutoff of 2.
  5. Using 1.96 as the multiplier, build a 95% interval for a slope of 4.0 with a standard error of 1.0.
  6. Explain why a statistically significant slope can still be unimportant.
Show the answers
  1. How much an estimate, such as a slope, would typically vary if you drew a new sample.
  2. Less scatter around the line, more spread in x, and more observations.
  3. s² = 27.5 ÷ 3 ≈ 9.167, s ≈ 3.03, then 3.03 ÷ √10 = 3.03 ÷ 3.162 ≈ 0.957.
  4. t = 3.0 ÷ 1.2 = 2.5, which is beyond 2, so the slope is likely different from zero.
  5. 4.0 ± 1.96 × 1.0 = 4.0 ± 1.96, which gives about 2.04 to 5.96.
  6. With very many observations even a tiny slope can be distinguished from zero, but a tiny slope may matter little in practice.

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: Simple regression

  1. What Econometrics Is ForEconometrics uses data and statistics to answer economic questions: how big is an effect, and how sure are we?11 min
  2. Correlation Is Not CausationTwo things can move together without one causing the other. Learn the three reasons why and how economists find real causes.10 min
  3. The Line of Best Fit: Ordinary Least SquaresOrdinary least squares picks the line that makes the squared gaps between data and line as small as possible. Here is how to compute it by hand.10 min
  4. Interpreting Slopes, Intercepts and R-SquaredTurn a fitted line into plain English: what the slope and intercept mean, and what R-squared says about how much the line explains.10 min
  5. The Classical AssumptionsOLS gives trustworthy answers only under certain conditions. Learn the classical assumptions, what each one buys you, and how each can fail.11 min
  6. Standard Errors and Inference in RegressionA slope is a guess from one sample. Standard errors, t statistics and confidence intervals tell you how far that guess could be off.10 min

In the news