ArticleslgStudy

mathematics

Studentized residual

Studentized residual is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Studentized residual rather than just read about it. In short: In statistics, a studentized residual is the dimensionless ratio resulting from the division of a residual by an estimate of its standard deviation, both expressed in the same units. It is a form of a Student's t-statistic, with the estimate of error varying between points.

Key takeaways

  • Studentized residual belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Studentized residual to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Studentized residual from memory before moving on to harder problems.

Reference excerpt

In statistics, a studentized residual is the dimensionless ratio resulting from the division of a residual by an estimate of its standard deviation, both expressed in the same units. It is a form of a Student's t-statistic, with the estimate of error varying between points. This is an important technique in the detection of outliers. It is among several named in honor of William Sealey Gosset, who wrote under the pseudonym "Student" (e.g., Student's distribution). Dividing a statistic by a sample standard deviation is called studentizing, in analogy with standardizing and normalizing.

Motivation

The key reason for studentizing is that, in regression analysis of a multivariate distribution, the variances of the residuals at different input variable values may differ, even if the variances of the errors at these different input variable values are equal. The issue is the difference between errors and residuals in statistics, particularly the behavior of residuals in regressions. Consider the simple linear regression (SLR) model

Y=α0+α1X+ε. Given a random sample (Xi, Yi), i = 1, ..., n, each pair (Xi, Yi) satisfies

Yi=α0+α1Xi+εi, where the errors εi, are independent and all have the same variance σ2. The residuals are not the true errors, but estimates, based on the observable data. When the method of least squares is used to estimate α0 and α1, then the residuals ε^, unlike the errors ε, cannot be independent since they satisfy the two constraints

∑i=1nε^i=0 and

∑i=1nε^ixi=0. (Here εi is the ith error, and ε^i is the ith residual.) The residuals, unlike the errors, do not all have the same variance: the variance decreases as the corresponding x-value gets farther from the average x-value. This is not a feature of the data itself, but of the regression better fitting values at the ends of the domain. It is also reflected in the influence functions of various data points on the regression coefficients: endpoints have more influence. This can also be seen because the residuals at endpoints depend greatly on the slope of a fitted line, while the residuals at the middle are relatively insensitive to the slope. The fact that the variances of the residuals differ, even though the variances of the true errors are all equal to each other, is the principal reason for the need for studentization. It is not simply a matter of the population parameters (mean and standard deviation) being unknown – it is that regressions yield different residual distributions at different data points, unlike point estimators of univariate distributions, which share a common distribution for residuals.

Variance of a residual

The hat matrix H is the matrix of the orthogonal projection onto the column space of the design matrix X:

H=X(XTX)−1XT. The leverage hii is the ith diagonal entry in the hat matrix. The variance of the ith residual is

var⁡(ε^i)=σ2(1−hii). In simple linear regression, the design matrix X has only two columns:

X=[1x1⋮⋮1xn] In this simple case, the variance of a residual is:

var⁡(ε^i)=σ2(1−1n−(xi−x¯)2∑j=1n(xj−x¯)2). In the case of an arithmetic mean, the design matrix X has only one column (a vector of ones), and this is simply:

var⁡(ε^i)=σ2(1−1n)=σ2(n−1n). The last fraction is related to Bessel's correction.

Calculation Given the definitions above, the Studentized residual is then

ti=ε^iσ^1−hii where hii is the leverage, and σ^ is an appropriate estimate of σ (see below). In the case of a mean, this is equal to:

ti=ε^iσ^(n−1)/n

Internal and external studentization The usual estimate of σ2 is the internally studentized residual

σ^2=1n−m∑j=1nε^j2. where m is the number of parameters in the model (2 in our example). But if the i th case is suspected of being improbably large, then it would also not be normally distributed. Hence it is prudent to exclude the i th observation from the process of estimating the variance when one is considering whether the i th case may be an outlier, and instead use the externally studentized residual, which is

σ^(i)2=1n−m−1∑j=1j≠inε^j2, based on all the residuals except the suspect i th residual. Here is to emphasize that ε^j2(j≠i) for suspect i are computed with i th case excluded. If the estimate σ2 includes the i th case, then it is called the internally studentized residual, ti (also known as the standardized residual ). If the estimate σ^(i)2 is used instead, excluding the i th case, then it is called the externally studentized, ti(i).

Distribution

If the errors are independent and normally distributed with expected value 0 and variance σ2, then the probability distribution of the ith externally studentized residual ti(i) is a Student's t-distribution with n − m − 1 degrees of freedom, and can range from −∞ to +∞. On the other hand, the internally studentized residuals are in the range 0±ν, where ν = n − m is the number of residual degrees of freedom. If ti represents the internally studentized residual, and again assuming that the errors are independent identically distributed Gaussian variables, then:

ti∼νtt2+ν−1 where t is a random variable distributed as Student's t-distribution with ν − 1 degrees of freedom. In fact, this implies that ti2 /ν follows the beta distribution B(1/2,(ν − 1)/2). The distribution above is sometimes referred to as the tau distribution; it was first derived by Thompson in 1935.

Discussion When ν = 3, the internally studentized residuals are uniformly distributed between −3 and +3. If there is only one residual degree of freedom, the above formula for the distribution of internally studentized residuals doesn't apply. In this case, the ti are all either +1 or −1, with 50% chance for each. The standard deviation of the distribution of internally studentized residuals is always 1, but this does not imply that the standard deviation of all the ti of a particular experiment is 1. For instance, the internally studentized residuals when fitting a straight line going through (0, 0) to the points (1, 4), (2, −1), (2, −1) are 2, −5/5, −5/5, and the standard deviation of these is not 1. Note that any pair of studentized residual ti and tj (where i≠j), are NOT i.i.d. They have the same distribution, but are not independent due to constraints on the residuals having to sum to 0 and to have them be orthogonal to the design matrix.

Software implementations Many programs and statistics packages, such as R, Python, etc., include implementations of Studentized residual.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Studentized residual

Start with the simplest possible case. Write down what Studentized residual claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Studentized residual before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Studentized residual ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Studentized residual

In research
Studentized residual appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Studentized residual in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Studentized residual is common in secondary-school and first-year university syllabi. It links to neighbouring topics Errors and residuals, Regression diagnostics, Statistical deviation and dispersion, so understanding it makes those chapters shorter.
In everyday life
Look for Studentized residual outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Studentized residual” →

How to study Studentized residual in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Studentized residual means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Studentized residual out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Studentized residual in simple terms?

In statistics, a studentized residual is the dimensionless ratio resulting from the division of a residual by an estimate of its standard deviation, both expressed in the same units. It is a form of a Student's t-statistic, with the estimate of error varying between points.

Why does Studentized residual matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Studentized residual?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Studentized residual.

Tags

  • Errors and residuals
  • Regression diagnostics
  • Statistical deviation and dispersion
  • Statistical outliers
  • Statistical ratios

Keep exploring