# 【线性代数重修】10｜对称矩阵、谱定理与正定性：协方差、Hessian 地形与条件数振荡

DevFeed: [【线性代数重修】10｜对称矩阵、谱定理与正定性：协方差、Hessian 地形与条件数振荡](<https://devfeed.tech/articles/10-hessian-153328.md>)

Original publisher: [Read original article](<https://quant67.com/post/linear-algebra/10-symmetric-spectral-and-positive-definite/10-symmetric-spectral-and-positive-definite.html>)

Author: Liao Tonglang

Published: 2026-11-24T00:00:00Z

Content type: article

Language: zh

Sources: [土法炼钢 - 系统与基础设施](<https://devfeed.tech/sources/source-4.md>)

Topics: [Machine learning](<https://devfeed.tech/topics/machine-learning.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [Hyperparameter optimization](<https://devfeed.tech/topics/hyperparameter-optimization.md>)

Tags: [algorithms](<https://devfeed.tech/tags/algorithms.md>), [cholesky](<https://devfeed.tech/tags/cholesky.md>), [condition-number](<https://devfeed.tech/tags/condition-number.md>), [covariance](<https://devfeed.tech/tags/covariance.md>), [gram](<https://devfeed.tech/tags/gram.md>), [gram-schmidt](<https://devfeed.tech/tags/gram-schmidt.md>), [hessian](<https://devfeed.tech/tags/hessian.md>), [linear-algebra](<https://devfeed.tech/tags/linear-algebra.md>), [llm](<https://devfeed.tech/tags/llm.md>), [ml](<https://devfeed.tech/tags/ml.md>), [numpy](<https://devfeed.tech/tags/numpy.md>), [pd](<https://devfeed.tech/tags/pd.md>), [positive-definite](<https://devfeed.tech/tags/positive-definite.md>), [spectral-theorem](<https://devfeed.tech/tags/spectral-theorem.md>), [symmetric-matrix](<https://devfeed.tech/tags/symmetric-matrix.md>)

## AI overview

The text derives the real spectral theorem for symmetric matrices, including an induction argument that handles repeated eigenvalues, then uses the orthogonal eigenbasis to explain quadratic-form geometry and five equivalent positive-definiteness tests, including Cholesky factorization. For positive-definite quadratic losses, gradient descent separates into independent eigenvalue directions: convergence requires 0 < η < 2/λmax, and the best fixed step has contraction factor (κ−1)/(κ+1). Large condition numbers cause slow progress and oscillation along steep directions. The applications include why sample covariance matrices are positive semidefinite and may be singular, how Hessian eigenvalues classify critical points, and an illustrated standardization example where the condition number falls from about 1198 to 3.26 and the reported iterations to reach the same error fall from 4,137 to 11. The text also cautions that nonnegative leading principal minors alone do not establish positive semidefiniteness.

## Source excerpt

不跳步证明实对称谱定理（含重特征值维数归纳），贯通二次型几何、正定五条等价判据与 Cholesky 分解，精确推导梯度下降步长上界与条件数锯齿振荡，并落到协方差矩阵、Hessian 诊断与特征标准化实验。