Regression Diagnostics, Leverage & Influence Analysis: Studentized Residuals, Cook's Distance & DFFITS
Hat matrix diagonals h_ii (leverage): bounds 1/n <= h_ii <= 1, average leverage p/n, and Mahalanobis distance interpretation in predictor space; Raw residuals e_i, internally studentized residuals r_i, and leave-one-out deletion (PRESS) residuals e_(i) = e_i / (1 - h_ii); Externally studentized (jackknife / R-student) residuals t_i, exact Student t_(n-p-1) distribution, and Bonferroni outlier testing; Influence diagnostics via Sherman-Morrison-Woodbury rank-one updates: Cook's Distance D_i, DFFITS_i, DFBETAS_j(i), and COVRATIO_i; Graphical diagnostics: Normal Q-Q plots, residual-vs-fitted fan patterns, Added-Variable (partial regression) plots, and Component-Plus-Residual (partial residual) plots.
§4.1 Hat Matrix Diagonals (Leverage), Algebraic Bounds, and Mahalanobis Distance Geometry
In multiple linear regression, not all data points exert equal potential to pull the fitted hyperplane toward themselves. To quantify the structural position of the $i$-th observation in the $k$-dimensional predictor space, we examine the Hat matrix $\mathbf{H} = \mathbf{X}(\mathbf{X}^T\mathbf{X})^{-1}\mathbf{X}^T$ introduced in Unit 2. Because $\hat{\mathbf{Y}} = \mathbf{H}\mathbf{Y}$, each fitted value $\hat{Y}_i$ is a linear combination of all $n$ observed responses:
The $i$-th diagonal element $h_{ii} = \mathbf{x}_i^T (\mathbf{X}^T\mathbf{X})^{-1} \mathbf{x}_i$ is called the leverage of observation $i$. Differentiating $\hat{Y}_i$ with respect to $Y_i$ reveals the direct physical meaning of $h_{ii}$:
That is, $h_{ii}$ measures the marginal rate at which a perturbation in the $i$-th observed response $Y_i$ pulls its own fitted value $\hat{Y}_i$! Moreover, because $\text{Cov}(\hat{\mathbf{Y}}) = \sigma^2 \mathbf{H}$ and $\text{Cov}(\mathbf{e}) = \sigma^2(\mathbf{I}_n - \mathbf{H})$, the leverage $h_{ii}$ simultaneously controls the variance of the $i$-th fitted value and the variance of the $i$-th raw residual:
Notice the striking implication: as $h_{ii} \to 1$, the residual variance $\text{Var}(e_i) = \sigma^2(1 - h_{ii}) \to 0$, forcing $\hat{Y}_i \to Y_i$ and $e_i \to 0$ regardless of the actual value of $Y_i$! Thus, a high-leverage observation masks its own vertical outlier status by pulling the regression hyperplane directly through $( \mathbf{x}_i^T, Y_i )$, leaving a deceptively small raw residual $e_i$.
Exact Algebraic Properties and Bounds of $h_{ii}$
Using the symmetry ($\mathbf{H}^T = \mathbf{H}$) and idempotency ($\mathbf{H}^2 = \mathbf{H}$) of the Hat matrix, we establish four fundamental mathematical properties of the leverages $h_{ii}$:
1. Idempotent Row-Sum-of-Squares Identity: Equating the $(i, i)$-th diagonal entry of $\mathbf{H}$ and $\mathbf{H}^2$ gives:
2. Upper and Lower Bounds ($1/n \le h_{ii} \le 1$): Because $\sum_{j \neq i} h_{ij}^2 \ge 0$, the identity $h_{ii} = h_{ii}^2 + \sum_{j \neq i} h_{ij}^2$ implies $h_{ii} - h_{ii}^2 = h_{ii}(1 - h_{ii}) \ge 0$, which forces $0 \le h_{ii} \le 1$ (and if $h_{ii} = 1$, then $h_{ij} = 0$ for all $j \neq i$, meaning observation $i$ alone dedicates an entire degree of freedom to fitting itself). Furthermore, whenever the model includes an intercept ($\mathbf{1}_n \in \mathcal{C}(\mathbf{X})$), partitioning $\mathbf{X} = [\mathbf{1}_n, \mathbf{X}_c]$ where $\mathbf{X}_c$ is the $n \times k$ mean-centered predictor matrix gives:
with $h_{ii} = 1/n$ attained if and only if observation $i$ sits exactly at the sample centroid $\mathbf{x}_{c,i} = \mathbf{0}_k$ (i.e., $x_{ij} = \bar{x}_j$ for all $j = 1, \dots, k$). Finally, if the covariate row $\mathbf{x}_i$ is replicated $r$ times in the dataset ($h_{ii} = h_{jj}$ for $r$ identical rows), then $h_{ii} = \sum_{j=1}^n h_{ij}^2 \ge r h_{ii}^2 \implies h_{ii} \le \frac{1}{r}$.
3. Connection to Squared Mahalanobis Distance $D_{M,i}^2$: Let $\mathbf{S}_{XX} = \frac{1}{n - 1} \mathbf{X}_c^T \mathbf{X}_c$ denote the $k \times k$ sample covariance matrix of the $k$ predictors. The squared Mahalanobis distance of the $i$-th predictor vector from the sample centroid $\bar{\mathbf{x}}$ is $D_{M,i}^2 = (\mathbf{x}_{c,i})^T \mathbf{S}_{XX}^{-1} \mathbf{x}_{c,i} = (n - 1) (\mathbf{x}_{c,i})^T (\mathbf{X}_c^T \mathbf{X}_c)^{-1} \mathbf{x}_{c,i}$. Therefore:
This proves that leverage $h_{ii}$ depends exclusively on the predictor matrix $\mathbf{X}$ (never on $\mathbf{Y}$) and is a direct affine function of the squared Mahalanobis distance of $\mathbf{x}_i$ from the center of the predictor cloud.
4. Average Leverage and Diagnostic Cutoff Rules: Because $\sum_{i=1}^n h_{ii} = \text{tr}(\mathbf{H}) = p$, the arithmetic mean of the leverages across all $n$ observations is strictly:
Hoaglin and Welsch (1978) and Belsley, Kuh, and Welsch (1980) classify an observation as a high-leverage point whenever $h_{ii} > \frac{2p}{n}$ (or $h_{ii} > \frac{3p}{n}$ in small samples where $2p/n > 0.5$).
Geometric Distinction Between High Leverage, Outliers, and Actual Influence
A foundational lesson of regression diagnostics is that an observation's position in the predictor space and its discrepancy in the response space play complementary but distinct diagnostic roles. Leverage is purely a property of the design matrix: it quantifies how far an observation's covariate vector lies from the multivariate sample centroid in the metric of the sample covariance matrix of the predictors, without ever looking at the response values. Consequently, a high-leverage point is not necessarily an error or a bad observation; if the response at that extreme predictor configuration follows the true linear relationship faithfully, that observation acts as a valuable anchor that reduces the standard errors of the estimated slopes. However, because the variance of the raw residual shrinks proportionally to one minus the leverage, the Ordinary Least Squares hyperplane is forced to pass close to any high-leverage point, creating a severe vulnerability whenever a measurement or specification error occurs at an extreme covariate vector.
§4.2 Raw, Standardized, Internally Studentized, and Leave-One-Out Deletion (PRESS) Residuals
While leverage $h_{ii}$ diagnoses whether an observation is unusual in the horizontal predictor space $\mathcal{C}(\mathbf{X})$, residuals diagnose whether an observation is an outlier in the vertical response direction. However, as established in Section 4.1, raw residuals $e_i = Y_i - \hat{Y}_i$ suffer from non-constant variance $\text{Var}(e_i) = \sigma^2(1 - h_{ii})$ that shrinks toward zero at high-leverage points. Consequently, raw residuals cannot be compared on a uniform scale across different observations. Statisticians construct a hierarchy of scaled and leave-one-out residuals to overcome this deficiency.
1. Standardized vs. Internally Studentized Residuals ($r_i$)
A naive first scaling—sometimes called the standardized residual $d_i = e_i / s$—divides every raw residual by the constant residual standard error $s = \sqrt{\text{MSE}}$, ignoring the leverage factor $\sqrt{1 - h_{ii}}$. To equalize the sampling variances across all $n$ observations regardless of their leverage, we divide each raw residual $e_i$ by its exact estimated standard error $\text{SE}(e_i) = s\sqrt{1 - h_{ii}}$, yielding the Internally Studentized Residual, $r_i$:
Why is $r_i$ called internally studentized? Because the denominator $s = \sqrt{\sum_{j=1}^n e_j^2 / (n - p)}$ is computed internally using all $n$ residuals, including $e_i$ itself! Because $e_i^2$ appears in the numerator $e_i$ and also inside the denominator $(n - p)s^2 = \text{SSE}$, the numerator and denominator of $r_i$ are not statistically independent. In fact, since $e_i^2 / (1 - h_{ii}) \le \text{SSE}$ (as we prove below), the squared internally studentized residual is algebraically bounded above by $n - p$:
Under normal errors, $\frac{r_i^2}{n - p} \sim \text{Beta}\!\left(\frac{1}{2}, \frac{n - p - 1}{2}\right)$ (the Ellenberg distribution), so $r_i$ does not follow an exact Student $t$ distribution. Moreover, if observation $i$ is a gross vertical outlier ($|e_i| \to \infty$), its enormous squared residual inflates $s^2$ in the denominator, artificially depressing $r_i$ and masking the outlier!
2. Leave-One-Out Deletion (PRESS) Residuals $e_{(i)}$ and the Sherman–Morrison–Woodbury Identity
To prevent a suspected outlier from contaminating the regression fit and the variance estimate used to judge it, suppose we delete the $i$-th observation $(\mathbf{x}_i^T, Y_i)$ from the dataset, fit the OLS regression to the remaining $n - 1$ observations to obtain the leave-one-out parameter vector $\hat{\boldsymbol{\beta}}_{(i)} = (\mathbf{X}_{(i)}^T \mathbf{X}_{(i)})^{-1} \mathbf{X}_{(i)}^T \mathbf{Y}_{(i)}$, and compute the deleted (or PRESS) residual:
Remarkably, we do not have to re-estimate the regression $n$ separate times! Because deleting row $\mathbf{x}_i^T$ from $\mathbf{X}$ corresponds to a rank-one subtraction $\mathbf{X}_{(i)}^T \mathbf{X}_{(i)} = \mathbf{X}^T \mathbf{X} - \mathbf{x}_i \mathbf{x}_i^T$ and $\mathbf{X}_{(i)}^T \mathbf{Y}_{(i)} = \mathbf{X}^T \mathbf{Y} - \mathbf{x}_i Y_i$, we apply the Sherman–Morrison–Woodbury Rank-One Matrix Inversion Identity:
Multiplying this inverse by $\mathbf{X}_{(i)}^T \mathbf{Y}_{(i)} = \mathbf{X}^T \mathbf{Y} - \mathbf{x}_i Y_i$ and simplifying using $\mathbf{x}_i^T \hat{\boldsymbol{\beta}} = \hat{Y}_i$ and $h_{ii} = \mathbf{x}_i^T(\mathbf{X}^T\mathbf{X})^{-1}\mathbf{x}_i$ yields the fundamental Leave-One-Out Parameter Update Formula:
Premultiplying both sides by $\mathbf{x}_i^T$ gives $\hat{Y}_i - \mathbf{x}_i^T \hat{\boldsymbol{\beta}}_{(i)} = \frac{h_{ii} e_i}{1 - h_{ii}}$. Substituting $\mathbf{x}_i^T \hat{\boldsymbol{\beta}}_{(i)} = \hat{Y}_i - \frac{h_{ii} e_i}{1 - h_{ii}}$ into $e_{(i)} = Y_i - \mathbf{x}_i^T \hat{\boldsymbol{\beta}}_{(i)}$ produces the celebrated Exact PRESS Residual Identity:
Look at the beauty of $e_{(i)} = \frac{e_i}{1 - h_{ii}}$: every leave-one-out prediction error $e_{(i)}$ is obtained instantaneously from the single full-sample OLS fit simply by dividing the ordinary residual $e_i$ by $1 - h_{ii}$! Summing the squares of all $n$ deleted residuals defines David Allen's (1974) Prediction Sum of Squares ($\text{PRESS}$) criterion for leave-one-out cross-validation:
Computational Efficiency of Leave-One-Out Cross-Validation via the PRESS Statistic
In modern machine learning and predictive analytics, $K$-fold and leave-one-out cross-validation are standard benchmarks for assessing out-of-sample generalization error and preventing overfitting. For general nonlinear models or neural networks, leave-one-out cross-validation requires refitting the model $n$ separate times on subsets of size $n-1$, multiplying the computational cost by a factor of $n$. In linear regression models estimated by Ordinary Least Squares, the Sherman–Morrison–Woodbury rank-one matrix update eliminates this computational bottleneck completely: every single leave-one-out prediction residual is obtained exactly by dividing the ordinary full-sample residual by one minus its Hat-matrix leverage. Consequently, the Prediction Sum of Squares (PRESS) and the cross-validated coefficient of determination can be evaluated instantaneously from a single matrix factorization, providing an immediate guard against models that overfit high-leverage data points.
§4.3 Externally Studentized (Jackknife / R-Student) Residuals and Bonferroni Outlier Tests
Armed with the exact leave-one-out deletion residual $e_{(i)} = Y_i - \mathbf{x}_i^T \hat{\boldsymbol{\beta}}_{(i)} = \frac{e_i}{1 - h_{ii}}$, we can now construct an outlier test statistic whose numerator and denominator are strictly statistically independent!
First, what is the sampling variance of the deleted residual $e_{(i)}$? Because $\hat{\boldsymbol{\beta}}_{(i)}$ is computed exclusively from the $n - 1$ observations in $\mathbf{Y}_{(i)}$, it is completely independent of $Y_i$. Since $\text{Var}(\mathbf{x}_i^T \hat{\boldsymbol{\beta}}_{(i)}) = \sigma^2 \mathbf{x}_i^T (\mathbf{X}_{(i)}^T \mathbf{X}_{(i)})^{-1} \mathbf{x}_i = \sigma^2 \left(h_{ii} + \frac{h_{ii}^2}{1 - h_{ii}}\right) = \frac{\sigma^2 h_{ii}}{1 - h_{ii}}$, or directly from $e_{(i)} = \frac{e_i}{1 - h_{ii}}$ with $\text{Var}(e_i) = \sigma^2(1 - h_{ii})$:
Second, let $s_{(i)}^2 = \frac{\text{SSE}_{(i)}}{n - p - 1}$ denote the leave-one-out residual mean square computed from the regression with observation $i$ deleted (which has $n - 1 - p$ error degrees of freedom). By rank-one deletion algebra, $\text{SSE}_{(i)}$ is related to the full-sample $\text{SSE}$ by the exact identity:
Dividing by $n - p - 1$ degrees of freedom gives the explicit formula for $s_{(i)}^2$ in terms of $s^2$ and $r_i^2$:
Notice that when $r_i^2 = 1$, $s_{(i)}^2 = s^2$; when $r_i^2 > 1$ (an outlying residual), $s_{(i)}^2 < s^2$ because deleting the outlier removes its disproportionate inflation of the error variance!
Standardizing the deleted residual $e_{(i)}$ by its external standard error $s_{(i)} / \sqrt{1 - h_{ii}}$ (or equivalently replacing $s$ by $s_{(i)}$ in the formula for $r_i$) defines the Externally Studentized Residual (also called the Jackknife Residual, Deleted $t$-Residual, or R-Student), denoted by $t_i$:
Mean-Shift Outlier Model Equivalence and Exact $t_{n-p-1}$ Distribution
Because $s_{(i)}^2$ is computed solely from the residuals within the subspace orthogonal to $\mathbf{X}_{(i)}$ on the remaining $n - 1$ observations, $(n - p - 1)s_{(i)}^2 / \sigma^2 \sim \chi_{n-p-1}^2$ is statistically independent of $e_{(i)} = Y_i - \mathbf{x}_i^T \hat{\boldsymbol{\beta}}_{(i)}$. Therefore, under the null hypothesis that observation $i$ follows the same normal linear model as the rest of the sample, $t_i$ follows an exact Student $t$ distribution with $n - p - 1$ degrees of freedom:
Even more remarkably, $t_i$ is identically equal to the ordinary partial $t$-statistic for testing $H_0: \delta_i = 0$ in the Mean-Shift Outlier Model:
where $\mathbf{u}_i = (0, \dots, 0, 1, 0, \dots, 0)^T \in \mathbb{R}^n$ is an indicator (dummy) variable that equals $1$ for the $i$-th observation and $0$ for all other $n - 1$ observations! By the Frisch–Waugh–Lovell Theorem, adding the dummy variable $\mathbf{u}_i$ absorbs the $i$-th observation completely, leaving $\hat{\boldsymbol{\beta}}_{(i)}$ as the slope vector, $\hat{\delta}_i = e_{(i)} = \frac{e_i}{1 - h_{ii}}$ as the mean-shift coefficient, and $s_{(i)}^2$ as the residual mean square with $n - p - 1$ degrees of freedom.
When scanning all $n$ observations without knowing in advance which observation might be an outlier, testing $\max_{1 \le i \le n} |t_i|$ requires a Bonferroni multiple-testing correction across the $n$ tests: we declare observation $i$ a statistically significant outlier at familywise level $\alpha$ if:
Why External Studentization Prevents Outlier Masking in Small and Moderate Samples
The mathematical distinction between internally studentized residuals and externally studentized (jackknife) residuals is particularly consequential when a dataset of small or moderate size contains one or two severe vertical outliers. In an internally studentized residual, the numerator residual also contributes its square to the pooled residual sum of squares in the denominator. As a result, a single extreme outlier inflates the full-sample error variance estimate so substantially that its own internally studentized residual is compressed toward the bounded ceiling of the square root of the error degrees of freedom, while the internally studentized residuals of all other observations are artificially shrunk toward zero. External studentization breaks this algebraic coupling by computing the denominator scale estimate from the remaining $n-1$ observations with the suspect point omitted, restoring exact Student-$t$ distribution theory and ensuring high statistical power in Bonferroni outlier screening.
§4.4 Global Influence Measures: Cook's Distance D_i and Calibration Thresholds
A critical principle of regression diagnostics is that Vertical Outlier Status ($|r_i|$) $\times$ Horizontal Leverage ($h_{ii}$) $=$ Influence:
- A vertical outlier near the centroid $\bar{\mathbf{x}}$ ($h_{ii} \approx 1/n$) shifts the intercept $\hat{\beta}_0$ by $e_i / n$ but barely tilts the regression slopes $\hat{\boldsymbol{\beta}}_{\text{slopes}}$.
- Conversely, a high-leverage point ($h_{ii}$ near $1$) that lies right on the true regression line ($e_i \approx 0$) reinforces the precision of the fit without distorting the parameter estimates (a "good leverage point").
- An observation becomes highly influential (a "bad leverage point") when it combines both moderate-to-high leverage $h_{ii}$ and a non-negligible studentized residual $r_i$.
In 1977, R. Dennis Cook introduced the canonical global measure of an observation's joint influence on all $p$ regression parameters (and equivalently on all $n$ fitted values): Cook's Distance, $D_i$. Recall from Section 3.4 that the $100(1 - \alpha)\%$ joint confidence ellipsoid for $\boldsymbol{\beta}$ is defined by the quadratic form $(\boldsymbol{\beta} - \hat{\boldsymbol{\beta}})^T (\mathbf{X}^T\mathbf{X}) (\boldsymbol{\beta} - \hat{\boldsymbol{\beta}}) / (p s^2) \le F_{\alpha, p, n-p}$. Cook's Distance $D_i$ measures the squared Mahalanobis distance from the full-sample OLS estimator $\hat{\boldsymbol{\beta}}$ to the leave-one-out estimator $\hat{\boldsymbol{\beta}}_{(i)}$ in the metric of the full-sample covariance matrix $p s^2 (\mathbf{X}^T\mathbf{X})^{-1}$:
where $\hat{\mathbf{Y}}_{(i)} = \mathbf{X}\hat{\boldsymbol{\beta}}_{(i)}$ is the vector of all $n$ fitted values predicted when observation $i$ is omitted from the estimation! Thus, $D_i$ equals both the standardized shift in the parameter vector $\hat{\boldsymbol{\beta}}$ and the average squared standardized shift across all $n$ fitted predictions.
Explicit Closed-Form Expression in Terms of $r_i$ and $h_{ii}$
Substituting the Sherman–Morrison–Woodbury update $\hat{\boldsymbol{\beta}} - \hat{\boldsymbol{\beta}}_{(i)} = \frac{(\mathbf{X}^T\mathbf{X})^{-1} \mathbf{x}_i e_i}{1 - h_{ii}}$ into the quadratic form of $D_i$ yields a remarkably simple factorization that requires no matrix re-inversion:
Grouping the internally studentized residual $r_i^2 = \frac{e_i^2}{s^2(1 - h_{ii})}$ separates $D_i$ into the product of the vertical outlier component $r_i^2 / p$ and the monotonically increasing horizontal leverage ratio $h_{ii} / (1 - h_{ii})$:
Notice how $D_i$ makes the interaction between vertical discrepancy and horizontal leverage mathematically explicit:
- If $h_{ii} = 0.50$, the leverage multiplier $\frac{h_{ii}}{1 - h_{ii}} = 1.0$; if $h_{ii} = 0.80$, the multiplier jumps to $\frac{0.80}{0.20} = 4.0$; if $h_{ii} = 0.90$, it jumps to $9.0$!
- Calibration and Practical Cutoffs for $D_i$: Although $D_i$ is not an exact $F$-distributed test statistic, Cook (1977) proposed calibrating $D_i$ against the median ($50\text{th}$ percentile) of the $F_{p, n-p}$ confidence ellipsoid distribution: if $D_i \approx F_{0.50, p, n-p} \approx 1.0$, then deleting observation $i$ moves the least-squares parameter vector $\hat{\boldsymbol{\beta}}$ all the way from the center of the joint confidence ellipsoid to the boundary of the $50\%$ confidence region! Consequently:
1. $D_i > 1.0$ (or $D_i > F_{0.50, p, n-p}$): Observation $i$ is globally influential and warrants immediate investigation.
2. $D_i > \frac{4}{n}$ (or $D_i > \frac{4}{n - p}$): Sample-size-adjusted screening cutoff used in automated diagnostic plots to flag moderately influential observations for closer inspection.
Interpreting Cook's Distance Contours on the Leverage-Residual Plane
Because Cook's Distance factors cleanly into the product of the squared internally studentized residual (divided by $p$) and the leverage ratio $h_{ii} / (1 - h_{ii})$, modern statistical software displays influence diagnostics by plotting the studentized residuals on the vertical axis against the Hat-matrix leverages on the horizontal axis, superimposed with hyperbolic contour curves of constant Cook's Distance ($D_i = 0.5$ and $D_i = 1.0$). On this diagnostic plane, observations near the left boundary (low leverage) must have enormous vertical residuals to cross the $D_i = 0.5$ contour, whereas observations near the right boundary (high leverage) cross the $D_i = 1.0$ contour even with modest studentized residuals between $1$ and $2$. Inspecting this joint leverage-residual chart allows the analyst to immediately separate benign vertical outliers, benign high-leverage anchors, and genuinely influential observations that distort the fitted hyperplane.
§4.5 Targeted Influence Diagnostics: DFFITS, DFBETAS, and COVRATIO
In their landmark 1980 monograph Regression Diagnostics, David Belsley, Edwin Kuh, and Roy Welsch introduced three targeted leave-one-out diagnostics—DFFITS, DFBETAS, and COVRATIO—that use the externally studentized variance $s_{(i)}^2$ and isolate the influence of observation $i$ on specific individual quantities.
1. $\text{DFFITS}_i$ (Standardized Difference in Fitted Value $\hat{Y}_i$)
$\text{DFFITS}_i$ measures how many standard errors the $i$-th fitted value $\hat{Y}_i = \mathbf{x}_i^T \hat{\boldsymbol{\beta}}$ changes when the $i$-th observation is deleted, scaled by the external standard error of $\hat{Y}_i$, namely $s_{(i)} \sqrt{h_{ii}}$:
Since $\hat{Y}_i - \hat{Y}_{i(i)} = \frac{h_{ii} e_i}{1 - h_{ii}}$ and $t_i = \frac{e_i}{s_{(i)}\sqrt{1 - h_{ii}}}$, $\text{DFFITS}_i$ simplifies immediately to:
Notice the exact structural bridge between $\text{DFFITS}_i$ and Cook's Distance $D_i$:
Whereas $D_i$ is always non-negative and uses $s^2$, $\text{DFFITS}_i$ retains the sign of $e_i$ (indicating whether observation $i$ pulls $\hat{Y}_i$ upward or downward) and uses the outlier-resistant scale $s_{(i)}$. Belsley, Kuh, and Welsch recommend flagging observation $i$ as influential if:
2. $\text{DFBETAS}_{j, (i)}$ (Standardized Difference in Individual Parameter $\hat{\beta}_j$)
While $D_i$ and $\text{DFFITS}_i$ measure aggregate influence on the fitted vector, a researcher often wants to know whether observation $i$ specifically distorts a particular regression coefficient of interest, $\hat{\beta}_j$ ($j = 0, 1, \dots, k$). $\text{DFBETAS}_{j, (i)}$ measures the change $\hat{\beta}_j - \hat{\beta}_{j(i)}$ scaled by the externally estimated standard error of $\hat{\beta}_j$, namely $s_{(i)} \sqrt{c_{jj}}$ where $c_{jj} = [(\mathbf{X}^T\mathbf{X})^{-1}]_{jj}$:
Let $\mathbf{R} = (\mathbf{X}^T\mathbf{X})^{-1}\mathbf{X}^T \in \mathbb{R}^{p \times n}$ so that $\hat{\boldsymbol{\beta}} = \mathbf{R}\mathbf{Y}$. Then $\text{DFBETAS}_{j, (i)} = \frac{r_{ji}}{\sqrt{\sum_{m=1}^n r_{jm}^2}} \frac{t_i}{\sqrt{1 - h_{ii}}}$. Belsley, Kuh, and Welsch recommend the sample-size-adjusted cutoff:
3. $\text{COVRATIO}_i$ (Determinant Ratio of Covariance Matrices / Generalized Variance Precision)
Recall that the volume of the joint confidence ellipsoid for $\boldsymbol{\beta}$ is proportional to the square root of the generalized variance, $\det(\widehat{\text{Cov}}(\hat{\boldsymbol{\beta}})) = \det(s^2 (\mathbf{X}^T\mathbf{X})^{-1}) = (s^2)^p \det((\mathbf{X}^T\mathbf{X})^{-1})$. $\text{COVRATIO}_i$ compares the determinant of the covariance matrix when observation $i$ is deleted against the full-sample determinant:
By the Matrix Determinant Lemma, $\det(\mathbf{X}^T\mathbf{X} - \mathbf{x}_i \mathbf{x}_i^T) = \det(\mathbf{X}^T\mathbf{X}) (1 - \mathbf{x}_i^T (\mathbf{X}^T\mathbf{X})^{-1} \mathbf{x}_i) = \det(\mathbf{X}^T\mathbf{X})(1 - h_{ii})$! Substituting this and $s_{(i)}^2 / s^2 = \frac{n - p - r_i^2}{n - p - 1}$ yields the closed-form formula:
Notice the two competing forces inside $\text{COVRATIO}_i$:
- A high-leverage good point ($h_{ii}$ large, $t_i \approx 0$) makes $\frac{1}{1 - h_{ii}} > 1$, so $\text{COVRATIO}_i > 1$: including observation $i$ shrinks the covariance determinant and improves estimation precision!
- A vertical outlier ($|t_i|$ large, $h_{ii}$ small) makes $s_{(i)}^2 \ll s^2$, so $\text{COVRATIO}_i < 1$: including observation $i$ inflates $s^2$ and degrades estimation precision!
Observations are flagged when $|\text{COVRATIO}_i - 1| > \frac{3p}{n}$.
Synthesizing DFFITS, DFBETAS, and COVRATIO in Applied Regression Audits
Whereas Cook's Distance summarizes an observation's aggregate impact across the entire parameter vector in a single scalar, the Belsley–Kuh–Welsch triad of DFFITS, DFBETAS, and COVRATIO provides a granular diagnostic profile that pinpoints exactly which inferential conclusions are threatened by an anomalous case. In many observational studies with five or ten explanatory variables, only one primary policy or treatment coefficient is of substantive scientific interest while the remaining covariates serve purely as statistical controls. An observation may exhibit a moderately large Cook's Distance because it perturbs the estimated coefficients of two collinear control variables, yet its DFBETAS value for the primary treatment variable of interest may be negligible, reassuring the investigator that the main scientific finding is robust to that data point. Conversely, inspecting the COVRATIO statistic reveals whether deleting an observation expands or contracts the volume of the joint confidence ellipsoid, distinguishing between high-leverage points that stabilize the design matrix and vertical outliers that degrade estimation efficiency.
§4.6 Graphical Diagnostics, Partial Plots, and Formal Lack-of-Fit F-Testing
| Diagnostic Plot | Vertical Axis vs Horizontal Axis | Primary Purpose & Signature Pathologies |
|---|---|---|
| 1. Residuals vs. Fitted Values | $r_i$ (or $t_i$) vs. $\hat{Y}_i$ | Plotted against $\hat{Y}_i$ (never against $Y_i$, because $\text{Cov}(e_i, Y_i) = \sigma^2(1 - h_{ii}) > 0$ induces a spurious upward slope of $1 - R^2$!). A U-shaped / parabolic curve indicates unmodeled nonlinearity; an outward megaphone / fan pattern indicates heteroscedasticity ($\text{Var}(\varepsilon_i)$ increasing with $\mu_i$). |
| 2. Scale-Location (Spread-Level) Plot | $\sqrt{|r_i|}$ vs. $\hat{Y}_i$ | Detects monotone heteroscedasticity more sensitively than signed residuals by folding negative residuals upward; a non-zero slope indicates non-constant variance. |
| 3. Normal Quantile-Quantile (Q-Q) Plot | Ordered $t_{(1)} \le \dots \le t_{(n)}$ vs. $\Phi^{-1}\!\left(\frac{i - 0.375}{n + 0.25}\right)$ | Checks Gaussianity (Assumption A6). An S-shaped curve indicates heavy tails (leptokurtosis) or light tails; a bowed / concave curve indicates positive or negative skewness. |
| 4. Residual Sequence / Lag Plot | $r_t$ vs. time index $t$ (or $r_t$ vs. $r_{t-1}$) | Checks non-autocorrelation (Assumption A5). Long runs of positive/negative residuals or a positive slope in $r_t$ vs. $r_{t-1}$ indicate positive serial correlation ($\rho > 0$). |
| 5. Added-Variable (Partial Regression) Plot | $\mathbf{e}_{Y \mid (-j)}$ vs. $\mathbf{e}_{j \mid (-j)}$ | Visualizes the Frisch–Waugh–Lovell regression for predictor $X_j$ after sweeping out all other predictors $\mathbf{X}_{(-j)}$. Reveals high-leverage points in $X_j$ and observations driving $\hat{\beta}_j$. |
| 6. Component-Plus-Residual (Partial Residual) Plot | $\mathbf{e}_F + \hat{\beta}_j \mathbf{x}_{(j)}$ vs. $\mathbf{x}_{(j)}$ | Plots the partial residual $e_i + \hat{\beta}_j x_{ij}$ directly against the raw covariate $x_{ij}$. Superior to Added-Variable plots for diagnosing curvature $g_j(X_j)$ and suggesting power transformations. |
Step-by-Step Regression Analysis Solutions
Three original questions connect calculations, definitions and interpretation. Open each solution to follow the reasoning.
In a multiple linear regression model with $n = 25$ observations and $p = 5$ parameters ($\beta_0, \beta_1, \beta_2, \beta_3, \beta_4$), the full-sample Residual Sum of Squares is $\text{SSE} = 80.00$. Three suspect observations (Cases A, B, and C) exhibit the following raw residuals $e_i$ and Hat-matrix leverages $h_{ii}$:
- Case A (Pure Vertical Outlier near Centroid): $e_A = 6.00$, $h_{AA} = 0.10$.
- Case B (High-Leverage Good Point): $e_B = 0.80$, $h_{BB} = 0.75$.
- Case C (High-Leverage Influential Point): $e_C = 4.00$, $h_{CC} = 0.60$.
- For each of the three cases ($i \in \{A, B, C\}$), compute the leave-one-out PRESS residual $e_{(i)}$, the internally studentized residual $r_i$, the leave-one-out error variance $s_{(i)}^2$, and the externally studentized (jackknife) residual $t_i$. Test each case for outlier status at familywise significance level $\alpha = 0.05$ using the Bonferroni threshold $t_{0.05/(2 \times 25), \, 19} = t_{0.001, \, 19} = 3.579$.
- For each of the three cases, compute Cook's Distance $D_i$, $\text{DFFITS}_i$, and $\text{COVRATIO}_i$.
- Compare the diagnostic profiles of Cases A, B, and C against the standard Belsley–Kuh–Welsch and Cook thresholds ($h_{\text{cut}} = 2p/n$, $D_i > 1.0$, $|\text{DFFITS}_i| > 2\sqrt{p/n}$, $|\text{COVRATIO}_i - 1| > 3p/n$) and explain what action an analyst should take for each case.
With $n = 25$ and $p = 5$, the full-sample error degrees of freedom are $n - p = 20$, and the full-sample error variance estimate is:
Using $e_{(i)} = \frac{e_i}{1 - h_{ii}}$, $r_i = \frac{e_i}{s\sqrt{1 - h_{ii}}}$, $s_{(i)}^2 = s^2 \left(\frac{20 - r_i^2}{19}\right)$, and $t_i = r_i \sqrt{\frac{19}{20 - r_i^2}}$:
1. Case A ($e_A = 6.00, \; h_{AA} = 0.10, \; 1 - h_{AA} = 0.90$):
- $e_{(A)} = \frac{6.00}{0.90} = 6.6667$
- $r_A = \frac{6.00}{2.00 \sqrt{0.90}} = \frac{3.00}{0.94868} = 3.1623 \implies r_A^2 = \frac{9.00}{0.90} = 10.00$
- $s_{(A)}^2 = 4.00 \left(\frac{20 - 10.00}{19}\right) = \frac{40.00}{19} = 2.1053$ (deleting Outlier A cuts the error variance nearly in half!)
- $t_A = 3.1623 \sqrt{\frac{19}{20 - 10.00}} = \sqrt{10.00 \times 1.90} = \sqrt{19.00} = 4.3589$
Since $|t_A| = 4.3589 > t_{0.001, 19} = 3.579$, Case A is a statistically significant vertical outlier even after Bonferroni correction!
2. Case B ($e_B = 0.80, \; h_{BB} = 0.75, \; 1 - h_{BB} = 0.25$):
- $e_{(B)} = \frac{0.80}{0.25} = 3.2000$
- $r_B = \frac{0.80}{2.00 \sqrt{0.25}} = \frac{0.80}{1.00} = 0.8000 \implies r_B^2 = 0.6400$
- $s_{(B)}^2 = 4.00 \left(\frac{20 - 0.64}{19}\right) = 4.00 (1.01895) = 4.0758$
- $t_B = 0.8000 \sqrt{\frac{19}{19.36}} = 0.7925 < 3.579$ (not a vertical outlier).
3. Case C ($e_C = 4.00, \; h_{CC} = 0.60, \; 1 - h_{CC} = 0.40$):
- $e_{(C)} = \frac{4.00}{0.40} = 10.0000$
- $r_C = \frac{4.00}{2.00 \sqrt{0.40}} = \frac{2.00}{0.63246} = 3.1623 \implies r_C^2 = \frac{4.00}{0.40} = 10.00$
- $s_{(C)}^2 = 4.00 \left(\frac{20 - 10.00}{19}\right) = 2.1053$
- $t_C = 3.1623 \sqrt{\frac{19}{10.00}} = 4.3589 > 3.579$ (significant vertical outlier).
Using $D_i = \left(\frac{r_i^2}{p}\right)\left(\frac{h_{ii}}{1 - h_{ii}}\right)$, $\text{DFFITS}_i = t_i \sqrt{\frac{h_{ii}}{1 - h_{ii}}}$, and $\text{COVRATIO}_i = \left(\frac{s_{(i)}^2}{s^2}\right)^p \left(\frac{1}{1 - h_{ii}}\right)$ with $p = 5$:
1. Case A ($r_A^2 = 10.00, \; t_A = 4.3589, \; h_{AA} = 0.10, \; \frac{h_{AA}}{1 - h_{AA}} = \frac{1}{9} \approx 0.1111$):
- $D_A = \left(\frac{10.00}{5}\right) \left(\frac{0.10}{0.90}\right) = 2.00 \times \frac{1}{9} = 0.2222$
- $\text{DFFITS}_A = 4.3589 \sqrt{\frac{1}{9}} = \frac{4.3589}{3} = 1.4530$
- $\text{COVRATIO}_A = \left(\frac{10.00}{19}\right)^5 \left(\frac{1}{0.90}\right) = (0.52632)^5 (1.1111) = 0.04035 \times 1.1111 = 0.0448$
2. Case B ($r_B^2 = 0.64, \; t_B = 0.7925, \; h_{BB} = 0.75, \; \frac{h_{BB}}{1 - h_{BB}} = \frac{0.75}{0.25} = 3.00$):
- $D_B = \left(\frac{0.64}{5}\right) (3.00) = 0.128 \times 3.00 = 0.3840$
- $\text{DFFITS}_B = 0.7925 \sqrt{3.00} = 0.7925 (1.73205) = 1.3727$
- $\text{COVRATIO}_B = \left(\frac{19.36}{19}\right)^5 \left(\frac{1}{0.25}\right) = (1.01895)^5 (4.00) = 1.0984 \times 4.00 = 4.3935$
3. Case C ($r_C^2 = 10.00, \; t_C = 4.3589, \; h_{CC} = 0.60, \; \frac{h_{CC}}{1 - h_{CC}} = \frac{0.60}{0.40} = 1.50$):
- $D_C = \left(\frac{10.00}{5}\right) (1.50) = 2.00 \times 1.50 = 3.0000$
- $\text{DFFITS}_C = 4.3589 \sqrt{1.50} = 4.3589 (1.22474) = 5.3385$
- $\text{COVRATIO}_C = \left(\frac{10.00}{19}\right)^5 \left(\frac{1}{0.40}\right) = 0.04035 \times 2.50 = 0.1009$
With $n = 25$ and $p = 5$, the diagnostic cutoffs are $h_{\text{cut}} = \frac{2p}{n} = 0.40$, $D_{\text{cut}} = 1.00$ (or $4/n = 0.16$), $|\text{DFFITS}|_{\text{cut}} = 2\sqrt{p/n} = 2\sqrt{0.20} = 0.8944$, and $|\text{COVRATIO} - 1|_{\text{cut}} = \frac{3p}{n} = 0.60$ (i.e., outside $[0.40, 1.60]$):
- Case A (Pure Vertical Outlier, Low Leverage): Because $h_{AA} = 0.10 \ll 0.40$, Case A sits near the center of the predictors. Even though it is a severe vertical outlier ($t_A = 4.3589$) that drastically inflates $s^2$ ($\text{COVRATIO}_A = 0.0448 \ll 0.40$), its Cook's Distance is modest ($D_A = 0.2222 < 1.0$) because it exerts almost no rotational torque on the slopes!
- Case B (Good High-Leverage Point): Case B has very high leverage ($h_{BB} = 0.75 > 0.40$), but its studentized residual is small ($t_B = 0.7925$). Consequently, $D_B = 0.3840 < 1.0$, and $\text{COVRATIO}_B = 4.3935 \gg 1.60$ shows that Case B substantially improves parameter precision by expanding the predictor span!
- Case C (Bad High-Leverage Influential Point): Notice that Case C has a smaller raw residual ($e_C = 4.00$) than Case A ($e_A = 6.00$) and identical studentized residuals ($r_C = r_A = 3.1623$, $t_C = t_A = 4.3589$), yet because Case C also has high leverage ($h_{CC} = 0.60 > 0.40$), its Cook's Distance is 13.5 times larger ($D_C = 3.0000 \gg 1.0$, $\text{DFFITS}_C = 5.3385$). Case C severely distorts both $\hat{\boldsymbol{\beta}}$ and $s^2$ and must be audited for measurement error or modeled via robust regression.
Let $\mathbf{Y} = \mathbf{X}\boldsymbol{\beta} + \boldsymbol{\varepsilon}$ be a full-rank linear regression model ($\text{rank}(\mathbf{X}) = p < n$) with Hat matrix $\mathbf{H} = \mathbf{X}(\mathbf{X}^T\mathbf{X})^{-1}\mathbf{X}^T$ and leverages $h_{ii} = \mathbf{x}_i^T(\mathbf{X}^T\mathbf{X})^{-1}\mathbf{x}_i < 1$.
- Starting from the Sherman–Morrison–Woodbury formula $(\mathbf{X}_{(i)}^T\mathbf{X}_{(i)})^{-1} = (\mathbf{X}^T\mathbf{X})^{-1} + \frac{(\mathbf{X}^T\mathbf{X})^{-1}\mathbf{x}_i \mathbf{x}_i^T (\mathbf{X}^T\mathbf{X})^{-1}}{1 - h_{ii}}$, prove step-by-step that $\hat{\boldsymbol{\beta}} - \hat{\boldsymbol{\beta}}_{(i)} = \frac{(\mathbf{X}^T\mathbf{X})^{-1}\mathbf{x}_i e_i}{1 - h_{ii}}$ and $e_{(i)} = Y_i - \mathbf{x}_i^T \hat{\boldsymbol{\beta}}_{(i)} = \frac{e_i}{1 - h_{ii}}$.
- Prove the exact leave-one-out Residual Sum of Squares identity:
- Using the identity in Part 2, prove that the squared internally studentized residual satisfies $0 \le \frac{r_i^2}{n - p} \le 1$, and derive the algebraic relationship expressing $t_i$ as a monotonic function of $r_i$.
By definition of the leave-one-out OLS estimator on the $n - 1$ observations with row $i$ removed, $\hat{\boldsymbol{\beta}}_{(i)} = (\mathbf{X}_{(i)}^T \mathbf{X}_{(i)})^{-1} \mathbf{X}_{(i)}^T \mathbf{Y}_{(i)}$, where $\mathbf{X}_{(i)}^T \mathbf{Y}_{(i)} = \mathbf{X}^T\mathbf{Y} - \mathbf{x}_i Y_i$. Substituting the Sherman–Morrison–Woodbury inverse gives:
Expanding the product and using $\hat{\boldsymbol{\beta}} = (\mathbf{X}^T\mathbf{X})^{-1}\mathbf{X}^T\mathbf{Y}$, $\mathbf{x}_i^T \hat{\boldsymbol{\beta}} = \hat{Y}_i$, and $\mathbf{x}_i^T(\mathbf{X}^T\mathbf{X})^{-1}\mathbf{x}_i = h_{ii}$:
Factor out $(\mathbf{X}^T\mathbf{X})^{-1}\mathbf{x}_i$ from the last three terms over the common denominator $1 - h_{ii}$:
Rearranging gives $\hat{\boldsymbol{\beta}} - \hat{\boldsymbol{\beta}}_{(i)} = \frac{(\mathbf{X}^T\mathbf{X})^{-1}\mathbf{x}_i e_i}{1 - h_{ii}}$. Now premultiply by $\mathbf{x}_i^T$:
Adding $e_i = Y_i - \hat{Y}_i$ to both sides yields the exact PRESS residual identity:
Write out the leave-one-out Residual Sum of Squares $\text{SSE}_{(i)} = \sum_{j \neq i} (Y_j - \mathbf{x}_j^T \hat{\boldsymbol{\beta}}_{(i)})^2$ by summing over all $n$ observations and subtracting the $i$-th term $e_{(i)}^2$:
Because $\mathbf{e} = \mathbf{Y} - \mathbf{X}\hat{\boldsymbol{\beta}}$ is orthogonal to $\mathcal{C}(\mathbf{X})$ ($\mathbf{X}^T\mathbf{e} = \mathbf{0}_p$), the cross-term vanishes and Pythagoras gives:
Substitute $\hat{\boldsymbol{\beta}} - \hat{\boldsymbol{\beta}}_{(i)} = \frac{(\mathbf{X}^T\mathbf{X})^{-1}\mathbf{x}_i e_i}{1 - h_{ii}}$ and $e_{(i)} = \frac{e_i}{1 - h_{ii}}$:
Therefore, $\text{SSE} - \text{SSE}_{(i)} = \frac{e_i^2}{1 - h_{ii}}$.
Because $\text{SSE}_{(i)} = \sum_{j \neq i} (Y_j - \mathbf{x}_j^T \hat{\boldsymbol{\beta}}_{(i)})^2 \ge 0$ is a sum of squares of real numbers, the identity $\text{SSE}_{(i)} = \text{SSE} - \frac{e_i^2}{1 - h_{ii}}$ immediately implies:
Dividing through by $(n - p)s^2 > 0$ gives:
Furthermore, dividing $\text{SSE}_{(i)} = (n - p)s^2 - s^2 r_i^2 = s^2(n - p - r_i^2)$ by $n - p - 1$ gives $s_{(i)}^2 = s^2 \left(\frac{n - p - r_i^2}{n - p - 1}\right)$, and substituting $s_{(i)}$ into $t_i = \frac{e_i}{s_{(i)}\sqrt{1 - h_{ii}}} = r_i \left(\frac{s}{s_{(i)}}\right)$ yields:
showing that $t_i$ is a strictly increasing one-to-one function of $r_i$ that maps the bounded interval $(-\sqrt{n-p}, +\sqrt{n-p})$ onto the entire real line $(-\infty, +\infty)$.
A biochemical engineer fits a simple linear regression model $Y = \beta_0 + \beta_1 x + \varepsilon$ to $n = 10$ observations measured across $c = 4$ distinct substrate concentrations $x \in \{1, 2, 3, 4\}$:
- At $x_1 = 1$ ($n_1 = 2$): $y_{11} = 2.8, \; y_{12} = 3.2$
- At $x_2 = 2$ ($n_2 = 3$): $y_{21} = 6.7, \; y_{22} = 7.0, \; y_{23} = 7.3$
- At $x_3 = 3$ ($n_3 = 3$): $y_{31} = 8.8, \; y_{32} = 9.0, \; y_{33} = 9.2$
- At $x_4 = 4$ ($n_4 = 2$): $y_{41} = 8.7, \; y_{42} = 9.3$
- Compute the group means $\bar{y}_{1\cdot}, \bar{y}_{2\cdot}, \bar{y}_{3\cdot}, \bar{y}_{4\cdot}$, the overall sample means $\bar{x}, \bar{y}$, the corrected sums $S_{xx}, S_{yy}, S_{xy}$, and the OLS linear regression fit $\hat{y} = \hat{\beta}_0 + \hat{\beta}_1 x$. Determine $\text{SST}$, $\text{SSR}$, and $\text{SSE}$.
- Partition $\text{SSE}$ into the Pure Error Sum of Squares ($\text{SSPE}$) and the Lack-of-Fit Sum of Squares ($\text{SSLF}$), determine their degrees of freedom, and carry out the exact Lack-of-Fit $F$-Test at $\alpha = 0.05$ ($F_{0.05, 2, 6} = 5.143$).
- Calculate the ordinary $R^2$ of the linear model and compare it against the theoretical maximum achievable $R_{\max}^2$ for any regression function on this dataset. What does the discrepancy between $R^2$ and $R_{\max}^2$ reveal?
First, we evaluate the replicate group means $\bar{y}_{j\cdot}$ at each of the $c = 4$ substrate levels:
- $x_1 = 1$ ($n_1 = 2$): $\bar{y}_{1\cdot} = \frac{2.8 + 3.2}{2} = 3.00$
- $x_2 = 2$ ($n_2 = 3$): $\bar{y}_{2\cdot} = \frac{6.7 + 7.0 + 7.3}{3} = 7.00$
- $x_3 = 3$ ($n_3 = 3$): $\bar{y}_{3\cdot} = \frac{8.8 + 9.0 + 9.2}{3} = 9.00$
- $x_4 = 4$ ($n_4 = 2$): $\bar{y}_{4\cdot} = \frac{8.7 + 9.3}{2} = 9.00$
Across all $n = 10$ observations:
- $\sum x_{jm} = 2(1) + 3(2) + 3(3) + 2(4) = 2 + 6 + 9 + 8 = 25 \implies \bar{x} = 2.50$
- $\sum y_{jm} = 2(3.0) + 3(7.0) + 3(9.0) + 2(9.0) = 6 + 21 + 27 + 18 = 72 \implies \bar{y} = 7.20$
- $S_{xx} = 2(1 - 2.5)^2 + 3(2 - 2.5)^2 + 3(3 - 2.5)^2 + 2(4 - 2.5)^2 = 2(2.25) + 3(0.25) + 3(0.25) + 2(2.25) = 10.50$
- $S_{xy} = \sum_{j=1}^4 n_j (x_j - \bar{x})(\bar{y}_{j\cdot} - \bar{y}) = 2(-1.5)(-4.2) + 3(-0.5)(-0.2) + 3(0.5)(1.8) + 2(1.5)(1.8) = 12.6 + 0.3 + 2.7 + 5.4 = 21.00$
Therefore, the OLS slope and intercept are:
giving $\hat{y} = 2.20 + 2.00 x$, with fitted group values $\hat{y}_1 = 4.20, \; \hat{y}_2 = 6.20, \; \hat{y}_3 = 8.20, \; \hat{y}_4 = 10.20$. Next, the Regression Sum of Squares is $\text{SSR} = \hat{\beta}_1 S_{xy} = 2.00(21.00) = 42.00$, and we compute $\text{SSE}$ and $\text{SST}$ in Step 2.
We compute the Pure Error Sum of Squares ($\text{SSPE}$) from the internal deviations $(y_{jm} - \bar{y}_{j\cdot})$ within each of the $c = 4$ groups:
- Level $1$ ($\bar{y}_{1\cdot} = 3.0$): $(-0.2)^2 + (0.2)^2 = 0.08$
- Level $2$ ($\bar{y}_{2\cdot} = 7.0$): $(-0.3)^2 + (0.0)^2 + (0.3)^2 = 0.18$
- Level $3$ ($\bar{y}_{3\cdot} = 9.0$): $(-0.2)^2 + (0.0)^2 + (0.2)^2 = 0.08$
- Level $4$ ($\bar{y}_{4\cdot} = 9.0$): $(-0.3)^2 + (0.3)^2 = 0.18$
Next, we compute the Lack-of-Fit Sum of Squares ($\text{SSLF}$) from the weighted squared deviations of the group means $\bar{y}_{j\cdot}$ around the linear fitted values $\hat{y}_j = 2.20 + 2.00 x_j$:
Thus, $\text{SSE} = \text{SSLF} + \text{SSPE} = 9.60 + 0.52 = 10.12$ ($\text{df} = 8$), and $\text{SST} = \text{SSR} + \text{SSE} = 42.00 + 10.12 = 52.12$ ($\text{df} = 9$). The Lack-of-Fit $F$-Statistic is:
Since $F_{\text{LF}} = 55.385 \gg F_{0.05, 2, 6} = 5.143$, we strongly reject the linear model: the group means $(3.0, 7.0, 9.0, 9.0)$ exhibit pronounced quadratic/Michaelis–Menten saturation that a straight line cannot capture!
For the fitted straight line, the ordinary Coefficient of Determination is:
A naive analyst looking only at $R_{\text{linear}}^2 = 80.58\%$ (and the overall linear $F$-statistic $F = \frac{42.00/1}{10.12/8} = 33.20$) might conclude that the straight line fits well! However, the theoretical maximum achievable $R_{\max}^2$ for any model on this dataset is:
In fact, notice that the group means $\bar{y}_{j\cdot} = (3.0, 7.0, 9.0, 9.0)$ lie exactly on the quadratic parabola $y = -3.0 + 7.0 x - 1.0 x^2$, which achieves $\text{SSLF}_{\text{quad}} = 0$ and $R_{\text{quad}}^2 = R_{\max}^2 = 99.00\%$! Nearly $95\%$ of the residual sum of squares of the linear model ($\text{SSLF}/\text{SSE} = 9.60 / 10.12 = 94.86\%$) was systematic lack of fit rather than random noise.