
STAT3530 Fall 2026
Consider \(Y_1, \dots, Y_n \stackrel{iid}{\sim} N(\mu, \sigma^2)\).
The normality entails that
\[ T(\mu) = \frac{\bar Y - \mu}{s_Y/\sqrt{n}} \sim t_{n-1} \]

so we get confidence intervals, e.g.,
and hypothesis tests of \(H_0: \mu = \mu_0\), e.g.,
Model \(Y = \mu\mathbf{1} + \epsilon\) with \(\epsilon \sim N(0, \sigma^2 I)\).
the error normality implies \[ T(\mu) = \frac{\hat\mu - \mu}{SE(\hat\mu)} \sim t_{n-1} \]
All of this machinery turns on \(\epsilon\) being normally distributed: \[ \text{error normality} \quad\Longrightarrow\quad \text{response normality} \quad\Longrightarrow\quad \text{estimator normality} \]
or more formally \[ \epsilon \sim N(0, \sigma^2I) \quad\Longrightarrow\quad Y \sim N(\mu, \sigma^2 I) \quad\Longrightarrow\quad \hat{\mu} \sim N\left(\mu, \frac{\sigma^2}{n}\right) \]
For the linear model we have the same pattern \[ \epsilon \sim N(0, \sigma^2I) \quad\Longrightarrow\quad Y \sim N(X\beta, \sigma^2 I) \quad\Longrightarrow\quad \hat{\beta} \sim N\left(\beta, \sigma^2 (X^TX)^{-1}\right) \] only with slightly longer expressions.
Now for \(Y = X\beta + \epsilon\) with \(\epsilon \sim N(0, \sigma^2 I)\)
the error normality implies \[ T_j = \frac{\hat\beta_j - \beta_j}{SE(\hat\beta_j)} \sim t_{n-2} \]
Is the predictor doing anything at all? \[ H_0: \beta_1 = 0 \quad\text{vs}\quad H_a: \beta_1 \neq 0 \]
Under \(H_0\) and error normality we have \[ T_1 = \frac{\hat\beta_1 - 0}{SE(\hat\beta_1)} \sim t_{n-2} \]
so we reject when \(|T_1| > t^{\alpha/2}_{n-2}\) or
\[\underbrace{2P\left(t_{n-2} > |T_j|\right)}_\text{p-value} < \alpha\]
Interpretation: the data suggest that mean closing force is associated with claw height.
A \((1 - \alpha)\times 100\%\) confidence interval is \[ \hat\beta_1 \pm t^{\alpha/2}_{n-2}\,SE(\hat\beta_1) \]
Interpretation. With 95% confidence, each additional mm of claw height is associated with an increase in mean closing force of between 1.6 and 3.7 newtons.
Recall the RFFT data.

Estimate Std. Error t value Pr(>|t|)
(Intercept) 134.098052 6.0700593 22.09172 3.058596e-56
age -1.190794 0.1007061 -11.82445 5.823319e-25
2.5 % 97.5 %
(Intercept) 122.131 146.065
age -1.389 -0.992
Your turn:
Consider the plug-in estimate \(x_0^T \hat\beta\) at a new value \(x_0\). For example:
This computes: \[ 134.098 - 1.1908 \times 55 = 68.604 \]
There are two possible estimands here:

The point estimate is the same: \(\hat{Y}_0 = x_0^T\hat\beta\). Consider its variance: \[ \text{var}\left[\hat{Y}_0\right] = \text{var}\left[x_0^T\hat\beta\right] = x_0^T \text{var}\left[\hat\beta\right] x_0 = x_0^T \left[\sigma^2 (X^TX)^{-1}\right] x_0 = \sigma^2 \underbrace{x_0^T (X^TX)^{-1} x_0}_{h_{00}} \]
Now consider the variance relative to each estimand:
as an estimate of \(\mu_0\) we have \[ \text{var}\left[\hat{Y}_0 - \mu_0\right] = \text{var}\left[\hat{Y}_0\right] = \sigma^2 h_{00} \]
giving standard error \[ SE(\hat{Y}_0) = \hat\sigma^2 h_{00} \]
but as an estimate of \(Y_0\) we have \[ \text{var}\left[\hat{Y}_0 - Y_0\right] = \text{var}[\hat{Y}_0] + \text{var}\left[Y_0\right] = \sigma^2 h_{00} + \sigma^2 \]
giving standard error \[ SE(\hat{Y}_0) = \hat\sigma^2 (1 + h_{00}) \]
Computing an interval at every \(x\) gives a band.


Individual observations are more variable than averages.
The cats data from HW2.

Your turn:
One interval is for the mean heart weight of 3 kg cats, the other for the heart weight of one 3 kg cat. Which is which?
The intervals are \[(11.47,\; 12.02) \quad\text{and}\quad (8.86,\; 14.63)\] Write a sentence interpreting each.
Which one would you use to decide whether a 3 kg cat with a 17 g heart is unusual?
The foregoing depends on four model assumptions.
Linearity. The mean response is a linear function of the parameters: \(\mathbb{E}[Y] = X\beta\).
Independence. Model errors are independent: \(\epsilon_i \perp \epsilon_j\).
Constant variance. The error variance is the same regardless of \(x\): \(\text{var}[\epsilon_i] = \sigma^2\).
Normality. Errors are normally distributed: \(\epsilon_i \sim N(0, \sigma^2)\).
Note these are all about the errors. (Linearity is equivalent to \(\mathbb{E}[\epsilon] = 0\).)
Now \(\epsilon\) is unknown, but since \(e = (I - H)\epsilon\) is an observable projection, we perform residual diagnostic checks to look for failures of model assumptions.
The workhorse plot. Anything you can describe in words is a problem.
In particular, look for:

Data generated from a quadratic relationship.

Diagnostic shows bowed residuals: positive at the ends, negative in the middle.

Data generated with variance growing in \(x\).

Diagnostic shows a fan or funnel pattern.

Sort the residuals and plot them against normal quantiles in a QQ plot. Normal residuals fall on the \(y = x\) line; read the ends, not the middle.
Assumption 2 is the hardest to see, because it is about pairs. No standard diagnostic.
Plotting adjacent residuals can sometimes help spot serial correlation, which also appears as “runs” in the residual versus fit plot.
But there are many other ways that independence can fail.

Each panel is a residual plot from a different fit.
Do the assumptions hold? If not, which one fails?

Which assumption is violated, and which plot shows it?
Is \(\hat\beta_1\) still unbiased here?
Is its reported standard error still right?
Three of the four failures leave \(\hat\beta\) unbiased.
Only nonlinearity breaks that, and so is arguably the most important assumption.
Assuming linearity holds, the main consequences of other failures are:
All of these affect inference, but in different ways and to different degrees.
Each row shows results of simulating 2000 datasets and constructing a CI for \(\beta_1\).
| CI coverage | true SD | reported SE | ratio | |
|---|---|---|---|---|
| well behaved | 94.30 | 0.220 | 0.220 | 0.998 |
| heavy tails | 95.65 | 0.220 | 0.208 | 0.946 |
| light tails | 94.45 | 0.220 | 0.220 | 0.998 |
| variance, mild | 94.45 | 0.248 | 0.234 | 0.943 |
| variance, pronounced | 87.80 | 0.562 | 0.428 | 0.762 |
| correlation, mild | 80.65 | 0.328 | 0.214 | 0.654 |
| correlation, pronounced | 46.95 | 0.584 | 0.190 | 0.326 |
More data helps none of these. It shrinks the interval at the wrong rate.
Inference is fairly robust to minor issues with model assumptions.
So diagnostic checks should only be sensitive to major failures.
Then, in order of approximate importance:
Twenty fits that satisfy every assumption exactly.
Another twenty fits that satisfy assumptions exactly.
Hours of sleep per day against lifespan, for 51 species.
Nothing to report. The model is uninformative but looks correctly specified.
Daily ozone against temperature in the Los Angeles basin, 330 days.
Hard to judge because of the light left tail, which appears because ozone is nonnegative.
But everything is questionable here. Curvature + fanning + light tail.
Also, daily data might be serially correlated.
We should fix other problems first, but might as well check the correlation.
The rows are consecutive days, so plot the residuals in that order.
Weakly correlated at 0.38 over one time lag. Independence fails here too.
Timber volume against trunk girth for 31 felled black cherry trees.
Linearity is questionable here. But since \(\text{vol}\propto \text{girth}^2\), I’d probably revise the model.
Proportion of each Galapagos island’s species that are endemic, against log area.
Constant variance fails here: very clear fan pattern.
Annual level of Lake Huron, 1875–1972, regressed on year.
Nothing to report here. But adjacent years might be correlated…
Correlation is invisible in the standard plot because it is a statement about pairs.
Order the residuals and it appears at once.
Serial correlation is common with time series data — assume it’s present unless you can show otherwise.

Once you identify an issue, what to do? Three options:
The basic idea: find a suitable transformation and fit the model on the transformed scale.
Usually used to fix either nonlinearity or nonconstant variance.

Original model: \[ Y_i = \beta_0 + \beta_1 x_i + \epsilon_i \] After log-transforming the response: \[ \log(Y_i) = \beta_0 + \beta_1 x_i + \epsilon_i \] Residual variance looks much better.
If we “undo” the log-transformation \[ \log(Y_i) = \beta_0 + \beta_1 x_i + \epsilon_i \quad\Longleftrightarrow\quad Y_i = e^{\beta_0}\times e^{\beta_1 x_i} \times e^\epsilon_i \] we see the consequences:
Let’s back-transform the model of the Galapagos data.

Estimate Std. Error t value Pr(>|t|)
(Intercept) -0.63875781 0.06513603 -9.806521 2.155528e-10
la -0.09246658 0.01708572 -5.411920 1.009005e-05
So the fitted model is \[ \hat{Y}_i = \underbrace{0.528}_{e^{-0.6388}}\, e^{-0.0925\, x_i} \]
But…
Fact: if \(\log(Y) \sim N(\mu, \sigma^2)\) then \(Y\) is lognormal and \(e^\mu\) is the median (not the mean).
So…
And inference is for multiplicative change in median per unit change in predictor.

2.5 % 97.5 %
(Intercept) 0.4619004 0.6034394
la 0.8802727 0.9442073
But wait… \(x_i\) here is log area, so there’s another transformation!

So actually the model is a power law \[ Y_i = e^{\beta_0} \times x_i^{\beta_1} \times e^{\epsilon_i} \] and \(x_i \to 2\, x_i\) means \(Y_i \to 2^{\beta_1}\, Y_i\).
Remember, the model assumptions remain on the transformed scale.
So that is where diagnostics should be assessed.
Looks good, but it’s a little less clear what we’re really checking, and that’s the cost of transformations — less interpretability.