Total Least Squares

Ordinary least squares regression assumes that the regressor matrix $\mathbf A$ is known exactly and that noise affects only the observation vector $\mathbf b$:


\begin{displaymath}
\mathbf A \mathbf x = \mathbf b + \boldsymbol\delta .
\end{displaymath} (4.24)

In many practical applications, this assumption is unrealistic. The observations may be affected by noise in both the dependent term and the explanatory variables. This leads to the so-called Errors-In-Variables (EIV) model (VHV91), in which the coefficient matrix is also perturbed:


\begin{displaymath}
(\mathbf A + \mathbf E)\mathbf x
=
\mathbf b + \boldsymbol\delta
\end{displaymath} (4.25)

where


\begin{displaymath}
\mathbf A \in \mathbb R^{m\times n},
\qquad
\mathbf b \in \mathbb R^{m},
\end{displaymath}

$\mathbf E$ represents the perturbation of the coefficient matrix and $\boldsymbol\delta$ the perturbation of the observations.

Unlike ordinary least squares, which minimizes only the residual norm $\boldsymbol\delta$, the Total Least Squares (TLS) method jointly finds the corrections $\mathbf E$ and $\boldsymbol\delta$ that minimize


\begin{displaymath}
\left\Vert
\left[
\mathbf E \mid \boldsymbol\delta
\right]
\right\Vert _F
\end{displaymath} (4.26)

subject to constraint (4.25).

Classical TLS assumes that all columns of the data matrix are affected by noise. If some variables are known exactly, variants such as mixed LS-TLS can be used.


Introducing the augmented matrix


\begin{displaymath}
\mathbf C
=
\left[
\mathbf A \mid \mathbf b
\right]
\in
\mathbb R^{m\times(n+1)}
\end{displaymath} (4.27)

the TLS problem can be rewritten in homogeneous form:


\begin{displaymath}
\left(
\mathbf C + \Delta\mathbf C
\right)
\begin{bmatrix}
\mathbf x\\
-1
\end{bmatrix}=
\mathbf 0
\end{displaymath} (4.28)

with


\begin{displaymath}
\Delta\mathbf C
=
\left[
\mathbf E \mid \boldsymbol\delta
\right].
\end{displaymath}

The solution to the problem is closely related to the singular value decomposition of the augmented matrix:


\begin{displaymath}
\mathbf C
=
\mathbf U
\boldsymbol\Sigma
\mathbf V^\top
\end{displaymath} (4.29)

where


\begin{displaymath}
\boldsymbol\Sigma
=
\operatorname{diag}
(
\sigma_1,\sigma_2,...
...1}
),
\qquad
\sigma_1\ge\sigma_2\ge\cdots\ge\sigma_{n+1}\ge 0.
\end{displaymath} (4.30)

The Eckart-Young-Mirsky theorem implies that the best rank-$n$ approximation of the matrix $\mathbf C$ (in the Frobenius norm) is obtained by setting its smallest singular value to zero:


\begin{displaymath}
\hat{\mathbf C}_{TLS}
=
\mathbf U
\operatorname{diag}
(
\sigma_1,\ldots,\sigma_n,0
)
\mathbf V^\top .
\end{displaymath} (4.31)

In the most common case, with a single observation column ( $\mathbf b\in\mathbb R^m$), let


\begin{displaymath}
\mathbf v_{n+1}
=
\begin{bmatrix}
\mathbf v_x\\
v_b
\end{bmatrix}\end{displaymath}

be the last right singular vector of $\mathbf V$, associated with the smallest singular value $\sigma_{n+1}$, with


\begin{displaymath}
\mathbf v_x\in\mathbb R^n,
\qquad
v_b\in\mathbb R.
\end{displaymath}

If $v_b\neq 0$, the TLS solution is


\begin{displaymath}
\hat{\mathbf x}_{TLS}
=
-\frac{\mathbf v_x}{v_b}.
\end{displaymath} (4.32)

More generally, for multiple observation columns, partitioning


\begin{displaymath}
\mathbf V
=
\begin{bmatrix}
\mathbf V_{11} & \mathbf V_{12}\\
\mathbf V_{21} & \mathbf V_{22}
\end{bmatrix}\end{displaymath} (4.33)

where $\mathbf V_{22}$ is square, with dimension equal to the number of observed columns, the solution can be written as


\begin{displaymath}
\hat{\mathbf X}_{TLS}
=
-
\mathbf V_{12}
\mathbf V_{22}^{-1},
\end{displaymath} (4.34)

provided that $\mathbf V_{22}$ is nonsingular.

Thus, the TLS problem can be interpreted as finding the smallest perturbation of the augmented matrix $\mathbf C=[\mathbf A\mid\mathbf b]$ that makes the system exactly consistent.

Paolo medici
2026-10-19