Regression Foundations
A reading guide for lecture p-09 — what outliers, measurement error, and the wrong functional form each do to your slope and your standard error.
Section one
The threats the deck catalogues, each stated as a claim.
Key concepts
Anscombe’s quartet: identical summary statistics, four different relationships.
Four datasets with the same mean, variance, correlation, and regression line — and completely different scatterplots. One is well behaved, one is non-linear, two are driven by outliers.
The lesson: summary statistics cannot detect a specification problem. Only the plot can.
Two classes of inferential failure.
A linear transformation is not measurement error.
Linear transformation (X2 = X1 + 100): add the same constant to every value.
Measurement error (X2 = X1 + ε): add random noise, equally likely to over- or under-measure.
Measurement error in the dependent variable inflates standard errors.
Noise in Y goes straight into the residual, which is the numerator of SEb1.
Measurement error in the independent variable causes attenuation bias.
Because var(x1) sits in the denominator of both quantities, inflating it shrinks both:
Outliers do different damage depending on where they sit.
| Position | Slope | SE | Risk |
|---|---|---|---|
| Middle of X | unbiased | larger | false negative |
| Extreme of X, with the trend | too large | larger | false positive |
| Extreme of X, against the trend | too small | larger | false negative |
Leverage comes from distance along X, not from being far from the line.
Fixes for non-linearity.
Section two
The mental map. How the pieces connect, and how to read the deck.
This deck looks like a grab-bag — Anscombe, error types, transformations, outliers, logs, quadratics. It is not. Every section asks the same two questions about a different threat:
And those two answers determine the third: which kind of error you are at risk of. Build this table as you read and the deck becomes one page:
| Threat | Slope | Standard error | Risk |
|---|---|---|---|
| Omitted variable (p-07) | biased | — | Type I |
| Measurement error in Y | unbiased | larger | Type II |
| Measurement error in X | biased toward zero | smaller | too-small effect, held confidently |
| Outlier in middle of X | unbiased | larger | Type II |
| Outlier at extreme, with trend | too large | larger | Type I |
| Outlier at extreme, against trend | too small | larger | Type II |
| Wrong functional form | meaningless | — | either |
Slides 9 through 12 set up a contrast that is easy to skim and worth slowing down for, because both operations look like “changing X.”
Adding 100 to every observation slides the whole distribution to the right. The spacing between points is untouched, so var(x) is untouched, so the slope and the standard error are exactly the same. Only b0 changes, because the intercept answers “what is Y when X = 0,” and X = 0 now means something different.
Adding random error to every observation leaves the centre where it was but spreads the points out. var(x) increases — and var(x) is load-bearing in both formulas you care about.
The distinction is: a constant preserves the ordering and spacing of your data; noise degrades it. That is why one is harmless and the other is not.
Every other threat here either biases you or inflates your standard errors. Measurement error in X does something worse: it shrinks both at once.
Look at the two formulas together. var(x1) is in the denominator of the slope, so a bigger var(x1) makes b1 smaller. And it is in the denominator of the standard error, so it makes SEb1 smaller too.
The result is an estimate that is too close to zero and a confidence interval that is too narrow around it. Nothing in your output looks wrong. You will report a small, precisely estimated effect, and the true effect is larger.
Two consolations. First, the direction is predictable: attenuation is always toward zero, never away from it, so a significant finding measured with error is if anything an understatement. Second, it is a measurement problem, so it is fixable at the design stage — better instruments, repeated measures — rather than in the regression.
The three-panel slide is the one to internalise. All three panels have exactly one unusual point, and they do completely different things.
What matters is where the point sits along X, not how far it is from the fitted line:
This connects back to p-01’s outlier slides, where a single point far from both means dominated the covariance. Same mechanism, seen from the other side.
Note that the extreme cases inflate the standard error as well as biasing the slope, which is why the deck lists “SE larger” under all three panels. An influential point rarely fits the line it created.
Slides 20 through 22 introduce a second kind of outlier: not a data error, but the natural consequence of highly skewed data. Metro population and nonprofit counts are the example, and the level-level plot is a hockey stick with a few enormous values on the right.
You cannot delete these points — they are real, and deleting the largest metros would be a substantive decision, not a technical one. Logging both axes instead converts a curved, heteroskedastic cloud into a straight, even band.
The four combinations are worth knowing by name because they change what the coefficient means:
The before-and-after table on slide 19 is instructive and slightly alarming: removing one point moves the slope from 0.50 to 0.35 and takes R2 from 0.67 to 1.00, with the standard error dropping by a factor of hundreds.
That is a real risk of specification work: nearly any model looks better after you remove the observations that disagree with it. The diagnostic tools — residual plots, Cook’s distance — tell you which points are influential, but they cannot tell you whether those points are errors or evidence. That judgement is substantive.
The honest workflow is to report both, or to have a rule decided before you looked.
| Slides | What they are doing | What to take away |
|---|---|---|
| 2–5 | Anscombe’s quartet | Same statistics, four relationships. Always plot. |
| 6–7 | Type I and Type II errors | Bias → false positives. Big standard errors → false negatives. |
| 8–11 | Linear transformations | Adding a constant changes only the intercept. |
| 12 | Measurement error defined | Same mean, more variance. The key contrast with slide 9. |
| 13 | Error in the DV | No bias, bigger standard errors, Type II risk. |
| 14 | Attenuation bias | Error in X shrinks the slope and the standard error. |
| 15–17 | Outliers by position | Leverage comes from distance along X. |
| 18–19 | Cook’s distance; before/after | Diagnostics find influence; they do not justify deletion. |
| 20–22 | Logged models | The fix for skew-driven outliers. |
| 23–24 | Quadratic models | The fix for genuinely curved relationships. |
Section three
This deck has no closing checklist. These are the things to be able to answer.