# 总体最小二乘法

总体最小二乘法（TLS）是一种当所有变量都带有误差时为数据拟合模型的估计方法：它通过允许对数据矩阵 \( A \) 和观测向量 \( b \) 同时进行修正来求解超定系统 \( Ax \approx b \)，并选择使该系统相容的最小修正量。<sup>[1](https://arxiv.org/abs/math/9805076)</sup> 普通最小二乘法只修正 \( b \)，沿垂直方向度量残差；TLS 则度量点 \( (a_i^{T}, b_i) \) 到拟合子空间的真实正交距离。<sup>[2](https://epubs.siam.org/doi/10.1137/0717073)</sup><sup> • </sup><sup>[1](https://arxiv.org/abs/math/9805076)</sup> 在统计文献中，TLS 是变量误差回归的一种形式；其最简单的等误差情形对应于正交回归，而测量误差建模在更广泛的意义上涵盖许多其他方法。<sup>[3](https://people.duke.edu/~hpgavin/systemid/References/Markovsky+VanHuffel-SP-2007.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 最小化对象 | 在约束 \( (A+\Delta A)x = b+\Delta b \) 下最小化 \( \|[\Delta A \; \Delta b]\|_{F} \)<sup>[4](https://www.mat.tuhh.de/forschung/rep/rep127.pdf)</sup> |
| 解法 | 取 \( (A \mid -b) \) 的最小奇异值对应的右奇异向量，重新缩放使其最后一个分量为 1<sup>[5](https://eng.libreTexts.org/Bookshelves/Industrial_and_Systems_Engineering/Book%3A_Dynamic_Systems_and_Control_%28Dahleh_Dahleh_and_Verghese%29/05%3A_Matrix_Perturbations/5.04%3A_Total_Least_Squares)</sup> |
| 存在性与唯一性 | 当且仅当 \( V_{22} \) 非奇异时存在；当且仅当 \( \sigma_{n} \neq \sigma_{n+1} \) 时唯一<sup>[3](https://people.duke.edu/~hpgavin/systemid/References/Markovsky+VanHuffel-SP-2007.pdf)</sup> |
| 一致性 | 当 \( A \) 和 \( b \) 中的误差不相关、零均值且方差相等时，具有强一致性<sup>[6](https://epubs.siam.org/doi/10.1137/0609030)</sup> |
| 计算代价 | 通过 SVD 约需 \( 2m\cdot n^{2} + 12n^{3} \) 次浮点运算，而通过 QR 分解的最小二乘法约需 \( 2m\cdot n^{2} \)<sup>[7](https://www.netlib.org/lapack/lawnspdf/lawn236.pdf)</sup> |
| 命名者 | Golub 与 Van Loan，1980 年，《SIAM 数值分析杂志》<sup>[2](https://epubs.siam.org/doi/10.1137/0717073)</sup> |
| 主要失效模式 | 噪声方差不相等时产生偏差；相对于最小二乘法更易病态<sup>[8](https://onlinelibrary.wiley.com/doi/10.1002/env.2835)</sup><sup> • </sup><sup>[3](https://people.duke.edu/~hpgavin/systemid/References/Markovsky+VanHuffel-SP-2007.pdf)</sup> |

## 工作原理

变量误差模型假定测量数据满足 \( (A+\Delta A)x = b+\Delta b \)，其中 \( \Delta A \) 和 \( \Delta b \) 为未知扰动。TLS 要求找出使系统可解的 Frobenius 范数最小的扰动，即 \( \min \|[\Delta A \; \Delta b]\|_{F} \)。<sup>[4](https://www.mat.tuhh.de/forschung/rep/rep127.pdf)</sup> 从几何上看，普通最小二乘法最小化到拟合直线的垂直距离平方和，而 TLS 最小化点到直线或超平面的欧几里得（正交）距离平方和。<sup>[1](https://arxiv.org/abs/math/9805076)</sup>

增广矩阵 \( C = (A \mid -b) \) 的奇异值分解可直接求解该问题。在约束 \( \|r\| = 1 \) 下，泛函 \( r \mapsto \|(A \mid -b)\cdot r\|_{2} \) 在 \( r \) 为最小奇异值对应的右奇异向量时取最小值；<sup>[1](https://arxiv.org/abs/math/9805076)</sup> 将该向量重新缩放使其最后一个分量等于 1，即得 \( x_{\mathrm{TLS}} \)。<sup>[5](https://eng.libreTexts.org/Bookshelves/Industrial_and_Systems_Engineering/Book%3A_Dynamic_Systems_and_Control_%28Dahleh_Dahleh_and_Verghese%29/05%3A_Matrix_Perturbations/5.04%3A_Total_Least_Squares)</sup> 最小 Frobenius 范数扰动即增广矩阵 SVD 中的秩一项。<sup>[5](https://eng.libreTexts.org/Bookshelves/Industrial_and_Systems_Engineering/Book%3A_Dynamic_Systems_and_Control_%28Dahleh_Dahleh_and_Verghese%29/05%3A_Matrix_Perturbations/5.04%3A_Total_Least_Squares)</sup>

## 计算方法

Golub 与 Van Loan 的参考算法计算 \( m \times (n+1) \) 增广矩阵 \( [A, b] \) 的 SVD，约需 \( 2m\cdot n^{2} + 12n^{3} \) 次算术运算，至今仍是求解一般 TLS 问题的标准方法之一。<sup>[9](https://arxiv.org/pdf/1608.01619)</sup><sup> • </sup><sup>[7](https://www.netlib.org/lapack/lawnspdf/lawn236.pdf)</sup> 在实践中，使用者按以下步骤操作：

1. 构造增广矩阵 \( [A, -b] \) 并计算其 SVD，通常采用 Householder 双对角化后接 QR 算法，即 Golub 与 Reinsch 1970 年论文中的流程。<sup>[10](https://doi.org/10.1007/bf02163027)</sup>
2. 检查存在性与唯一性条件：解存在当且仅当右奇异向量的尾部块 \( V_{22} \) 非奇异，解唯一当且仅当 \( \sigma_{n} \neq \sigma_{n+1} \)。<sup>[3](https://people.duke.edu/~hpgavin/systemid/References/Markovsky+VanHuffel-SP-2007.pdf)</sup>
3. 取最小奇异值对应的右奇异向量，并重新缩放使其最后一个分量为 1。<sup>[5](https://eng.libreTexts.org/Bookshelves/Industrial_and_Systems_Engineering/Book%3A_Dynamic_Systems_and_Control_%28Dahleh_Dahleh_and_Verghese%29/05%3A_Matrix_Perturbations/5.04%3A_Total_Least_Squares)</sup>

部分 SVD 方法只计算最后一个右奇异向量或最小奇异子空间，从而降低计算代价。<sup>[7](https://www.netlib.org/lapack/lawnspdf/lawn236.pdf)</sup> 对于大规模问题，随机算法利用 BLAS-3 运算并对 \( A \) 仅做一次遍历，约需 \( 2m\cdot l^{2} + (4/3)n^{3} + 8n\cdot l^{2} + O(l^{3}) \) 次浮点运算。<sup>[11](https://ar5iv.labs.arxiv.org/html/1401.6832)</sup>

## 起源

该名称及基于 SVD 的分析归功于 Gene H. Golub 与 Charles F. van Loan 的《总体最小二乘问题分析》，载于《SIAM 数值分析杂志》，1980 年。<sup>[2](https://epubs.siam.org/doi/10.1137/0717073)</sup> 该论文指出该方法并非首创：\( n=1 \) 的情形自世纪之交以来便已被研究，加权版本曾在《数据的统计调整》（1943 年）中分析过，其中包含更早的 TLS 数值描述。<sup>[2](https://epubs.siam.org/doi/10.1137/0717073)</sup><sup> • </sup><sup>[12](https://onlinelibrary.wiley.com/doi/10.1002/9781118445112.stat03166)</sup> 单变量问题可追溯至 R. J. Adcock：Markovsky 与 Van Huffel 的综述将其定年为 1877 年，<sup>[3](https://people.duke.edu/~hpgavin/systemid/References/Markovsky+VanHuffel-SP-2007.pdf)</sup> 而 Nievergelt 则引用 Adcock 的《最小二乘法中的一个问题》（《分析师》，1878 年）作为最早贡献。<sup>[12](https://onlinelibrary.wiley.com/doi/10.1002/9781118445112.stat03166)</sup> 后来的统计学贡献来自 Pearson、Koopmans、Madansky 和 York，Gleser 的变量误差估计量与 TLS 等价，尽管其基于特征值分析而非 SVD。<sup>[3](https://people.duke.edu/~hpgavin/systemid/References/Markovsky+VanHuffel-SP-2007.pdf)</sup> 独立重新发现包括 Levin 1964 年用于系统脉冲传递函数估计的特征向量（Koopmans–Levin）方法<sup>[13](https://doi.org/10.1109/tac.1964.1105690)</sup> 以及 Peter D. Wentzell 及其同事在化学计量学中提出的最大似然主成分分析。<sup>[3](https://people.duke.edu/~hpgavin/systemid/References/Markovsky+VanHuffel-SP-2007.pdf)</sup><sup> • </sup><sup>[14](https://doi.org/10.1002/%28sici%291099-128x%28199707%2911:4<339::aid-cem476>3.0.co;2-l)</sup> Van Huffel 与 Vandewalle 1988 年对非泛型 TLS 的分析及其后续专著是全面的计算参考文献。<sup>[6](https://epubs.siam.org/doi/10.1137/0609030)</sup><sup> • </sup><sup>[12](https://onlinelibrary.wiley.com/doi/10.1002/9781118445112.stat03166)</sup>

## 变体

**加权 TLS。** 加权问题由 Bart De Moor 在其 1993 年关于结构化 TLS 与 L2 逼近问题的论文中命名为加权总体最小二乘法，它允许使用反映不等噪声方差的一般权重矩阵；与加权最小二乘法不同，它一般没有闭式解，需通过交替投影或变量投影等局部优化方法求解。<sup>[15](https://doi.org/10.1016/0024-3795%2893%2990468-4)</sup><sup> • </sup><sup>[16](https://eprints.soton.ac.uk/267223/1/tls-review-published.pdf)</sup>

**正则化 TLS。** Golub、Hansen 与 O'Leary 通过向 TLS 问题添加约束 \( \|L\cdot x\|_{2} \le \delta \) 来构造正则化 TLS；在标准形式情形 \( L = I \) 下，R-TLS 解与 Tikhonov 解相同。<sup>[17](https://www.cs.umd.edu/users/oleary/reprints/j51.pdf)</sup>

**截断 TLS。** 截断 TLS 将 \( (A, b) \) 的小非零奇异值视为零，把数值秩亏问题转化为精确秩亏问题。在截断水平 \( k \) 下，解为增广矩阵最佳秩-\( k \) 逼近的最小 2-范数解，\( x_{\mathrm{TTLS},k} = -V_{12}V_{22}^{\dagger} \)。<sup>[18](https://www.cs.umd.edu/users/oleary/reprints/j43.pdf)</sup><sup> • </sup><sup>[19](https://ftp.esat.kuleuven.be/SISTA/dsima/reports/09-93_draft.pdf)</sup>

**缩放 TLS。** 带参数 \( \gamma \) 的缩放 TLS 统一了最小二乘法、TLS 和数据最小二乘法：它在 \( \gamma = 1 \) 时等于 TLS，当 \( \gamma \to 0 \) 时趋于最小二乘法，当 \( \gamma \to \infty \) 时趋于数据最小二乘法；取 \( \gamma = \delta_{B}/\delta_{c} \)，即噪声标准差之比，可使统计模型中的误差方差相等。<sup>[20](https://www.cs.mcgill.ca/~chris/pub/PaiS02b.pdf)</sup>

**结构化与混合变体。** T.J. Abatzoglou、J.M. Mendel 与 G.A. Harada（1991 年）提出的约束总体最小二乘法技术被应用于谐波超分辨率。<sup>[21](https://doi.org/10.1109/78.80955)</sup> 混合 LS-TLS 处理无误差变量。<sup>[22](https://publikationen.bibliothek.kit.edu/1000043463/3255311)</sup>

## 应用

TLS 应用于计算机视觉、图像重建、语音与音频处理、模态与谱分析、线性系统理论、系统辨识和天文学。<sup>[3](https://people.duke.edu/~hpgavin/systemid/References/Markovsky+VanHuffel-SP-2007.pdf)</sup> 在气候学中，TLS 用于最优指纹法回归。<sup>[8](https://onlinelibrary.wiley.com/doi/10.1002/env.2835)</sup> 正则化与截断 TLS 用于病态反问题，包括盲反卷积、图像恢复与去模糊、电容层析成像、心外膜电位重建以及超声逆散射成像。<sup>[19](https://ftp.esat.kuleuven.be/SISTA/dsima/reports/09-93_draft.pdf)</sup>

## 局限性与替代方法

**一致性。** 在零均值、不相关、等方差误差的适当正则条件下，TLS 可以是变量误差模型中真实参数的一致估计量，因此并不需要完全独立同分布；广义 TLS 将一致性推广到具有已知误差协方差结构的适当模型，包括除一个比例因子外均已知的半正定协方差。<sup>[16](https://eprints.soton.ac.uk/267223/1/tls-review-published.pdf)</sup><sup> • </sup><sup>[24](https://epubs.siam.org/doi/10.1137/0610023)</sup> 对于独立、零均值、正态分布且方差相等的测量误差，TLS 与最大似然估计量一致；对于具有一般已知行协方差的独立高斯误差行，加权 TLS 是最大似然估计量。<sup>[3](https://people.duke.edu/~hpgavin/systemid/References/Markovsky+VanHuffel-SP-2007.pdf)</sup><sup> • </sup><sup>[25](https://www.vmsta.org/journal/VMSTA/article/55/read)</sup> 当噪声方差不等且未知时，不存在强一致估计量，这一结果归功于 Leon Jay Gleser。<sup>[23](https://doi.org/10.1214/aos/1176345330)</sup><sup> • </sup><sup>[8](https://onlinelibrary.wiley.com/doi/10.1002/env.2835)</sup> 一项关于气候指纹法回归的蒙特卡洛研究发现，当噪声方差不等且解释变量负相关时，TLS 会产生大的、通常为正的偏差，且该偏差不随测量误差趋于零而消失，而普通最小二乘法表现为通常的衰减偏差；当真实系数为零时 TLS 表现不佳，使其不适合检验零原假设。<sup>[8](https://onlinelibrary.wiley.com/doi/10.1002/env.2835)</sup>

**存在性与唯一性。** TLS 解可能不存在：Golub 与 Van Loan 给出了一个例子，其中对每个 \( \varepsilon > 0 \) 都不存在最小扰动。<sup>[2](https://epubs.siam.org/doi/10.1137/0717073)</sup> 在非泛型问题中，基于 SVD 的算法无法计算出有限解；Van Huffel 与 Vandewalle 提出了一种扩展，在解空间上施加额外约束时仍相对于 TLS 准则保持最优。<sup>[6](https://epubs.siam.org/doi/10.1137/0609030)</sup> 唯一性要求 \( \sigma_{n} \neq \sigma_{n+1} \)，因此最小奇异值重复出现会导致非唯一性。<sup>[3](https://people.duke.edu/~hpgavin/systemid/References/Markovsky+VanHuffel-SP-2007.pdf)</sup>

**条件数。** TLS 解的条件数高于最小二乘解，因此最坏情况下的数据误差对 TLS 影响更大；TLS 是一种去正则化过程，但它通过相当于减去误差协方差矩阵的操作，渐近地消除了回归量噪声在最小二乘法中引起的偏差。<sup>[3](https://people.duke.edu/~hpgavin/systemid/References/Markovsky+VanHuffel-SP-2007.pdf)</sup>

**方法选择。** 当所有变量携带可比、等方差的噪声时，TLS 优于普通最小二乘法；当噪声方差不等且已知时，加权或广义 TLS 是最大似然方法；当方差未知且不等时，TLS 可能劣于最小二乘法，且用于零原假设检验时不可靠。<sup>[3](https://people.duke.edu/~hpgavin/systemid/References/Markovsky+VanHuffel-SP-2007.pdf)</sup><sup> • </sup><sup>[8](https://onlinelibrary.wiley.com/doi/10.1002/env.2835)</sup>

## References

1. [An Introduction to Total Least Squares (tutorial, arXiv math/9805076)](https://arxiv.org/abs/math/9805076)
2. [An Analysis of the Total Least Squares Problem (Golub & Van Loan, SIAM J. Numer. Anal. 17, 1980)](https://epubs.siam.org/doi/10.1137/0717073)
3. [Overview of total least squares methods (Markovsky & Van Huffel, Signal Processing 2007)](https://people.duke.edu/~hpgavin/systemid/References/Markovsky+VanHuffel-SP-2007.pdf)
4. [Regularized Total Least Squares Problems: iterative solution via sequences of eigenproblems (TUHH report)](https://www.mat.tuhh.de/forschung/rep/rep127.pdf)
5. [5.04: Total Least Squares (eng.libreTexts.org)](https://eng.libreTexts.org/Bookshelves/Industrial_and_Systems_Engineering/Book%3A_Dynamic_Systems_and_Control_%28Dahleh_Dahleh_and_Verghese%29/05%3A_Matrix_Perturbations/5.04%3A_Total_Least_Squares)
6. [Analysis and Solution of the Nongeneric Total Least Squares Problem (Van Huffel & Vandewalle, SIAM J. Matrix Anal. Appl. 9(3), 1988)](https://epubs.siam.org/doi/10.1137/0609030)
7. [LAPACK Working Note 236: Condition numbers of linear functions of the TLS solution (Baboulin & Gratton)](https://www.netlib.org/lapack/lawnspdf/lawn236.pdf)
8. [Total least squares bias in climate fingerprinting regressions with heterogeneous noise variances and correlated explanatory variables (Environmetrics)](https://onlinelibrary.wiley.com/doi/10.1002/env.2835)
9. [A Gauss–Newton method for the total least squares problem (arXiv 1608.01619)](https://arxiv.org/pdf/1608.01619)
10. [G. H. Golub, C. Reinsch (1970). Singular value decomposition and least squares solutions. Numerische Mathematik.](https://doi.org/10.1007/bf02163027)
11. [Perturbation Analysis and Randomized Algorithms for Large-Scale Total Least Squares Problems (arXiv:1401.6832)](https://ar5iv.labs.arxiv.org/html/1401.6832)
12. [Total Least Squares (Yves Nievergelt, Wiley StatsRef, 2014)](https://onlinelibrary.wiley.com/doi/10.1002/9781118445112.stat03166)
13. [M. Levin (1964). Estimation of a system pulse transfer function in the presence of noise. IEEE Transactions on Automatic Control.](https://doi.org/10.1109/tac.1964.1105690)
14. [Maximum likelihood principal component analysis (Journal of Chemometrics, 1997)](https://doi.org/10.1002/%28sici%291099-128x%28199707%2911:4<339::aid-cem476>3.0.co;2-l)
15. [Structured total least squares and L2 approximation problems (Linear Algebra and its Applications, 1993)](https://doi.org/10.1016/0024-3795%2893%2990468-4)
16. [Total least squares methods (Markovsky & Van Huffel, WIREs Computational Statistics review, published copy)](https://eprints.soton.ac.uk/267223/1/tls-review-published.pdf)
17. [Tikhonov regularization and total least squares (Golub, Hansen & O'Leary, SIAM J. Matrix Anal. Appl. 21, 1999)](https://www.cs.umd.edu/users/oleary/reprints/j51.pdf)
18. [Fierro, Golub, Hansen & O'Leary: Regularization by Truncated Total Least Squares](https://www.cs.umd.edu/users/oleary/reprints/j43.pdf)
19. [Generalizations of the total least squares (Sima/Van Huffel/Markovsky report, KU Leuven)](https://ftp.esat.kuleuven.be/SISTA/dsima/reports/09-93_draft.pdf)
20. [Scaled total least squares (STLS) analysis](https://www.cs.mcgill.ca/~chris/pub/PaiS02b.pdf)
21. [T.J. Abatzoglou, J.M. Mendel, G.A. Harada (1991). The constrained total least squares technique and its applications to harmonic superresolution. IEEE Transactions on Signal Processing.](https://doi.org/10.1109/78.80955)
22. [Recursive/online restricted total least squares algorithm (KIT publication)](https://publikationen.bibliothek.kit.edu/1000043463/3255311)
23. [Leon Jay Gleser (1981). Estimation in a Multivariate "Errors in Variables" Regression Model: Large Sample Results. The Annals of Statistics.](https://doi.org/10.1214/aos/1176345330)
24. [epubs.siam.org](https://epubs.siam.org/doi/10.1137/0610023)
25. [vmsta.org](https://www.vmsta.org/journal/VMSTA/article/55/read)

---
*Initially written Sep 29, 2026 · Reviewed: Sep 30, 2026 · Edited: Sep 30, 2026 · Last review: Sep 30, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Statistical inference, estimation, sampling, and testing › Regression analysis › Linear and multiple regression

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/total-least-squares

English original: https://www.edgepedia.org/total-least-squares
