ArticleslgStudy

science

Explained sum of squares

Explained sum of squares is a science 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 Explained sum of squares rather than just read about it. In short: In statistics, the explained sum of squares (ESS), alternatively known as the model sum of squares or sum of squares due to regression (SSR – not to be confused with the residual sum of squares (RSS) or sum of squares of errors), is a quantity used in describing how well a model, often a regression model, represents the data being modelled. In particular, the explained sum of squares measures how much variation ther…

Key takeaways

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

Reference excerpt

In statistics, the explained sum of squares (ESS), alternatively known as the model sum of squares or sum of squares due to regression (SSR – not to be confused with the residual sum of squares (RSS) or sum of squares of errors), is a quantity used in describing how well a model, often a regression model, represents the data being modelled. In particular, the explained sum of squares measures how much variation there is in the modelled values and this is compared to the total sum of squares (TSS), which measures how much variation there is in the observed data, and to the residual sum of squares, which measures the variation in the error between the observed data and modelled values.

Definition The explained sum of squares (ESS) is the sum of the squares of the deviations of the predicted values from the mean value of a response variable, in a standard regression model — for example, yi = a + b1x1i + b2x2i + ... + εi, where yi is the i th observation of the response variable, xji is the i th observation of the j th explanatory variable, a and bj are coefficients, i indexes the observations from 1 to n, and εi is the i th value of the error term. In general, the greater the ESS, the better the estimated model performs. If â and b̂i are the estimated coefficients, then

ŷi=â+b̂1x1i+b̂2x2i+⋯ is the i th predicted value of the response variable. The ESS is then:

ESS=∑i=1n(ŷi−y¯)2. where ŷi is the value estimated by the regression line . In some cases (see below): total sum of squares (TSS) = explained sum of squares (ESS) + residual sum of squares (RSS).

Partitioning in simple linear regression The following equality, stating that the total sum of squares (TSS) equals the residual sum of squares (SSE, the sum of squared errors of prediction) plus the explained sum of squares (SSR, the sum of squares due to regression or explained sum of squares), is generally true in simple linear regression:

∑i=1n(yi−y¯)2=∑i=1n(yi−ŷi)2+∑i=1n(ŷi−y¯)2.

Simple derivation (yi−y¯)=(yi−ŷi)+(ŷi−y¯). Square both sides and sum over all i:

∑i=1n(yi−y¯)2=∑i=1n(yi−ŷi)2+∑i=1n(ŷi−y¯)2+∑i=1n2(ŷi−y¯)(yi−ŷi). Here is how the last term above is zero from simple linear regression

yî=â+b̂xi y¯=â+b̂x¯ b̂=∑i=1n(xi−x¯)(yi−y¯)∑i=1n(xi−x¯)2 So,

yî−y¯=b̂(xi−x¯) yi−ŷi=(yi−y¯)−(ŷi−y¯)=(yi−y¯)−b̂(xi−x¯) Therefore,

∑i=1n2(ŷi−y¯)(yi−ŷi)=2b̂∑i=1n(xi−x¯)(yi−ŷi)=2b̂∑i=1n(xi−x¯)((yi−y¯)−b̂(xi−x¯))=2b̂(∑i=1n(xi−x¯)(yi−y¯)−∑i=1n(xi−x¯)2∑j=1n(xj−x¯)(yj−y¯)∑j=1n(xj−x¯)2)=2b̂(0)=0

Partitioning in the general ordinary least squares model The general regression model with n observations and k explanators, the first of which is a constant unit vector whose coefficient is the regression intercept, is

y=Xβ+e where y is an n × 1 vector of dependent variable observations, each column of the n × k matrix X is a vector of observations on one of the k explanators, β is a k × 1 vector of true coefficients, and e is an n × 1 vector of the true underlying errors. The ordinary least squares estimator for β is

β̂=(XTX)−1XTy. The residual vector ê is y−Xβ̂=y−X(XTX)−1XTy, so the residual sum of squares êTê is, after simplification,

RSS=yTy−yTX(XTX)−1XTy. Denote as y¯ the constant vector all of whose elements are the sample mean ym of the dependent variable values in the vector y. Then the total sum of squares is

TSS=(y−y¯)T(y−y¯)=yTy−2yTy¯+y¯Ty¯. The explained sum of squares, defined as the sum of squared deviations of the predicted values from the observed mean of y, is

ESS=(ŷ−y¯)T(ŷ−y¯)=ŷTŷ−2ŷTy¯+y¯Ty¯. Using ŷ=Xβ̂ in this, and simplifying to obtain ŷTŷ=yTX(XTX)−1XTy=β̂TXTXβ̂, gives the result that TSS = ESS + RSS if and only if yTy¯=ŷTy¯. The left side of this is ym times the sum of the elements of y, and the right side is ym times the sum of the elements of ŷ, so the condition is that the sum of the elements of y equals the sum of the elements of ŷ, or equivalently that the sum of the prediction errors (residuals) yi−ŷi is zero. This can be seen to be true by noting the well-known OLS property that the k × 1 vector XTê=XT[I−X(XTX)−1XT]y=0: since the first column of X is a vector of ones, the first element of this vector XTê is the sum of the residuals and is equal to zero. This proves that the condition holds for the result that TSS = ESS + RSS. In linear algebra terms, we have RSS=‖y−ŷ‖2, TSS=‖y−y¯‖2, ESS=‖ŷ−y¯‖2. The proof can be simplified by noting that ŷTŷ=ŷTy. The proof is as follows:

ŷTŷ=yTX(XTX)−1XTX(XTX)−1XTy=yTX(XTX)−1XTy=ŷTy, Thus,

TSS=‖y−y¯‖2=‖y−ŷ+ŷ−y¯‖2=‖y−ŷ‖2+‖ŷ−y¯‖2+2⟨y−ŷ,ŷ−y¯⟩=RSS+ESS+2yTŷ−2ŷTŷ−2yTy¯+2ŷTy¯=RSS+ESS−2yTy¯+2ŷTy¯ which again gives the result that TSS = ESS + RSS, since (y−ŷ)Ty¯=0.

See also Sum of squares (statistics) Lack-of-fit sum of squares Fraction of variance unexplained

Notes

References S. E. Maxwell and H. D. Delaney (1990), "Designing experiments and analyzing data: A model comparison perspective". Wadsworth. pp. 289–290. G. A. Milliken and D. E. Johnson (1984), "Analysis of messy data", Vol. I: Designed experiments. Van Nostrand Reinhold. pp. 146–151. B. G. Tabachnick and L. S. Fidell (2007), "Experimental design using ANOVA". Duxbury. p. 220. B. G. Tabachnick and L. S. Fidell (2007), "Using multivariate statistics", 5th ed. Pearson Education. pp. 217–218.

Worked examples

Example 1 — a first encounter with Explained sum of squares

Start with the simplest possible case. Write down what Explained sum of squares claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, 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 Explained sum of squares 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 Explained sum of squares 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 Explained sum of squares

In research
Explained sum of squares appears in science 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 Explained sum of squares 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
Explained sum of squares is common in secondary-school and first-year university syllabi. It links to neighbouring topics Least squares, so understanding it makes those chapters shorter.
In everyday life
Look for Explained sum of squares 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 “Explained sum of squares” →

How to study Explained sum of squares in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Explained sum of squares 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 Explained sum of squares out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Explained sum of squares in simple terms?

In statistics, the explained sum of squares (ESS), alternatively known as the model sum of squares or sum of squares due to regression (SSR – not to be confused with the residual sum of squares (RSS) or sum of squares of errors), is a quantity used in describing how well a model, often a regression…

Why does Explained sum of squares matter?

Because it connects several science 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 Explained sum of squares?

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 Explained sum of squares.

Tags

  • Least squares

Keep exploring