Jump to content

Sum of squared errors (SSE)

From Wikibase
Revision as of 11:40, 10 November 2026 by Rongzhou (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Languages: English · français · Esperanto

Sum of squared errors (SSE) is the sum of the squares of the residuals between observed values and fitted values.

Definition

Let $\vec y=(y_1,\dots,y_n)^\top$ be observed responses and let $\hat y_i$ be the corresponding fitted values. Define the residual vector $\vec e=(e_1,\dots,e_n)^\top$ by

$$e_i=y_i-\hat y_i.$$

Then

$$ \mathrm{SSE} = \sum_{i=1}^n e_i^2 = \sum_{i=1}^n (y_i-\hat y_i)^2 = \vec e^\top\vec e = \|\vec e\|_2^2. $$

Thus

$$ \mathrm{SSE}\ge 0, \qquad \mathrm{SSE}=0 \iff \forall i\in\{1,\dots,n\},\ y_i=\hat y_i. $$