Regression Foundations

Confidence Intervals

A reading guide for lecture p-04 — the last rung on the road map, and the one idea students most often get backwards.

Section one

Key concepts

The formulas and definitions the slides depend on, each stated as a claim.

Key concepts

A sampling distribution is the distribution of a statistic, not of data.

  • Draw a sample, compute a statistic, write it down. Repeat.
  • Population statistic: μ (fixed, unknown).
  • Sample statistic: x (varies from sample to sample).
  • The spread of those sample statistics is the sampling distribution.

The standard error is the “average error” of a sample statistic.

How far, on average, will our best guess be from the truth?

SEx = sxn     SEb1 = σ2ε(xix)2

The Central Limit Theorem is what makes inference possible.

The sampling distribution of the mean is always normal, no matter what the population looks like. As the slide notes parenthetically — otherwise we would not have inferential statistics.

A confidence interval is an estimate plus or minus a margin.

xt · SEx  <  μ  <  x + t · SEx
b1t · SEb1  <  β1  <  b1 + t · SEb1

Equivalently, β1 = b1 ± t · SEb1.

The 95% refers to the procedure, not to one interval.

An interval that will contain the true slope in 95% of the samples that we draw.

The parameter is fixed. The interval is what moves from sample to sample.

The road map is now complete.

Of the meanOf the slope
Variance σ2x = (xix)2n − 1 σ2ε = SSEn − 2
Standard deviation σx = σ2x σε = σ2ε
Standard error SEx = σxn SEb1 = σ2ε(xix)2
Confidence interval μ = x ± t · SEx β1 = b1 ± t · SEb1

Section two

Key relationships

The mental map. How the pieces connect, and how to read the deck.

The interval moves; the parameter does not

Slides 15 through 17 are the most important sequence in the deck, and they are easy to flip past because each looks almost identical to the last.

In all three, the true mean μ is drawn as a fixed vertical line. What changes is which sample you happened to draw:

Then the question: how often will this happen? Five percent of the time, by construction.

This is the single most misread idea in applied statistics. A 95% confidence interval does not mean there is a 95% chance the true value is inside your interval. Your interval either contains it or it does not — you just cannot tell which. The 95% is a property of the procedure: repeat the study many times, and 95% of the intervals you build this way will capture the truth.

Read the three slides as three draws from the same machine, not as three different situations.

The Central Limit Theorem is load-bearing, not a footnote

Slide 8 is presented as an “aside,” but nothing after it works without it.

A standard error is a single number describing spread. To turn a spread into an interval you also need to know the shape of the sampling distribution — how far out you must go to capture 95% of it. The CLT supplies that shape for free, and crucially it does so regardless of what the population looks like. The population can be skewed, lumpy, bimodal; the distribution of the sample statistic still converges to normal.

That is why the slide’s parenthetical is not a joke: otherwise we would not have inferential statistics. Without a known shape, a standard error would be uninterpretable.

Everything is taught twice, on purpose

This deck has a strict two-column structure, and it is the same structure as the road map:

  1. Establish the concept on the mean, where you already have intuition from your first statistics course.
  2. Re-establish it on the slope, where the arithmetic differs but the logic is identical.

Sampling distribution of the mean → sampling distribution of the slope. Standard error of the mean → standard error of the slope. Confidence interval of the mean → confidence interval of the slope.

If a slope concept feels slippery, find the matching mean slide and reason there first. The transfer is exact; only the formula changes.

Where “significance” is about to come from

Slide 19 plots the confidence interval of the slope against a dashed vertical line at zero. The deck does not say the word yet, but that picture is the whole of hypothesis testing:

That is why the standard error matters so much in practice. It sets the width of the interval, which decides whether zero falls inside. Chain the whole course together and you get:

unexplained variance → standard error → interval width → significance

Every lecture from p-02 forward has been building one link of that chain.

Answering the deck’s own third question

“We care about the sampling variance of which statistic in regression?”

The slope, b1. Not of Y, not of X, not of the residual. Those all feed into the calculation, but the thing whose sampling distribution we actually care about — the thing we build an interval around and test — is the estimated coefficient.

This is worth saying out loud because the arithmetic spends most of its time on the variance of Y and the variance of X, which makes it easy to lose track of what the answer is about.

A note on the slides’ notation. Slides 18 and 19 both write the interval with a greater-than sign on the right — b1t · SE < β1 > b1 + t · SE. That should be a second less-than sign; as written it says β1 is larger than both endpoints, the opposite of the intended meaning. Read both as < … <.

How to read the slides

SlidesWhat they are doingWhat to take away
2–3Road map and metaphorsCarried over. The fourth rung is finally the subject.
4–7Sampling distribution of the meanPopulation μ = 5, one sample gives x = 5.4. The gap is the error.
8The CLT “aside”Not an aside. This is what makes intervals possible.
9–12Sampling distribution of the slopeSame story, now for b1. Watch n=10 vs n=50.
13The intuitive standard errorRepeated from p-03. Skim if it is solid.
14Confidence intervals definedRead this sentence carefully — it is about samples, not about one interval.
15–17The three-draw sequenceThe thesis. The interval moves; μ does not. Misses happen 5% of the time.
18–19The formulasMean, then slope. Note the typo in the inequality.
20The road map, completeAll four rungs, both columns.
21Four questionsA real checklist this time, not a summary.

Section three

What should be clear in my mind?

The deck’s four questions, and what each is looking for.

  1. What is a sampling distribution? The distribution of a statistic across repeated samples from the same population — not the distribution of your data. A dot in it is one study, not one observation.
  2. What is the relationship between the sampling distribution and the standard error? The standard error is the standard deviation of the sampling distribution. It measures the typical distance from an estimate to the truth.
  3. We care about the sampling variance of which statistic in regression? The slope, b1. Everything else is an input to computing it.
  4. What role does the standard error play in the confidence interval? It sets the width. The interval is the estimate plus or minus t standard errors, so a smaller standard error means a tighter interval and a more informative result.

Key takeaways