GLOBAL KNOWLEDGE ARK

Mathematics · Article

Residuals, assumptions and model diagnostics

Develop a diagnostic argument from residual geometry, observation assumptions and scientific questions. Derive studentization, influence and replicated lack-of-fit checks, then examine dependence, model revision, calibration and the limits of an apparently adequate fit.

Back to Mathematics

After reading, you can

  • Separate latent population errors from fitted residuals and derive their projection constraints and covariance.
  • Distinguish internal and external studentization, with exact Gaussian laws and defined rank, scale and degrees-of-freedom boundaries.
  • Use plots, leverage, deletion and influence summaries to investigate specific model implications.
  • Derive replicated-design lack-of-fit and calibrated families of diagnostics under stated assumptions.
  • Assess measurement, dependence, missingness, robustness and diagnostic-driven selection in the actual observation process.
  • Report what the diagnostic evidence supports, including limitations for prediction, population shift and causal claims.
01

Decide which implication is being examined

A regression diagnostic investigates an implication of a specified model and observation process. Mean shape, changing spread, dependence, tail behavior, identifying feature variation and future prediction are different questions. A useful analysis chooses evidence appropriate to each claim rather than treating one plot or a favorable R² as an overall certificate.

The preceding lesson derived a fitted least-squares projection and separated observational and causal targets. Here the focus is how to investigate that fitted model. A visible residual pattern can motivate a scientific investigation, while an absence of a conspicuous pattern supplies only limited evidence. Small samples, weak design information and a poorly chosen display can conceal important defects.

Population errors are defined relative to the proposed mean or scientific mechanism. Fitted residuals use coefficients estimated from these same responses. Their constraints, covariance and distributions therefore differ from an untouched sample of population errors. That distinction controls how residual plots and numerical reference laws should be interpreted.

Keep the purpose of a diagnostic clear: checking an implication, measuring sensitivity, comparing a proposed revision, or assessing a whole prediction procedure. None automatically supplies the others. A scientifically transparent account records the original target, the observed concern, the action taken and the evidence used after that action.

02

Fitting imposes exact geometric restrictions

Unless a boundary example says otherwise, let X be a conditioned-on n×p full-column-rank design with an intercept,p<n. Put G=XᵀX,H=XG⁻¹Xᵀ,M=I−H and ν=n−p. Both H and M are symmetric idempotent projections; their ranks are p and ν. The residual vector is e=My, with SSE=eᵀe.

Residual geometry and covarianceResidual geometry and covariance Fitting imposes exact orthogonality and a residual-space covariance. A zero sample residual sum is not evidence that latent errors have zero conditional mean. Rows / columns / actual rank: 5 / 2 / 2 Residual df n−rank: 3 SSE (u²): 19/10 Residual mean square (u²): 19/30 Coefficient convention: 2, 21/10 Normal equations Xᵀe: 0, 0Residual geometry and covarianceResidual-space projection M = I − H.11+−−0+22−+−−033−−+−−440−−+−55+0−−+Color shows sign; fill intensity shows relative magnitude.Exact matrix entries and scale are retained in the text table.
Fitting imposes exact orthogonality and a residual-space covariance. A zero sample residual sum is not evidence that latent errors have zero conditional mean.

All displays concern a declared finite record and fitted feature space. Exact rational algebra establishes geometry; it does not prove population assumptions.

Features are dimensionless; observed responses and residuals use unit u, sums of squares use u². Approximate numerical reference values are explicitly marked.

Exact algebra and explicitly declared reference laws
QuantityValue
Rows / columns / actual rank5 / 2 / 2
Residual df n−rank3
SSE (u²)19/10
Residual mean square (u²)19/30
Coefficient convention2, 21/10
Normal equations Xᵀe0, 0
Exact rows, matrices and diagnostic quantities
Observed responses and fitted residuals; response unit u
RowYFitted YResidualLeverage
1-2-11/51/53/5
20-1/101/103/10
312-11/5
4541/109/103/10
5631/5-1/53/5
Exact hat matrix H
Row12345
13/52/51/50-1/5
22/53/101/51/100
31/51/51/51/51/5
401/101/53/102/5
5-1/501/52/53/5

A pattern, small residual or undefined diagnostic is not proof of a population model. Numerical tails and drawings are marked as approximate; exact fractions, assumptions and unavailable denominators remain visible.

Normal equations give Xᵀe=0. The intercept yields Σeᵢ=0, and every included feature column is orthogonal to the fitted residual vector. These are sample algebra identities even when the population mean is wrong. They cannot be used as evidence that an unknown population error has zero conditional mean.

With a correct conditional-linear mean E[Y|X]=Xβ, write Y=Xβ+ε and E[ε|X]=0. Then e=Mε, because MXβ=0. If the true conditional mean is some other vector μ, E[e|X]=Mμ. A misspecified component lying outside the fitted feature space can leave structure in the residual mean.

An aliased column representation has actual rank r<p, so its residual-space dimension is n−r. Choose an independent basis for the same fitted space before using the full-rank inverse formulas here. Counting redundant columns as independent fitted parameters changes the claimed degrees of freedom without changing the fitted projection.

03

Independent errors still produce dependent residuals

If Cov(ε|X)=Ω, then Cov(e|X)=MΩM. For independent homogeneous errors with variance σ², Ω=σ²I and idempotence gives Cov(e|X)=σ²M. In particular, Var(eᵢ|X)=σ²(1−hᵢ), where hᵢ=Hᵢᵢ, and Cov(eᵢ,eⱼ|X)=−σ²Hᵢⱼ for distinct rows.

Thus even an ideal independent-error model gives unequal residual variances when leverages differ, as well as fitted dependence. A residual near a high-leverage row can be small partly because fitting gives that row substantial control. Comparing raw residual magnitudes without this geometry can mislead.

For an intercept-only fit to three independent responses with common error variance 9, residual covariance has diagonal entries6 and off-diagonal entries−3. Each residual pair has correlation−1/2. Their exact sum is zero, which already prevents them from being three nondegenerate independent random quantities.

Under centered homogeneous Gaussian errors and known σ>0, eᵢ/[σ√(1−hᵢ)] is marginally standard normal when hᵢ<1. These standardized quantities remain jointly dependent. Replacing known σ by a scale estimated from the same residuals changes the distribution again, leading to internal studentization.

04

An internally studentized residual has a finite bound

For ν>0 and s²=SSE/ν>0, define rᵢ=eᵢ/[s√(1−hᵢ)] when hᵢ<1. Software terminology varies: a package may call this a standardized or internally studentized residual. State the denominator, since merely dividing by s omits the leverage adjustment.

Because e lies in the residual subspace, eᵢ=(Muᵢ)ᵀe for coordinate vector uᵢ. Cauchy–Schwarz gives eᵢ²≤||Muᵢ||²||e||²=(1−hᵢ)SSE. Dividing by the positive denominator proves rᵢ²≤ν. This is an algebraic bound, independent of a normality assumption.

For example, with residual df4, an internally studentized residual cannot have magnitude larger than2 under these definitions. A reported value2.5 would call for checking the formula, rank, scale and data, rather than interpreting it as a particularly rare draw from an unbounded t distribution.

Under ε|X∼N(0,σ²I),σ²>0 and ν≥2, choose one orthonormal residual-subspace coordinate along Muᵢ and the remaining ν−1 coordinates orthogonal to it. Their independent squared standard normals give rᵢ²/ν∼Beta(1/2,(ν−1)/2). The numerator is part of its own estimated total scale, which explains the bound.

For ν=1 and a nonzero residual vector, the same geometry gives |rᵢ|=1 at rows with hᵢ<1. At SSE=0 or hᵢ=1 the displayed studentization has no positive denominator. These finite-data boundaries should be reported explicitly. An ordinary unbounded Student t reference is not the exact internal-residual law.

05

Deleting the row changes both scale and degrees of freedom

For a full-rank design, deleting row i retains column rank exactly when hᵢ<1. The matrix determinant lemma gives det(G−zᵢzᵢᵀ)=det(G)(1−hᵢ), where zᵢ is that row as a column vector. This condition concerns design identification, before examining its response.

When deletion retains rank, SSE_(i)=SSE−eᵢ²/(1−hᵢ). If ν>1 and this deleted SSE is positive, define s_(i)²=SSE_(i)/(ν−1). The externally studentized residual is tᵢ=eᵢ/[s_(i)√(1−hᵢ)]. Its scale is estimated after removing the observation whose discrepancy is being assessed.

Algebra gives tᵢ=rᵢ√[(ν−1)/(ν−rᵢ²)] when the denominators are positive. Under a correct centered homogeneous Gaussian conditional model with σ²>0, this statistic has t_(ν−1) law for a prespecified row. The independent Gaussian residual coordinate and the remaining deleted sum of squares provide the normal/chi-square ratio.

The distinction is visible in the five-pair example below. Its central row has internal r=−√(75/38),but external t=−√(50/13) with2deleted residual degrees of freedom. Both describe the same fitted record with different scale constructions; they are not interchangeable reference statistics.

Internal and deleted studentizationInternal and deleted studentization The internal residual is algebraically bounded; it is not an ordinary unbounded t draw. Exact beta/t reference statements require the stated correct centered Gaussian mean and common positive variance. The selected row is prespecified. Rows / columns / actual rank: 5 / 2 / 2 Residual df n−rank: 3 SSE (u²): 19/10 Residual mean square (u²): 19/30 Coefficient convention: 2, 21/10 Selected row: 3 Internal residual r: −√(75/38) External residual t: −√(50/13) Internal algebraic bound r²≤nu: 75/38 ≤ 3 Prespecified-row two-sided Gaussian t tail: ≈0.1889 (finite)Internal and deleted studentization0≈1.058≈2.115≈3.173≈4.231Squared dimensionless statisticBlue internal; orange external; green internal boundInternal r²External t²Bound nuSquares compare magnitudes; signed exact roots remain in the table.Internal and external reference laws use different denominators.
The internal residual is algebraically bounded; it is not an ordinary unbounded t draw. Exact beta/t reference statements require the stated correct centered Gaussian mean and common positive variance. The selected row is prespecified.

All displays concern a declared finite record and fitted feature space. Exact rational algebra establishes geometry; it does not prove population assumptions.

Features are dimensionless; observed responses and residuals use unit u, sums of squares use u². Approximate numerical reference values are explicitly marked.

Exact algebra and explicitly declared reference laws
QuantityValue
Rows / columns / actual rank5 / 2 / 2
Residual df n−rank3
SSE (u²)19/10
Residual mean square (u²)19/30
Coefficient convention2, 21/10
Selected row3
Internal residual r−√(75/38)
External residual t−√(50/13)
Internal algebraic bound r²≤nu75/38 ≤ 3
Prespecified-row two-sided Gaussian t tail≈0.1889 (finite)
Exact rows, matrices and diagnostic quantities
Observed responses and fitted residuals; response unit u
RowYFitted YResidualLeverage
1-2-11/51/53/5
20-1/101/103/10
312-11/5
4541/109/103/10
5631/5-1/53/5
Exact hat matrix H
Row12345
13/52/51/50-1/5
22/53/101/51/100
31/51/51/51/51/5
401/101/53/102/5
5-1/501/52/53/5

A pattern, small residual or undefined diagnostic is not proof of a population model. Numerical tails and drawings are marked as approximate; exact fractions, assumptions and unavailable denominators remain visible.

If ν=1, deletion leaves zero residual df. If hᵢ=1, deletion loses rank; if deleted SSE is zero, the usual external scale is zero. Do not force a finite t value in these cases. Searching all rows also changes the inferential task: a prespecified-row reference does not by itself calibrate the largest statistic selected from a family.

06

Choose axes that address the intended question

Residuals against fitted values can reveal mean curvature or changing spread. Residuals against each relevant recorded feature can expose structure that a fitted-value plot combines or hides. Acquisition order, groups and environmental variables address additional aspects of the observation process. A single horizontal-looking display cannot establish every implication.

For an additive feature column xⱼ in a full model, a component-plus-residual display plots e+βhatⱼxⱼ against xⱼ. It restores the fitted contribution of that column while leaving the other columns adjusted through the fitted residual. Correlated features, interactions and changed basis definitions require careful interpretation.

An added-variable display instead residualizes both Y and xⱼ against the other included columns, then plots those two residual vectors. With the relevant full-rank conditions, its through-origin slope is βhatⱼ and its residual vector equals that of the full model. This is the FWL projection result developed in lesson165.

The horizontal axis of an added-variable plot is residualized feature variation, which differs from the original xⱼ scale. A partial-residual plot and an added-variable plot therefore help answer different questions. Neither supplies a causal adjustment argument or reveals feature variation the design never contained.

07

A spread pattern can have more than one cause

For a general conditional mean μ and covariance Ω, E[eᵢ²|X]=(Mμ)ᵢ²+(MΩM)ᵢᵢ. A systematic mean defect can therefore enlarge residual squares, even when the underlying error variance is constant. A horn-like display can motivate investigation of spread and mean shape; it does not uniquely distinguish them.

Mean, spread, order and designMean, spread, order and design Mean defects, leverage, spread, time order and design aliasing are different explanations. DW is a descriptive finite-record ratio here; no distribution-free p-value, independence or causal conclusion is attached. Rows / columns / actual rank: 5 / 2 / 2 Residual df n−rank: 3 SSE (u²): 14 Residual mean square (u²): 14/3 Coefficient convention: 2, 0 Descriptive run-order DW: 10/7Mean, spread, order and design≈-2.4≈-2.4≈-1.2≈-1.200≈1.2≈1.2≈2.4≈2.4Feature value (dimensionless)Signed fitted residual (u)A descriptive pattern motivates a specific investigation.No plotted shape alone establishes a mean or covariance model.Order, units, leverage and available feature variation all matter.
Mean defects, leverage, spread, time order and design aliasing are different explanations. DW is a descriptive finite-record ratio here; no distribution-free p-value, independence or causal conclusion is attached.

All displays concern a declared finite record and fitted feature space. Exact rational algebra establishes geometry; it does not prove population assumptions.

Features are dimensionless; observed responses and residuals use unit u, sums of squares use u². Approximate numerical reference values are explicitly marked.

Exact algebra and explicitly declared reference laws
QuantityValue
Rows / columns / actual rank5 / 2 / 2
Residual df n−rank3
SSE (u²)14
Residual mean square (u²)14/3
Coefficient convention2, 0
Descriptive run-order DW10/7
Exact rows, matrices and diagnostic quantities
Observed responses and fitted residuals; response unit u
RowYFitted YResidualLeverage
14223/5
212-13/10
302-21/5
412-13/10
54223/5
Exact hat matrix H
Row12345
13/52/51/50-1/5
22/53/101/51/100
31/51/51/51/51/5
401/101/53/102/5
5-1/501/52/53/5

A pattern, small residual or undefined diagnostic is not proof of a population model. Numerical tails and drawings are marked as approximate; exact fractions, assumptions and unavailable denominators remain visible.

Even with a correct homogeneous mean model, Var(eᵢ|X)=σ²(1−hᵢ) changes with leverage. Internal standardization adjusts that particular geometric factor using an estimated common scale. It does not automatically make heterogeneous population errors identically distributed or give the homogeneous Gaussian beta/t references.

For an intercept-only fit to three independent errors with variances(1,4,9),the residual variances are(17/9,26/9,41/9),not the original variances. The expectation of the usual residual mean square is14/3. There is no single stipulated common-error variance in that example for the estimate to recover.

Investigate plausible measurement, scale, mean and observation-process explanations. A justified weighted model changes the fitting geometry and its residual definitions; a heteroskedasticity-consistent coefficient covariance needs its own asymptotic assumptions. Neither action makes an unexamined mean defect disappear.

08

Preserve the order in which observations were obtained

A run-order plot places residuals against acquisition time or sequence. A lag plot compares adjacent observations in that meaningful order. Trends, changing regimes, repeating groups and correlated disturbances can all leave structure. Account for a mean or time trend before attributing every lag pattern to dependence in random errors.

The Durbin–Watson summary is DW=Σᵢ₌₂ⁿ(eᵢ−eᵢ₋₁)²/Σeᵢ² when SSE>0. Its range is[0,4],but its null calibration depends on the regression and error assumptions. It is not a universal distribution-free p-value. Rearranging the same residual values can change it substantially.

Design can hide a problem. At the mean level,μ=5+2x+3t becomes5+5x if x=t throughout the observations. The time and feature columns alias,so a perfect fitted mean and zero mean residual cannot separate their contributions. A run-order display cannot create the missing design variation.

Randomized or otherwise well-separated design variation can help investigate such concerns,with the relevant scientific assumptions and timing. Clustered or time-dependent records also need appropriate covariance and prediction assessment. Preserve original order and grouping in the reproducible record rather than sorting them away to improve a plot.

09

Inspect the error assumption in the fitted context

For classical exact inference,the normality assumption concerns the conditional centered errors with the stated covariance. It does not require normally distributed features or a normally shaped pooled response histogram. Different fitted means can make pooled responses multimodal even when every conditional error is Gaussian.

A normal probability display compares ordered residual values with a chosen normal-reference quantile convention. Its shape can be informative,but fitted residuals have unequal marginal variances and joint dependence. A standard iid normal-sample test or envelope does not automatically keep its nominal calibration after fitting and estimating scale.

Mean defects,heterogeneous scale,drift and dependence can also distort an apparent tail pattern. Diagnose those implications together. For a specific calibrated null display,simulate or derive the entire fitting and diagnostic procedure under its declared assumptions rather than treating the residuals as untouched observations.

Independent Rademacher errors,each±1 with equal probability,have mean0 and variance1. Yet an intercept-only sample of four has all-equal errors and SSE0 with probability1/8. Its usual positive-denominator t statistic is unavailable on that event,and its remaining finite distribution is discrete. Matching the first two moments supplies no exact Gaussian t law.

10

Leverage measures the fitted feature space

A training leverage hᵢ is the ith diagonal of the orthogonal projection H. Therefore0≤hᵢ≤1 and Σhᵢ=p. With an intercept,H decomposes into the projection onto constants and the centered-feature projection,giving hᵢ≥1/n. The lower bound1/n needs that intercept condition.

Leverage uses features rather than responses. A high-leverage row can have a small residual because it strongly affects its own fitted value. A response discrepancy,a position unusual in feature space and a material change in a chosen fitted result are related but distinct properties.

A new query has mean-estimation factor h₀=z₀ᵀG⁻¹z₀. It can exceed1 because z₀ need not be an observed training row. The training-row projection bound does not forbid extrapolation leverage above1 or establish scientific validity at that new query.

Interpret geometry with units,reference coding,interactions and feature relationships. An invertible change of feature coordinates preserves the fitted space and H;adding or removing a feature can change that space. A convenient numerical threshold for large leverage remains a convention to investigate,rather than a rule proving data error.

11

Check whether the deleted prediction is identified

When hᵢ<1,the rank-preserving deletion identity is βhat−βhat_(i)=G⁻¹zᵢeᵢ/(1−hᵢ). Multiplying by zᵢᵀ shows that the fitted response changes by hᵢeᵢ/(1−hᵢ). Consequently the leave-one-out prediction error is eᵢ/(1−hᵢ). These are exact least-squares identities,without a Gaussian assumption.

If every deleted fit retains rank,PRESS=Σ[eᵢ/(1−hᵢ)]². Dividing by n gives the mean leave-one-out squared prediction loss for this specified fitting rule. Positive deleted residual variance is unnecessary for identifying a deleted fitted mean; it is needed for the corresponding externally studentized scale.

If hᵢ=1,its training residual is0 and deleting it loses rank. The ordinary ratio is0/0,and a whole PRESS requiring that unidentified prediction is unavailable. An added prior,constraint or different fitting algorithm can define a different procedure,but should not be silently inserted as the original unique deleted least-squares fit.

The five-pair record has PRESS2929/784 and mean LOO loss2929/3920,compared with training mean loss19/50. This evaluates a fixed basis fitted to n−1 rows at each deletion. Screening features on all outcomes first,tuning on the reported score or ignoring repeated subjects changes the evaluation task.

12

State which fitted change the diagnostic measures

Let Δᵢ=βhat−βhat_(i) for an identified deleted fit. The squared change of all fitted training responses is ΔᵢᵀGΔᵢ. Cook distance divides this by p s²: Dᵢ=eᵢ²hᵢ/[p s²(1−hᵢ)²],when p>0,s²>0 and hᵢ<1. It measures change in the fitted-space metric,not an unscaled Euclidean coefficient distance.

One standard DFFITS convention divides the change of the ith fitted response by s_(i)√hᵢ. For hᵢ>0 and a positive deleted scale,this gives DFFITSᵢ=tᵢ√[hᵢ/(1−hᵢ)]. DFBETAⱼᵢ is the signed full-minus-deleted coefficient change; DFBETAS additionally divides it by s_(i)√(G⁻¹)ⱼⱼ under this stated convention.

At a zero feature row in a no-intercept model,hᵢ can be0. Its response then changes no coefficient,Cook distance is0 and its LOO error remains eᵢ. The direct DFFITS fitted-change standardization has0/0;assigning its continuous extension0 requires a stated convention. Default intercept designs avoid this zero-leverage boundary.

For the central five-pair row,deleted coefficients are(9/4,21/10),so the full-minus-deleted change is(−1/4,0). The deleted error is−5/4,Cook distance75/304 and DFFITS−5/√26. The coefficient scales and deleted versus full residual scales explain these different numerical summaries.

Single and group deletion sensitivitySingle and group deletion sensitivity Single and group deletion compare the explicitly defined least-squares fits. Selection of a deletion set from responses does not inherit unselected uncertainty claims; sensitivity alone does not identify a recording error. Rows / columns / actual rank: 5 / 2 / 2 Residual df n−rank: 3 SSE (u²): 19/10 Residual mean square (u²): 19/30 Coefficient convention: 2, 21/10 Deleted coefficient vector: 9/4, 21/10 Full minus deleted coefficients: -1/4, 0 Omitted prediction errors: -5/4 (I−H_DD)d = e_D: -1 = -1 Cook distance: 75/304 DFFITS: −√(25/26)Single and group deletion sensitivity≈0.5≈-0.865≈1.75≈1.73≈3≈4.325≈4.25≈6.92≈5.5≈9.515Original row numberFitted response minus first full fit (u)Blue full fit; orange dashed deleted fit; green change.Predictions are compared at every original feature row.Deleting a selected group does not add single-row influences.
Single and group deletion compare the explicitly defined least-squares fits. Selection of a deletion set from responses does not inherit unselected uncertainty claims; sensitivity alone does not identify a recording error.

All displays concern a declared finite record and fitted feature space. Exact rational algebra establishes geometry; it does not prove population assumptions.

Features are dimensionless; observed responses and residuals use unit u, sums of squares use u². Approximate numerical reference values are explicitly marked.

Exact algebra and explicitly declared reference laws
QuantityValue
Rows / columns / actual rank5 / 2 / 2
Residual df n−rank3
SSE (u²)19/10
Residual mean square (u²)19/30
Coefficient convention2, 21/10
Deleted coefficient vector9/4, 21/10
Full minus deleted coefficients-1/4, 0
Omitted prediction errors-5/4
(I−H_DD)d = e_D-1 = -1
Cook distance75/304
DFFITS−√(25/26)
Exact rows, matrices and diagnostic quantities
Observed responses and fitted residuals; response unit u
RowYFitted YResidualLeverage
1-2-11/51/53/5
20-1/101/103/10
312-11/5
4541/109/103/10
5631/5-1/53/5
Exact hat matrix H
Row12345
13/52/51/50-1/5
22/53/101/51/100
31/51/51/51/51/5
401/101/53/102/5
5-1/501/52/53/5

A pattern, small residual or undefined diagnostic is not proof of a population model. Numerical tails and drawings are marked as approximate; exact fractions, assumptions and unavailable denominators remain visible.

Positive rescaling of the response rescales residuals and their scales together,leaving the dimensionless diagnostics unchanged. An invertible feature reparameterization preserves H and Cook distance,but changes the coordinates of coefficient-specific changes. Report conventions and investigate scientific sensitivity before drawing a conclusion from a threshold.

13

Investigate changes that a single deletion can miss

Single-case diagnostics assess one kind of perturbation. Several observations can support the same changed fit,so deleting one may leave the others maintaining it. A near-zero individual effect therefore does not establish that a scientifically relevant group has no influence.

For a fixed deleted set D whose removal retains rank,let H_DD be the corresponding projection submatrix. The vector of omitted prediction errors satisfies(I−H_DD)d_D=e_D. This follows by expressing the coefficient change through all omitted rows together. The individual formulas are the one-row special case; adding individual effects generally misses their interaction.

In the five-point record y=(0,0,0,10,10) at x=0..4,the last point lies on the full fitted line and has zero single-deletion coefficient change. Removing both last observations leaves a different zero line. This is a concrete group-sensitivity comparison,without assuming which records are scientifically correct.

Investigate plausible group definitions,measurement conditions,regimes and recording problems. Report sensitivity to justified alternatives and preserve original records. Selecting a deletion set because it gives a desired answer changes the analysis and does not inherit the original model’s unselected uncertainty claims.

14

Check what the design can identify

Exact aliasing lowers the dimension of the fitted feature space. Near aliasing can make some coefficient directions highly variable and numerically sensitive while other combinations remain stable. Inspect the relevant multivariate design; pairwise correlations alone can miss dependence among several columns.

For a nonconstant feature in a full-rank homogeneous intercept model,VIFⱼ=1/(1−Rⱼ²),where Rⱼ² is its auxiliary regression’s centered fit statistic against the other columns. If the multiple correlation Rⱼ is3/5,then Rⱼ²=9/25 and VIF=25/16. Substituting Rⱼ for its square gives a different and incorrect quantity.

An invertible feature transformation Xnew=XA changes coefficient coordinates to A⁻¹β while preserving H and the fitted observation-space geometry. Scaling can improve numerical conditioning and interpretation,but does not add identifying observations. A large variance-inflation summary alone does not justify removing a scientifically necessary adjustment.

Normal-equation computation squares the spectral condition number at full rank:κ₂(XᵀX)=κ₂(X)². Stable QR or rank-aware SVD methods address numerical computation. State any numerical rank tolerance,and distinguish its effect from a scientific assertion that the omitted direction carries no information or no effect.

15

Separate within-setting error from restrictions on means

Suppose there are g prespecified replicated settings,with identical feature rows within each setting,and an ordinary full-rank p-dimensional mean model contained in the g-dimensional separate-setting-mean model. Require p<g<n and independent homogeneous centered Gaussian errors with σ²>0 for the exact test below. Replication means independent responses at the setting,not copied records.

Write each setting’s response mean as ȳⱼ and its fitted model response as ŷⱼ. Residual variation decomposes as SSEpure=ΣⱼΣᵢ(yᵢⱼ−ȳⱼ)² and SSElof=Σⱼnⱼ(ȳⱼ−ŷⱼ)²,with SSE=SSEpure+SSElof. The cross term vanishes because within-setting deviations sum to zero.

The separate-mean projection P_g contains the regression projection H. The two residual components(I−P_g)y and(P_g−H)y are orthogonal,with ranks n−g and g−p. Under the stated linear-mean Gaussian null,their sums of squares divided by σ² are independent chi-squares with those degrees of freedom.

Consequently F=[SSElof/(g−p)]/[SSEpure/(n−g)] has F_(g−p,n−g) null law when the observed denominator is positive. This asks whether the declared mean restrictions are adequate relative to the replicated noise model. It does not check every covariance,tail,selection or causal assumption.

Replicated settings and lack of fitReplicated settings and lack of fit Nested projection components separate within-setting variation from restrictions on setting means. Exact F inference is unavailable at zero degrees of freedom or zero pure-error scale; no failure to reject establishes extrapolation or every model assumption. Rows / columns / actual rank: 8 / 2 / 2 Residual df n−rank: 6 SSE (u²): 16 Residual mean square (u²): 8/3 Coefficient convention: 6, 3 Pure error / lack-of-fit SSE (u²): 8 / 8 Lack-of-fit / pure-error df: 2 / 4 Observed lack-of-fit F: 2 Reference survival: ≈0.25 (finite) ; exact 1/4Replicated settings and lack of fit≈-1.3≈-1.1≈-0.4≈2.2≈0.5≈5.5≈1.4≈8.8≈2.3≈12.1Feature setting (dimensionless)Response minus first recorded Y (u)Green responses; orange setting means; blue restricted fit.Identical feature rows define a setting; copied rows are not replication.The exact F law adds a Gaussian homogeneous-error mean null.
Nested projection components separate within-setting variation from restrictions on setting means. Exact F inference is unavailable at zero degrees of freedom or zero pure-error scale; no failure to reject establishes extrapolation or every model assumption.

All displays concern a declared finite record and fitted feature space. Exact rational algebra establishes geometry; it does not prove population assumptions.

Features are dimensionless; observed responses and residuals use unit u, sums of squares use u². Approximate numerical reference values are explicitly marked.

Exact algebra and explicitly declared reference laws
QuantityValue
Rows / columns / actual rank8 / 2 / 2
Residual df n−rank6
SSE (u²)16
Residual mean square (u²)8/3
Coefficient convention6, 3
Pure error / lack-of-fit SSE (u²)8 / 8
Lack-of-fit / pure-error df2 / 4
Observed lack-of-fit F2
Reference survival≈0.25 (finite) ; exact 1/4
Exact rows, matrices and diagnostic quantities
Observed responses and fitted residuals; response unit u
RowYFitted YResidualLeverage
13307/20
25327/20
346-23/20
46603/20
579-23/20
69903/20
7121207/20
8141227/20
Exact hat matrix H
Row12345678
17/207/201/51/51/201/20-1/10-1/10
27/207/201/51/51/201/20-1/10-1/10
31/51/53/203/201/101/101/201/20
41/51/53/203/201/101/101/201/20
51/201/201/101/103/203/201/51/5
61/201/201/101/103/203/201/51/5
7-1/10-1/101/201/201/51/57/207/20
8-1/10-1/101/201/201/51/57/207/20
Prespecified distinct settings with genuinely independent replicated responses assumed for the exact test
XCountMean YFitted Y
-1243
0256
1289
221312

A pattern, small residual or undefined diagnostic is not proof of a population model. Numerical tails and drawings are marked as approximate; exact fractions, assumptions and unavailable denominators remain visible.

If g=p,the lack-of-fit numerator has zero df even though genuine replication may estimate pure error. If g=n,there is no within-setting residual df; if pure SSE is zero,the usual positive-denominator statistic is unavailable. Failure to reject an available test supplies limited evidence at the sampled settings,rather than proving a population model or extrapolation.

16

Calibrate the statistic and procedure actually used

For a prespecified family of m p-values valid under the nulls being controlled,Bonferroni rejection at α/m controls familywise error by the union bound,without requiring independence. Residual references justified under an entire Gaussian regression model control false alarms under that model null;they do not automatically identify clean rows with valid individual tests after other rows have been contaminated. A value selected after searching models,rows or deletions is not automatically the p-value of the unselected procedure.

For example,external t diagnostics require their centered Gaussian model,rank-preserving deletion,positive df and a defined deleted scale. A deterministic feature-based family can exclude rows at an unavailable design boundary before seeing responses,but an undefined diagnostic is not a clean bill of health.

Another approach derives a joint diagnostic statistic under a fully specified null procedure. With fixed X,choose a nonempty index family I using only X,with hᵢ<1 for every i∈I. Under the correct centered homogeneous Gaussian model with σ>0,T=max_{i∈I}|rᵢ| is invariant to the unknown model mean Xβ and common scale when SSE>0. Its null law can therefore be simulated by independent standard-normal error vectors,refitting and recomputing the same statistic over the same eligible family each time.

The diagnostic family and its null lawThe diagnostic family and its null law The same fixed eligible family and fitted statistic are required in the observation and every null replicate. The 19 recorded maxima are retained from the approved finite-precision example without generating new normal draws. Ideal exchangeability, not the existence of a seed, supports superuniform rank p-values. Rows / columns / actual rank: 5 / 2 / 2 Residual df n−rank: 3 SSE (u²): 19/10 Residual mean square (u²): 19/30 Coefficient convention: 2, 21/10 Observed T=max |r_i|: √(75/38) ; ≈1.405 Retained B / inclusive exceedances: 19 / 16 Inclusive plus-one rank p: 17/20 Minimum possible rank p: 1/20 Finite comparison margin: ≈0.02825The diagnostic family and its null law00≈0.446≈0.25≈0.892≈0.5≈1.338≈0.75≈1.784≈1Maximum absolute internal residualRetained replicate empirical fractionBlue: retained 19 maxima; red: observed fitted maximum.Ideal exchangeable refitted statistics justify the rank theorem.A saved finite PRNG illustration does not prove those conditions.
The same fixed eligible family and fitted statistic are required in the observation and every null replicate. The 19 recorded maxima are retained from the approved finite-precision example without generating new normal draws. Ideal exchangeability, not the existence of a seed, supports superuniform rank p-values.

All displays concern a declared finite record and fitted feature space. Exact rational algebra establishes geometry; it does not prove population assumptions.

Features are dimensionless; observed responses and residuals use unit u, sums of squares use u². Approximate numerical reference values are explicitly marked.

The reference model is a correct centered homogeneous Gaussian conditional regression with positive common error variance. The nonempty eligible family must be fixed from X before examining responses and every included h must be strictly below one. These requirements are stipulated, not inferred from a display.

Exact algebra and explicitly declared reference laws
QuantityValue
Rows / columns / actual rank5 / 2 / 2
Residual df n−rank3
SSE (u²)19/10
Residual mean square (u²)19/30
Coefficient convention2, 21/10
Observed T=max |r_i|√(75/38) ; ≈1.405
Retained B / inclusive exceedances19 / 16
Inclusive plus-one rank p17/20
Minimum possible rank p1/20
Finite comparison margin≈0.02825
Exact rows, matrices and diagnostic quantities
Observed responses and fitted residuals; response unit u
RowYFitted YResidualLeverage
1-2-11/51/53/5
20-1/101/103/10
312-11/5
4541/109/103/10
5631/5-1/53/5
Exact hat matrix H
Row12345
13/52/51/50-1/5
22/53/101/51/100
31/51/51/51/51/5
401/101/53/102/5
5-1/501/52/53/5

A pattern, small residual or undefined diagnostic is not proof of a population model. Numerical tails and drawings are marked as approximate; exact fractions, assumptions and unavailable denominators remain visible.

If the observed statistic and B simulated null statistics have that exchangeable law,the inclusive plus-one rank p=(1+#{Tsim≥Tobs})/(B+1) is superuniform,including ties. Its minimum is1/(B+1). Simulating untouched iid residuals,changing the statistic after seeing the result or ignoring a response-based selection step would not establish this claim.

A saved seeded finite-precision illustration can make the calculation reproducible,but does not itself prove ideal independent-normal simulation. Separate the mathematical calibration conditions,the chosen model,the fitting procedure and the recorded numerical illustration. If nuisance parameters do not cancel,the simple exact argument needs further justification.

17

Keep diagnostics connected to how the measurements were made

Regression residuals compare the recorded response with the fitted response in its chosen coordinate system. Measurement error in predictors,rounding,detection limits and changes in instrument calibration can alter both the target and the visible residual behavior. A plausible residual plot does not identify the unobserved true predictor values.

Vertical-error least squares assumes an error direction appropriate to its scientific interpretation. If both measured axes have material error,a different measurement model may be needed. Choosing it requires information about instruments and uncertainty,rather than only a preference for a better-looking fit.

A transformation changes the diagnostic scale and often the prediction target. Checks on a log response concern that transformed model. Lesson165 derived the original-scale mean correction under a declared normal log-error law; a zero fitted log-residual sum alone does not provide that law or an unbiased original-scale mean prediction.

Preserve units,transformation definitions,measurement timing and possible censoring or selection. A model revision can change what is being estimated even when its diagnostics improve. Explain the revised target and evaluate its uncertainty and prediction evidence accordingly.

18

Use the actual independent units

Repeated observations from a person,device,site or time block can share disturbances. Their covariance contributes to the uncertainty of a fitted result. Increasing the row count by repeating dependent records does not create the same information as independent sampling.

For eight independent subjects with four observations each,common variance σ² and within-subject pair correlation3/5,the grand-mean variance is σ²[1+3(3/5)]/32=7σ²/80. The independent-row formula σ²/32 is smaller by a factor14/5. This exact covariance calculation does not grant an iid t reference with31df.

Cluster or time-series covariance estimation needs conditions matching the grouping and available independent information;many-cluster asymptotics are not an automatic guarantee with eight subjects. The chosen splitting or resampling unit must also respect dependence when assessing future predictions.

With incomplete or selected records,the observed conditional mean can differ from the intended population target. A selected sample can have apparently regular residuals while omitting relevant outcomes or regions. State the missingness and selection assumptions,retained population and sensitivity limits rather than treating an attractive plot as proof that the observation process is harmless.

19

A revision changes a specific part of the analysis

A heteroskedasticity-consistent covariance estimate changes estimated uncertainty around an ordinary fitted projection. Under its applicable moment,design and large-sample conditions,it can address a covariance misspecification. It does not change the fitted conditional mean,target,measurement process or omitted-confounding problem.

A robust fitting objective changes the estimator itself. An intercept minimizing squared loss is the sample mean;minimizing absolute loss gives a sample median. For responses(0,0,100),these are100/3 and0. Their difference reflects a changed loss and target,without proving that the large value is a recording error.

In a regression M-estimator,a bounded residual score ψ does not by itself bound the feature-weighted term zᵢψ(eᵢ/s). Arbitrarily large leverage can remain problematic. Robustness to response contamination,feature contamination and a scientifically heterogeneous population are distinct matters needing stated conditions.

A revised mean function,a justified covariance model,a robust loss,better measurements and a changed design answer different concerns. Document which concern motivated the choice and which assumptions support the revised analysis. Retain original records and evidence of sensitivity instead of presenting a favorable revised fit as if no selection occurred.

20

Evaluate the procedure that includes the revisions

Inspecting residuals can motivate adding curvature,interactions,groups or a different scale. Choosing among these using the same responses makes the final specification data dependent. The fixed-model t or F reference stated before that search does not automatically cover the selected result.

A scientifically specified diagnostic and revision plan can be examined as a whole procedure. An independent assessment or an appropriate refitted/nested evaluation can include the selection step. Merely adjusting a collection of uncalibrated post-selection p-values does not establish valid inference.

Prediction assessment also includes every learned operation. Imputation,scaling,feature selection,tuning and diagnostic-driven exclusions belong inside the relevant training portion. Repeated subjects and time-dependent prediction need splits matching independent units and information available at prediction time.

Keep an untouched final assessment when its independence is part of the claim,and report the number and nature of revisions. A small validation set or a repeatedly consulted score has uncertainty and selection limitations. Lesson167 develops prediction risk and validation in greater depth;the present lesson establishes why diagnostics must be included in that evaluated procedure.

21

Some questions are not identified by these observations

Residual checks examine implications visible in a particular record and fitted feature space. Two models can agree at every observed design point and differ elsewhere. An interpolating function can have zero training residual while assigning arbitrary behavior at an unobserved query.

The time/feature alias illustrates an analogous design limitation:separate contributions can produce the same observed means. A smooth display cannot distinguish them without additional variation or information. Sample size helps only when it supplies information relevant to the unresolved direction.

The observationally equivalent causal systems in lesson164 also retain identical observational fit implications while differing under intervention. Neither normal-looking residuals nor a precisely fitted observational slope selects between those causal explanations. State the intervention and identification assumptions if that is the scientific target.

A new population,instrument,range or decision rule can violate relationships that were useful in the original observations. Distinguish evidence at sampled settings from extrapolation and transport. A limitation should identify the missing information or assumption rather than disappear behind a global label of model adequacy.

22

Make the diagnostic argument reproducible

Record the response definition,units,feature construction,intercept and reference coding,independent-unit count,rank and residual df. Preserve acquisition order,groups,replication,missingness and measurement information needed to reconstruct the diagnostic questions.

State residual and influence conventions,including full versus deleted scale,which rows or comparisons formed a prespecified family,and any undefined rank or variance boundaries. Store the fitted record and computation method so another analyst can reproduce the numerical summaries.

When a diagnostic motivates an investigation,document the scientific explanation considered,the evidence obtained,and any change in measurements,exclusions,mean structure or covariance. Compare justified alternatives and report material sensitivity. A threshold or a desired result alone does not establish a valid deletion rule.

Separate the evidence for fit implications,uncertainty,prediction and causal identification. Give the assumptions supporting each conclusion and the limits of the checks performed. Reproducibility includes the selection and revision history,not only the final coefficient table.

23

Use diagnostics to improve what can be learned

In physical calibration,run order and environmental conditions can reveal instrument drift or a measurement-scale problem that is hard to see beside the fitted response trend. Genuine repeated measurements at controlled settings can supply a pure-error comparison,with independence and scale assumptions checked.

In biology,within-organism dependence and between-organism variation change the effective information in repeated records. In economics,common regional or temporal shocks can affect a covariance analysis,while an observationally adequate regression still needs an identification argument for a policy intervention.

For machine learning,residual and group diagnostics can reveal systematic prediction weaknesses,leakage or different behavior across recorded conditions. Their scientific meaning depends on targets,data availability and how the entire algorithm was selected and assessed. Iid validation does not establish performance under every population shift.

Change one declared record, assumption or boundary at a time. Every display retains its fitted state, exact text equivalent and any unavailable reference law.

Residual geometry and covariance

Five pairs: exact projection · ready

Residual geometry and covarianceResidual geometry and covariance Fitting imposes exact orthogonality and a residual-space covariance. A zero sample residual sum is not evidence that latent errors have zero conditional mean. Rows / columns / actual rank: 5 / 2 / 2 Residual df n−rank: 3 SSE (u²): 19/10 Residual mean square (u²): 19/30 Coefficient convention: 2, 21/10 Normal equations Xᵀe: 0, 0Residual geometry and covarianceResidual-space projection M = I − H.11+−−0+22−+−−033−−+−−440−−+−55+0−−+Color shows sign; fill intensity shows relative magnitude.Exact matrix entries and scale are retained in the text table.
Fitting imposes exact orthogonality and a residual-space covariance. A zero sample residual sum is not evidence that latent errors have zero conditional mean.

All displays concern a declared finite record and fitted feature space. Exact rational algebra establishes geometry; it does not prove population assumptions.

Features are dimensionless; observed responses and residuals use unit u, sums of squares use u². Approximate numerical reference values are explicitly marked.

Exact algebra and explicitly declared reference laws
QuantityValue
Rows / columns / actual rank5 / 2 / 2
Residual df n−rank3
SSE (u²)19/10
Residual mean square (u²)19/30
Coefficient convention2, 21/10
Normal equations Xᵀe0, 0
Exact rows, matrices and diagnostic quantities
Observed responses and fitted residuals; response unit u
RowYFitted YResidualLeverage
1-2-11/51/53/5
20-1/101/103/10
312-11/5
4541/109/103/10
5631/5-1/53/5
Exact hat matrix H
Row12345
13/52/51/50-1/5
22/53/101/51/100
31/51/51/51/51/5
401/101/53/102/5
5-1/501/52/53/5

A pattern, small residual or undefined diagnostic is not proof of a population model. Numerical tails and drawings are marked as approximate; exact fractions, assumptions and unavailable denominators remain visible.

Internal and deleted studentization

Central row: internal versus deleted · ready

Internal and deleted studentizationInternal and deleted studentization The internal residual is algebraically bounded; it is not an ordinary unbounded t draw. Exact beta/t reference statements require the stated correct centered Gaussian mean and common positive variance. The selected row is prespecified. Rows / columns / actual rank: 5 / 2 / 2 Residual df n−rank: 3 SSE (u²): 19/10 Residual mean square (u²): 19/30 Coefficient convention: 2, 21/10 Selected row: 3 Internal residual r: −√(75/38) External residual t: −√(50/13) Internal algebraic bound r²≤nu: 75/38 ≤ 3 Prespecified-row two-sided Gaussian t tail: ≈0.1889 (finite)Internal and deleted studentization0≈1.058≈2.115≈3.173≈4.231Squared dimensionless statisticBlue internal; orange external; green internal boundInternal r²External t²Bound nuSquares compare magnitudes; signed exact roots remain in the table.Internal and external reference laws use different denominators.
The internal residual is algebraically bounded; it is not an ordinary unbounded t draw. Exact beta/t reference statements require the stated correct centered Gaussian mean and common positive variance. The selected row is prespecified.

All displays concern a declared finite record and fitted feature space. Exact rational algebra establishes geometry; it does not prove population assumptions.

Features are dimensionless; observed responses and residuals use unit u, sums of squares use u². Approximate numerical reference values are explicitly marked.

Exact algebra and explicitly declared reference laws
QuantityValue
Rows / columns / actual rank5 / 2 / 2
Residual df n−rank3
SSE (u²)19/10
Residual mean square (u²)19/30
Coefficient convention2, 21/10
Selected row3
Internal residual r−√(75/38)
External residual t−√(50/13)
Internal algebraic bound r²≤nu75/38 ≤ 3
Prespecified-row two-sided Gaussian t tail≈0.1889 (finite)
Exact rows, matrices and diagnostic quantities
Observed responses and fitted residuals; response unit u
RowYFitted YResidualLeverage
1-2-11/51/53/5
20-1/101/103/10
312-11/5
4541/109/103/10
5631/5-1/53/5
Exact hat matrix H
Row12345
13/52/51/50-1/5
22/53/101/51/100
31/51/51/51/51/5
401/101/53/102/5
5-1/501/52/53/5

A pattern, small residual or undefined diagnostic is not proof of a population model. Numerical tails and drawings are marked as approximate; exact fractions, assumptions and unavailable denominators remain visible.

Single and group deletion sensitivity

Central row: fitted-space change · ready

Single and group deletion sensitivitySingle and group deletion sensitivity Single and group deletion compare the explicitly defined least-squares fits. Selection of a deletion set from responses does not inherit unselected uncertainty claims; sensitivity alone does not identify a recording error. Rows / columns / actual rank: 5 / 2 / 2 Residual df n−rank: 3 SSE (u²): 19/10 Residual mean square (u²): 19/30 Coefficient convention: 2, 21/10 Deleted coefficient vector: 9/4, 21/10 Full minus deleted coefficients: -1/4, 0 Omitted prediction errors: -5/4 (I−H_DD)d = e_D: -1 = -1 Cook distance: 75/304 DFFITS: −√(25/26)Single and group deletion sensitivity≈0.5≈-0.865≈1.75≈1.73≈3≈4.325≈4.25≈6.92≈5.5≈9.515Original row numberFitted response minus first full fit (u)Blue full fit; orange dashed deleted fit; green change.Predictions are compared at every original feature row.Deleting a selected group does not add single-row influences.
Single and group deletion compare the explicitly defined least-squares fits. Selection of a deletion set from responses does not inherit unselected uncertainty claims; sensitivity alone does not identify a recording error.

All displays concern a declared finite record and fitted feature space. Exact rational algebra establishes geometry; it does not prove population assumptions.

Features are dimensionless; observed responses and residuals use unit u, sums of squares use u². Approximate numerical reference values are explicitly marked.

Exact algebra and explicitly declared reference laws
QuantityValue
Rows / columns / actual rank5 / 2 / 2
Residual df n−rank3
SSE (u²)19/10
Residual mean square (u²)19/30
Coefficient convention2, 21/10
Deleted coefficient vector9/4, 21/10
Full minus deleted coefficients-1/4, 0
Omitted prediction errors-5/4
(I−H_DD)d = e_D-1 = -1
Cook distance75/304
DFFITS−√(25/26)
Exact rows, matrices and diagnostic quantities
Observed responses and fitted residuals; response unit u
RowYFitted YResidualLeverage
1-2-11/51/53/5
20-1/101/103/10
312-11/5
4541/109/103/10
5631/5-1/53/5
Exact hat matrix H
Row12345
13/52/51/50-1/5
22/53/101/51/100
31/51/51/51/51/5
401/101/53/102/5
5-1/501/52/53/5

A pattern, small residual or undefined diagnostic is not proof of a population model. Numerical tails and drawings are marked as approximate; exact fractions, assumptions and unavailable denominators remain visible.

Mean, spread, order and design

Curvature left outside a linear fit · ready

Mean, spread, order and designMean, spread, order and design Mean defects, leverage, spread, time order and design aliasing are different explanations. DW is a descriptive finite-record ratio here; no distribution-free p-value, independence or causal conclusion is attached. Rows / columns / actual rank: 5 / 2 / 2 Residual df n−rank: 3 SSE (u²): 14 Residual mean square (u²): 14/3 Coefficient convention: 2, 0 Descriptive run-order DW: 10/7Mean, spread, order and design≈-2.4≈-2.4≈-1.2≈-1.200≈1.2≈1.2≈2.4≈2.4Feature value (dimensionless)Signed fitted residual (u)A descriptive pattern motivates a specific investigation.No plotted shape alone establishes a mean or covariance model.Order, units, leverage and available feature variation all matter.
Mean defects, leverage, spread, time order and design aliasing are different explanations. DW is a descriptive finite-record ratio here; no distribution-free p-value, independence or causal conclusion is attached.

All displays concern a declared finite record and fitted feature space. Exact rational algebra establishes geometry; it does not prove population assumptions.

Features are dimensionless; observed responses and residuals use unit u, sums of squares use u². Approximate numerical reference values are explicitly marked.

Exact algebra and explicitly declared reference laws
QuantityValue
Rows / columns / actual rank5 / 2 / 2
Residual df n−rank3
SSE (u²)14
Residual mean square (u²)14/3
Coefficient convention2, 0
Descriptive run-order DW10/7
Exact rows, matrices and diagnostic quantities
Observed responses and fitted residuals; response unit u
RowYFitted YResidualLeverage
14223/5
212-13/10
302-21/5
412-13/10
54223/5
Exact hat matrix H
Row12345
13/52/51/50-1/5
22/53/101/51/100
31/51/51/51/51/5
401/101/53/102/5
5-1/501/52/53/5

A pattern, small residual or undefined diagnostic is not proof of a population model. Numerical tails and drawings are marked as approximate; exact fractions, assumptions and unavailable denominators remain visible.

Replicated settings and lack of fit

Four settings: pure error and lack of fit · ready

Replicated settings and lack of fitReplicated settings and lack of fit Nested projection components separate within-setting variation from restrictions on setting means. Exact F inference is unavailable at zero degrees of freedom or zero pure-error scale; no failure to reject establishes extrapolation or every model assumption. Rows / columns / actual rank: 8 / 2 / 2 Residual df n−rank: 6 SSE (u²): 16 Residual mean square (u²): 8/3 Coefficient convention: 6, 3 Pure error / lack-of-fit SSE (u²): 8 / 8 Lack-of-fit / pure-error df: 2 / 4 Observed lack-of-fit F: 2 Reference survival: ≈0.25 (finite) ; exact 1/4Replicated settings and lack of fit≈-1.3≈-1.1≈-0.4≈2.2≈0.5≈5.5≈1.4≈8.8≈2.3≈12.1Feature setting (dimensionless)Response minus first recorded Y (u)Green responses; orange setting means; blue restricted fit.Identical feature rows define a setting; copied rows are not replication.The exact F law adds a Gaussian homogeneous-error mean null.
Nested projection components separate within-setting variation from restrictions on setting means. Exact F inference is unavailable at zero degrees of freedom or zero pure-error scale; no failure to reject establishes extrapolation or every model assumption.

All displays concern a declared finite record and fitted feature space. Exact rational algebra establishes geometry; it does not prove population assumptions.

Features are dimensionless; observed responses and residuals use unit u, sums of squares use u². Approximate numerical reference values are explicitly marked.

Exact algebra and explicitly declared reference laws
QuantityValue
Rows / columns / actual rank8 / 2 / 2
Residual df n−rank6
SSE (u²)16
Residual mean square (u²)8/3
Coefficient convention6, 3
Pure error / lack-of-fit SSE (u²)8 / 8
Lack-of-fit / pure-error df2 / 4
Observed lack-of-fit F2
Reference survival≈0.25 (finite) ; exact 1/4
Exact rows, matrices and diagnostic quantities
Observed responses and fitted residuals; response unit u
RowYFitted YResidualLeverage
13307/20
25327/20
346-23/20
46603/20
579-23/20
69903/20
7121207/20
8141227/20
Exact hat matrix H
Row12345678
17/207/201/51/51/201/20-1/10-1/10
27/207/201/51/51/201/20-1/10-1/10
31/51/53/203/201/101/101/201/20
41/51/53/203/201/101/101/201/20
51/201/201/101/103/203/201/51/5
61/201/201/101/103/203/201/51/5
7-1/10-1/101/201/201/51/57/207/20
8-1/10-1/101/201/201/51/57/207/20
Prespecified distinct settings with genuinely independent replicated responses assumed for the exact test
XCountMean YFitted Y
-1243
0256
1289
221312

A pattern, small residual or undefined diagnostic is not proof of a population model. Numerical tails and drawings are marked as approximate; exact fractions, assumptions and unavailable denominators remain visible.

The diagnostic family and its null law

Retained seeded null-max illustration · ready

The diagnostic family and its null lawThe diagnostic family and its null law The same fixed eligible family and fitted statistic are required in the observation and every null replicate. The 19 recorded maxima are retained from the approved finite-precision example without generating new normal draws. Ideal exchangeability, not the existence of a seed, supports superuniform rank p-values. Rows / columns / actual rank: 5 / 2 / 2 Residual df n−rank: 3 SSE (u²): 19/10 Residual mean square (u²): 19/30 Coefficient convention: 2, 21/10 Observed T=max |r_i|: √(75/38) ; ≈1.405 Retained B / inclusive exceedances: 19 / 16 Inclusive plus-one rank p: 17/20 Minimum possible rank p: 1/20 Finite comparison margin: ≈0.02825The diagnostic family and its null law00≈0.446≈0.25≈0.892≈0.5≈1.338≈0.75≈1.784≈1Maximum absolute internal residualRetained replicate empirical fractionBlue: retained 19 maxima; red: observed fitted maximum.Ideal exchangeable refitted statistics justify the rank theorem.A saved finite PRNG illustration does not prove those conditions.
The same fixed eligible family and fitted statistic are required in the observation and every null replicate. The 19 recorded maxima are retained from the approved finite-precision example without generating new normal draws. Ideal exchangeability, not the existence of a seed, supports superuniform rank p-values.

All displays concern a declared finite record and fitted feature space. Exact rational algebra establishes geometry; it does not prove population assumptions.

Features are dimensionless; observed responses and residuals use unit u, sums of squares use u². Approximate numerical reference values are explicitly marked.

The reference model is a correct centered homogeneous Gaussian conditional regression with positive common error variance. The nonempty eligible family must be fixed from X before examining responses and every included h must be strictly below one. These requirements are stipulated, not inferred from a display.

Exact algebra and explicitly declared reference laws
QuantityValue
Rows / columns / actual rank5 / 2 / 2
Residual df n−rank3
SSE (u²)19/10
Residual mean square (u²)19/30
Coefficient convention2, 21/10
Observed T=max |r_i|√(75/38) ; ≈1.405
Retained B / inclusive exceedances19 / 16
Inclusive plus-one rank p17/20
Minimum possible rank p1/20
Finite comparison margin≈0.02825
Exact rows, matrices and diagnostic quantities
Observed responses and fitted residuals; response unit u
RowYFitted YResidualLeverage
1-2-11/51/53/5
20-1/101/103/10
312-11/5
4541/109/103/10
5631/5-1/53/5
Exact hat matrix H
Row12345
13/52/51/50-1/5
22/53/101/51/100
31/51/51/51/51/5
401/101/53/102/5
5-1/501/52/53/5

A pattern, small residual or undefined diagnostic is not proof of a population model. Numerical tails and drawings are marked as approximate; exact fractions, assumptions and unavailable denominators remain visible.

The productive next step can be a better designed measurement or independent study rather than further adjustment of the same table. Let the stated question,visible evidence and unresolved assumptions guide that choice. An honest diagnostic argument preserves both what the analysis teaches and what these observations cannot establish.

Worked examples

Save the fitted record before interpreting its residuals

Fit an intercept line to x=(−2,−1,0,1,2),y=(−2,0,1,5,6). Compute coefficients, residuals, SSE, residual mean square and leverages.

  1. The feature mean is0,response mean2,Sxx=10 and Sxy=21,so b=(2,21/10). Fitted responses are(−11/5,−1/10,2,41/10,31/5).
  2. Subtracting gives e=(1/5,1/10,−1,9/10,−1/5). Their sum and x-weighted sum are zero, and SSE=19/10.
  3. With n=5,p=2,ν=3 and s²=(19/10)/3=19/30. The simple intercept-line leverage is1/5+xᵢ²/10,giving(3/5,3/10,1/5,3/10,3/5).
  4. These quantities describe the observed fit. An interpretation of s² as a common-error variance estimate or a reference distribution for a diagnostic needs the corresponding model conditions.

b=(2,21/10),e=(1/5,1/10,−1,9/10,−1/5),SSE19/10,s²19/30 and h=(3/5,3/10,1/5,3/10,3/5).

Compute the dependence produced by fitting a mean

Three independent responses have the same conditional mean and common error variance9. Derive the intercept-only residual covariance. Separately compute residuals and s² for the observed record(2,5,8).

  1. The intercept projection is H=11ᵀ/3 and M=I−H. Under homogeneous error covariance9I,the residual covariance is9M.
  2. Thus each residual variance is6 and each off-diagonal covariance is−3. Pairwise residual correlation is−3/√(6·6)=−1/2,although the original errors are independent.
  3. For the observed record,the fitted mean is5 and residuals are(−3,0,3). Their squared sum is18 and residual df is2,so s²=9.
  4. The matching numerical value of this observed estimate and the stipulated population variance does not make them the same object. The exact fitted residual sum0 and covariance calculation show why an iid residual interpretation is unavailable.

Residual covariance diagonal6/off-diagonal−3; observed e=(−3,0,3),SSE18,s²9.

Use the actual deleted scale

For the central row x=0,y=1 of the five-pair record, compute internal and external studentized residuals and the prespecified-row two-sided external t p-value under a correct centered homogeneous Gaussian conditional model.

  1. The residual is−1,leverage1/5 and full s²19/30. Hence r²=1/[(19/30)(4/5)]=75/38 and r is negative.
  2. Deleted SSE is19/10−1/(4/5)=13/20. There areν−1=2deleted residual degrees of freedom,so s_(i)²13/40.
  3. External t is−1/√[(13/40)(4/5)]=−√(50/13)=−10/√26. The conversion from r gives the same value,while the internal statistic remains within√3.
  4. For Student t2,the two-sided tail at magnitude a is1−a/√(a²+2). Substitution gives p=1−5/√38. This is a prespecified-row calibration under the stated model,with no unaccounted search over rows or diagnostic-driven data deletion.

r=−√(75/38),t=−√(50/13),deleted df2 and pointwise p=1−5/√38.

Compare defined fitted-change quantities

For the central five-pair row,compute the deleted line,deleted prediction error,Cook distance and DFFITS using the deleted residual scale.

  1. Deleting x=0,y=1 leaves four feature values with mean0 and response mean9/4. Their centered slope remains21/10,so βhat_(i)=(9/4,21/10).
  2. Its prediction at0 is9/4,so the deleted error is1−9/4=−5/4. The same value is e/(1−h)=−1/(4/5).
  3. Cook distance is1·(1/5)/[2(19/30)(4/5)²]=75/304. Equivalently,Δ=(−1/4,0) gives ΔᵀGΔ=5/16 and division by2s² gives that result.
  4. With t=−10/√26 and h/(1−h)=1/4,DFFITS=−5/√26. Its denominator uses s_(i),while Cook distance uses the full s. These sensitivity summaries do not automatically establish an erroneous record.

Deleted b=(9/4,21/10),deleted error−5/4,Cook75/304,DFFITS−5/√26.

Keep training and leave-one-out denominators distinct

Compute PRESS and mean LOO squared loss for the five-pair intercept line. Compare its training mean squared residual and state the scope of the comparison.

  1. Every training leverage is below1,so every deleted fit retains rank. The LOO errors are(1/2,1/7,−5/4,9/7,−1/2).
  2. Their squared sum is1/4+1/49+25/16+81/49+1/4=2929/784. Mean LOO loss is2929/3920.
  3. Mean training residual loss is SSE/n=(19/10)/5=19/50. The usual variance estimate19/30 divides by residual df instead,so it is a different summary.
  4. The LOO calculation concerns the fixed feature basis and fitting algorithm. A feature-selection,tuning or preprocessing procedure must be included inside the evaluated training folds,and performance under a changed observation distribution needs separate justification.

PRESS2929/784,mean LOO loss2929/3920 and mean training loss19/50.

A zero single-case change can coexist with group sensitivity

Fit an intercept line to x=(0,1,2,3,4),y=(0,0,0,10,10). Compare deleting the last observation with deleting both of the last two.

  1. The full means are x̄=2,ȳ=4,with Sxx=10 and Sxy=30. The line is−2+3x and residuals are(2,−1,−4,3,0).
  2. The last row has residual0. Deleting it retains rank and leaves the same fitted line,so its single-case coefficient change and Cook distance are0.
  3. Deleting both last rows leaves three zero responses at distinct x values. Their fitted line is0,which differs substantially from the original line.
  4. This is a concrete limitation of considering only single deletions. The record might reflect different regimes,real groups or errors;the sensitivity calculation alone decides none of those explanations. Report the joint comparison and scientific investigation rather than automatically removing a group.

Deleting the last row leaves b=(−2,3);deleting the last two gives b=(0,0).

Propagate the actual covariance through the projection

An intercept-only fit uses three independent zero-mean errors with variances(1,4,9). Compute fitted residual covariance and the expectation of the usual residual mean square.

  1. Here M=I−11ᵀ/3 and Ω=diag(1,4,9). Multiplication gives MΩM=(1/9)[[17,−1,−16],[−1,26,−25],[−16,−25,41]].
  2. Each covariance row sums to0,as required by the exact fitted residual-sum constraint. The diagonal differs both from the original error variances and from a common scalar multiple of the homogeneous diagonal2/3.
  3. The residual mean is0 under the stipulated common population mean. Thus E[SSE|X]=trace(MΩM)=84/9=28/3. Dividing byν=2 gives E[s²|X]=14/3.
  4. The result is an average-variance quantity in this intercept-only design,not evidence for a common population variance. Applying the homogeneous Gaussian residual reference laws would require additional assumptions that this model does not satisfy.

Residual covariance(1/9)[[17,−1,−16],[−1,26,−25],[−16,−25,41]],E[SSE]=28/3,E[s²]=14/3.

A perfect fitted mean can conceal an unidentified decomposition

At the mean level,suppose μ=5+2x+3t. Compare a design with x=t=1..5 to the reordered x=(3,1,5,2,4),t=(1,2,3,4,5). In the latter record,also fit the means using x alone.

  1. When x=t,the mean is5+5x. The separate feature and time columns alias,so the coefficient decomposition2and3 is not identified by these rows despite zero mean residual for that combined line.
  2. The reordered means are(14,13,24,21,28). The intercept,x and t columns are now full rank,and the full mean model recovers(5,2,3).
  3. Ignoring time in that reordered record gives x-only coefficients(113/10,29/10) and residuals(−6,−6/5,−9/5,39/10,51/10). The omitted time contribution leaves visible structure.
  4. These are declared mean records illustrating design and misspecification. They do not claim a noise-free population or identify a causal intervention from observational fitting alone.

Sorted x=t aliases the effects;the reordered full model identifies(5,2,3),while its x-only fit is(113/10,29/10).

Use the two positive degrees-of-freedom components

For x=(−1,−1,0,0,1,1,2,2),y=(3,5,4,6,7,9,12,14),compute the intercept-line lack-of-fit statistic and null upper-tail p under independent centered Gaussian homogeneous errors and the linear-mean null.

  1. The fitted line is6+3x. The four setting means are(4,5,8,13),and residual SSE is16.
  2. Within each two-response setting,the deviations from its mean are−1and1. Pure SSE is8 with n−g=4df. The differences between setting means and fitted means are(1,−1,−1,1),so lack-of-fit SSE is2(1+1+1+1)=8 with g−p=2df.
  3. F=(8/2)/(8/4)=2. Under the declared null it has F₂,₄ law,whose survival at2 is[4/(4+2·2)]²=1/4.
  4. Both denominator components are defined and the model spaces are nested. This result does not reject at5%,but a finite failure to reject does not establish linearity or every other assumption.

SSEpure8df4,SSElof8df2,F2 with df(2,4),null p1/4.

Finite variance does not supply an exact t reference

An intercept-only sample of four has independent errors equal to±1 with probability1/2each around a common mean. Calculate the probability of zero residual SSE,and inspect the observed centered record(−1,−1,1,1).

  1. Each error has mean0 and variance1. Nevertheless,all four errors can equal1 or all can equal−1,with total probability2(1/2)⁴=1/8.
  2. On either all-equal event,the fitted intercept absorbs that common value and every residual is0. The usual positive-denominator Student statistic cannot be formed.
  3. For the displayed balanced record,the fitted mean is0,SSE4 and s²4/3. Across samples,the possible statistics are discrete,with the positive-probability zero-scale boundary just described.
  4. The finite-sample Gaussian t₃ law therefore does not apply. Extending the all-equal nonzero-mean discrepancies to infinite statistics and comparing with any finite two-sided t cutoff would already reject the true mean on at least1/8of samples. Finite-variance estimation and exact Gaussian inference have distinct conditions.

Zero-SSE probability1/8;displayed mean0,SSE4,s²4/3;no exact Gaussian t₃ law.

Keep an illustrative run separate from the calibration theorem

Use the five-pair fixed design and T=max|rᵢ| under a correct centered homogeneous Gaussian model. The saved illustrative run generated19standard-normal input vectors by the declared seed166Park–Miller/Box–Muller algorithm and refitted every vector. Sixteen simulated maxima were at least the observed value. Compute the plus-one p and state its scope.

  1. The observed maximum is√(75/38). Because the fixed-design internally studentized vector is invariant to Xβ and positive common σ,its ideal Gaussian null law can be generated with mean0 and variance1 before refitting.
  2. With B=19 and K=16inclusive exceedances,the rank calculation gives(1+16)/(19+1)=17/20. Its minimum possible value for this B would be1/20,not zero.
  3. The saved calculation retains all19input vectors and maxima. Its smallest absolute comparison margin is approximately0.02825342,so the recorded exceedance count is not near a floating-point tie.
  4. The finite-precision seeded generator makes this illustration reproducible. Exact superuniform calibration belongs to the separate ideal exchangeability argument under the full null and prespecified statistic. A different or response-selected procedure needs its own justification;this large value does not prove the model true.

The recorded rank value is17/20;ideal calibration requires the stated exchangeable null procedure.

Report unavailable diagnostics explicitly

Fit an intercept line to x=(0,0,1),y=(0,2,5). Determine its residuals,leverages,delete-one and external-studentization boundaries,and whether replicated lack of fit can be tested.

  1. The fitted line is1+4x,with residuals(−1,1,0),SSE2 and ν=3−2=1. Leverages are(1/2,1/2,1).
  2. Deleting the last row leaves no variation in x,so rank falls and its usual deleted prediction is not identified. The corresponding0/0means whole-record ordinary PRESS is unavailable.
  3. Deleting either of the first two rows retains rank,but leaves n−1=p and no deleted residual df. Thus the usual external t scale is unavailable even for these rank-preserving deletions.
  4. There are g=2replicated settings and p=2mean parameters. Pure-error df n−g=1exists,but lack-of-fit df g−p=0. Genuine replication alone does not supply a positive numerator df for that test.

b=(1,4),e=(−1,1,0),h=(1/2,1/2,1);whole PRESS/external t and a positive-df lack-of-fit test are unavailable for the stated reasons.

Try it yourself

  1. For x=(0,1,2,3),a full-rank intercept-line residual vector is(1,−3,3,−1). Verify both normal-equation sums and compute SSE,residual df and s².

    Show the answer and reasoning

    Σe=0,Σxe=0,SSE20,df2,s²10.

    The sums are1−3+3−1=0 and0−3+6−3=0. Squared residuals sum to20,and n−p=4−2=2. These exact fitting identities do not establish population error centering or normality.

  2. Four independent responses share a conditional mean and error variance4. For their intercept-only fit,find each residual variance,distinct-pair covariance and correlation.

    Show the answer and reasoning

    Variance3,covariance−1,correlation−1/3.

    H=11ᵀ/4,so Cov(e|X)=4(I−H). The diagonal is4(3/4)=3 and each off-diagonal entry is−1. Dividing by the common residual variance gives correlation−1/3;fitting has created dependence.

  3. An ordinary full-rank fit hasν=4,positive SSE and hᵢ<1. A report calls2.5the internally studentized residual at a row. What should be checked?

    Show the answer and reasoning

    The reported value is incompatible with the stated internal definition because |rᵢ|≤2.

    Cauchy–Schwarz gives eᵢ²≤(1−hᵢ)SSE,so rᵢ²≤ν=4. Check whether the software used a deleted scale,a different normalization,an incorrect rank or a computation error. Do not reinterpret2.5as an unusual draw from the exact internal distribution.

  4. A rank-preserving deletion hasν=5 and rᵢ=√(5/2),with positive full and deleted scales. Find external tᵢ and its df under the correct centered homogeneous Gaussian model.

    Show the answer and reasoning

    tᵢ=2 with4deleted residual df.

    The conversion gives tᵢ²=(5/2)·4/[5−5/2]=4 and its sign is positive. The exact t reference hasν−1=4df under the stated model. The algebraic conversion alone would not supply that probability law.

  5. A full-rank n=8,p=2 fit has s²=4,eᵢ=2 and hᵢ=3/4. Compute its deleted prediction error and Cook distance.

    Show the answer and reasoning

    Deleted error8 and CookD6.

    The deleted error is2/(1/4)=8. CookD=4(3/4)/[2·4·(1/4)²]=6. Here deletion retains rank;the large sensitivity motivates scientific investigation and does not itself prove the observation erroneous.

  6. For no-intercept x=(0,1,2),y=(3,0,1),examine the first row’s leverage,Cook distance,LOO error and direct DFFITS fitted-change standardization.

    Show the answer and reasoning

    h=0,CookD0,LOOerror3;the direct DFFITS ratio is0/0 and needs a stated convention.

    The slope is2/5,and a zero feature row contributes nothing to its estimate or fitted value. Its residual is3 and its unique deleted prediction remains0. Cook’s coefficient-change numerator is0,but the DFFITS fitted-change denominator also contains√h=0. Reporting its continuous extension0 is an explicit convention rather than evaluating the original ratio.

  7. In an intercept fit,replace every response by10y+100. How do residuals,positive full/deleted scales and dimensionless influence summaries change? What does an invertible feature reparameterization preserve?

    Show the answer and reasoning

    Residuals and scales multiply10;internal/external residuals,DFFITS and CookD are unchanged. Invertible feature reparameterization preservesH and fitted-space diagnostics.

    The intercept absorbs the added constant. Positive scale factors cancel from the standardized ratios and from Cook’s squared numerator/denominator. Feature coordinate changes alter coefficient coordinates,but leave the fitted observation subspace unchanged.

  8. An intercept-only fit uses two independent errors with variances1and9. Find the residual covariance matrix. Does equal residual spread prove homogeneous errors?

    Show the answer and reasoning

    The matrix is[[5/2,−5/2],[−5/2,5/2]];no.

    M=(1/2)[[1,−1],[−1,1]],and Mdiag(1,9)M has equal diagonal5/2. The fitted constraint makes the residuals opposites,although the original errors have different variances. Interpret a spread display through the actual fitted covariance.

  9. Compute DW for e=(1,−1,1,−1),then for the reordered values(−1,−1,1,1). State the interpretive limitation.

    Show the answer and reasoning

    DW3 and1respectively;order is part of the diagnostic and no universal p-value follows.

    The common squared sum is4. Successive squared differences sum to12in the first order and4in the second. Acquisition order and the regression/error model matter,so sorting residuals can remove or create a misleading appearance of serial structure.

  10. Prespecified replicated settings give n=9,g=3,a full-rank p=2model,SSEpure=6 and SSElof=12. Under the centered homogeneous Gaussian linear-mean null,compute the defined F statistic and df.

    Show the answer and reasoning

    F12 with df(1,6).

    Lack-of-fit df is g−p=1 and pure-error df is n−g=6. The ratio is(12/1)/(6/6)=12. Positive pure SSE,independent genuine replication,nesting and the stated error model support this exact null reference.

  11. A replicated design has n=6,g=3 and a full-rank p=3mean model containing all separate setting means. What lack-of-fit and pure-error df are available?

    Show the answer and reasoning

    Pure-error df3; lack-of-fit df0,so the usual positive-df lack-of-fit F test is unavailable.

    The model already spans the g-dimensional setting-mean space. Replication provides within-setting variation,but no remaining mean restriction at those settings to compare with it. This does not establish behavior at unobserved settings.

  12. Under the fully correct Gaussian model null,eight prespecified two-sided external t diagnostic p-values are valid. For family false-alarm level0.05,find the Bonferroni p cutoff and upper t quantile probability. Is independence needed?

    Show the answer and reasoning

    Individual cutoff0.00625;upper quantile probability0.996875;independence is unnecessary for the union bound.

    Use0.05/8=1/160 for each two-sided p and upper probability1−0.05/(2·8)=319/320,with the applicable deleted residual df. The underlying reference assumptions remain necessary. This full-model-null statement does not automatically classify clean rows after other observations violate that model.

  13. A prespecified fitted diagnostic has39independent ideal null replicates,2at least its observed value. Compute the inclusive rank p. With999replicates,what is the minimum possible positive value?

    Show the answer and reasoning

    3/40 and1/1000respectively.

    The plus-one formula gives(1+2)/(39+1)=3/40. With B=999,the numerator is at least1 and denominator1000. The observed and simulated statistics need the claimed exchangeable null law;unaccounted selection or optional simulation stopping requires additional justification.

  14. Does a correct conditional Gaussian linear-error model require normal predictors or a normally shaped pooled response histogram? How should residual dependence be treated?

    Show the answer and reasoning

    Neither pooled requirement follows;the conditional centered error law and fitted residual covariance are relevant.

    Features can be fixed or have a nonnormal distribution,and different conditional means can produce a nonnormal pooled response distribution. Fitting gives residual covarianceσ²M even with independent Gaussian errors. An iid residual normality test is therefore not automatically exactly calibrated.

  15. Eight independent subjects each provide four observations with common varianceσ² and within-subject pair correlation3/5. Find the grand-mean variance and its ratio to the independent-row formula.

    Show the answer and reasoning

    7σ²/80,which is14/5timesσ²/32.

    The32individual variances and within-subject covariances give Var(mean)=σ²[1+3(3/5)]/32. There are eight independent subjects,not32independent sampling units. The exact covariance calculation does not automatically justify an estimated cluster procedure or an iid t31reference.

  16. In a full-rank homogeneous intercept model,an auxiliary regression’s multiple correlation is Rⱼ=3/5. Find Rⱼ²,VIF and the SE inflation at the same predictor spread and error variance.

    Show the answer and reasoning

    Rⱼ²=9/25,VIF25/16 and SEfactor5/4.

    VIF is1/(1−Rⱼ²)=1/(16/25)=25/16. Its square root gives5/4. Using1/(1−Rⱼ)²would give the wrong answer,and a variance-inflation comparison alone does not determine a scientific deletion decision.

  17. For an intercept-only record(0,0,100),find the squared-loss and absolute-loss minimizers. Does a bounded residual score alone ensure protection against arbitrary feature leverage in a general regression?

    Show the answer and reasoning

    Squared loss gives100/3;absolute loss gives0. A bounded residual score alone does not control arbitrary leverage.

    The mean minimizes squared loss and the median minimizes absolute loss. They reflect different objectives. In a regression score,zᵢψ(eᵢ/s)can remain arbitrarily large as the feature grows despite bounded ψ. Neither the objective change nor a diagnostic threshold proves the large response erroneous.

  18. A team chooses transformations,features and exclusions after inspecting many diagnostics,and reports the original fixed-model p-values for its final specification. What remains to justify?

    Show the answer and reasoning

    The calibration and evaluation of the whole selected procedure,with its revision history and appropriate independent/refitted assessment.

    The final model was chosen using information those fixed-model references did not account for. Preserve the investigation log and scientific reasons,include learned operations inside prediction evaluation,and use inference suited to the actual selection procedure. Favorable final residuals do not erase the search or prove transport or causal identification.

What to carry forward

  • Fitted residuals are constrained projections;independent errors generally produce dependent residuals with leverage-dependent variances.
  • Internal studentization is bounded by residual degrees of freedom;external t references need the centered Gaussian model,positive deleted scale and rank conditions.
  • Mean shape,spread,order,tails,feature geometry and observation selection require different evidence.
  • Leverage,response discrepancy and influence describe distinct aspects of a fitted record;thresholds do not automatically justify deletion.
  • Delete-one identities and PRESS require identified deleted predictions;scale and rank boundaries remain explicit.
  • Cook distance,DFFITS and coefficient changes use different metrics and variance conventions;group sensitivity can exceed what a single deletion reveals.
  • Replicated lack of fit compares nested mean restrictions with genuine within-setting variation under positive-df and covariance assumptions.
  • Diagnostic families and null simulations must calibrate the actual fitted and selected procedure,with numerical illustrations separated from ideal probability guarantees.
  • Robust covariance,robust fitting,better measurements and a changed design address different questions and can change the target.
  • A reproducible diagnostic argument preserves original data,selection history,scientific assumptions and the limits of fit,prediction and causal conclusions.

References

Sources for the concepts and teaching approaches in this article.

  1. National Institute of Standards and Technology (NIST)2 sources
    1. Regression Diagnostics: Pre-Fit PlotsNIST DataplotOfficial software documentationitl.nist.govRead source
  2. Identifying Outliers: Internally and Externally Studentized ResidualsPenn State Department of StatisticsUniversity courseonline.stat.psu.eduRead source
  3. Regression Deletion DiagnosticsR Core TeamOfficial software documentationstat.ethz.chRead source
  4. Econometrics: Regression and Projection; Least-Squares InferenceBruce E. Hansen, author manuscriptAuthor textbook · PDFusers.ssc.wisc.eduRead source