# 随机滤波

随机滤波是概率论与信号处理中的一类方法，旨在从含噪观测中估计随机动力系统的隐藏状态，并随着每个新观测的到来递归地更新估计。在每一个时间步，滤波器输出给定截至该时刻的所有观测 \( y_{1:t} \) 后状态 \( x_{t} \) 的条件分布 \( p(x_{t} \mid y_{1:t}) \)，或由该分布导出的点估计；对每个 \( n \) 计算这一量，正是滤波的定义性任务。<sup>[1](https://people.maths.bris.ac.uk/~manpw/apf_chapter.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 滤波器输出 | 每个时间步的条件分布 \( p(x_{t} \mid y_{1:t}) \)，或由其导出的点估计<sup>[1](https://people.maths.bris.ac.uk/~manpw/apf_chapter.pdf)</sup> |
| 核心递归 | 通过过程模型进行预测，再用最新观测做贝叶斯定理更新<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC7826670/)</sup> |
| 精确解 | 卡尔曼滤波（Kalman filter）是线性高斯模型的标准闭式解，而对于有限的一类特殊非线性模型，也存在精确的有限维滤波器<sup>[3](https://users.aalto.fi/~ssarkka/pub/bfs_book_2023_online.pdf)</sup> |
| 一般情形 | 除最特殊的非线性模型外，不存在有限维最优滤波器，因此需要近似<sup>[4](https://link.springer.com/article/10.1007/s00498-023-00357-2)</sup> |
| 自举滤波 | 将 \( N \) 个随机样本通过模型传播，并按归一化似然对其重新赋权<sup>[5](https://doi.org/10.1049/ip-f-2.1993.0015)</sup> |
| 主要失效模式 | 权重退化：重要性权重的方差随时间增长，因此需要重采样<sup>[6](https://www.cs.ubc.ca/~murphyk/Software/Kalman/ParticleFilterTutorial.pdf)</sup> |
| 维数限制 | 所需粒子数随状态维数呈指数增长<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC7826670/)</sup> |

## 工作原理

模型是一个马尔可夫状态空间系统，具有转移密度 \( f(x_{n} \mid x_{n-1}) \) 和观测密度 \( g(y_{n} \mid x_{n}) \)。联合分布满足 \( p(x_{1:n}, y_{1:n}) = p(x_{1:n-1}, y_{1:n-1})\, f(x_{n} \mid x_{n-1})\, g(y_{n} \mid x_{n}) \)，滤波后验则服从递归 \( p(x_{1:n} \mid y_{1:n}) = p(x_{1:n-1} \mid y_{1:n-1})\, f(x_{n} \mid x_{n-1})\, g(y_{n} \mid x_{n}) \, / \, p(y_{n} \mid y_{1:n-1}) \)。<sup>[7](https://warwick.ac.uk/fac/sci/statistics/staff/academic-research/johansen/publications/dj11.pdf)</sup> 在操作上，这是一个“预测—更新”循环：第一步用过程模型计算先验，第二步用最新观测借助贝叶斯定理精化估计。<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC7826670/)</sup> 这些递推关系是贝叶斯递归估计问题的形式解，但精确解在实践中几乎总是难以处理的，近似方法分为两类：以线性方式纳入量测信息的滤波器，如扩展卡尔曼滤波；以及以非线性方式纳入量测信息的滤波器，如粒子滤波。<sup>[8](https://isif.org/files/isif/2026-05/survey_nonlinear_estimation_filters_0.pdf)</sup> 除最特殊的非线性模型外，一般不存在有限维最优滤波器，这正是扩展卡尔曼、高斯和以及蒙特卡洛近似存在的原因。<sup>[4](https://link.springer.com/article/10.1007/s00498-023-00357-2)</sup>

## 具体做法

**卡尔曼滤波。** 对于线性高斯模型，后验恰好是高斯分布，卡尔曼滤波是无需数值近似的闭式解。<sup>[3](https://users.aalto.fi/~ssarkka/pub/bfs_book_2023_online.pdf)</sup> 当模型为线性、噪声为参数已知的高斯噪声且后验为高斯分布时，它是最优的。<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC7826670/)</sup>

**扩展卡尔曼滤波（EKF）。** EKF 通过在当前预测状态估计附近作泰勒级数展开来近似非线性、非高斯模型，在每个时间步对状态模型和观测模型进行线性化，基于最大后验（MAP）的重线性化仅用于迭代变体。<sup>[3](https://users.aalto.fi/~ssarkka/pub/bfs_book_2023_online.pdf)</sup><sup> • </sup><sup>[20](https://homepages.inf.ed.ac.uk/rbf/CVonline/LOCAL_COPIES/WELCH/kalman.2.html)</sup> 它的一阶精度对于高度非线性系统是不够的；它需要显式的导数（雅可比）矩阵，对不连续或不可微系统会失效，其 \( O(n_{x}^{3}) \) 的复杂度也将其限制在低维问题上。<sup>[9](https://ar5iv.labs.arxiv.org/html/1712.01406)</sup> 该滤波器还需要协方差矩阵 \( Q_{k} \) 和 \( R_{k} \)，它们由噪声特性导出或从数据中调校得到。<sup>[10](https://lendek.net/files/papers/2013-smcc-pawel.pdf)</sup>

**无迹卡尔曼滤波（UKF）。** UKF 利用无迹变换来近似密度经非线性函数的传播：精心选取的西格玛点通过非线性函数，输出统计量由加权样本均值和协方差估计；它往往比 EKF 更稳健、更精确，但计算开销更高。<sup>[3](https://users.aalto.fi/~ssarkka/pub/bfs_book_2023_online.pdf)</sup><sup> • </sup><sup>[11](https://ar5iv.labs.arxiv.org/html/1710.04055)</sup>

**粒子滤波。** 粒子滤波将后验表示为带权蒙特卡洛样本集。<sup>[3](https://users.aalto.fi/~ssarkka/pub/bfs_book_2023_online.pdf)</sup> 在自举滤波中，\( N \) 个样本各自通过系统模型传播，并被赋予归一化似然权重，从而近似模拟贝叶斯预测与更新递归；自举滤波将其重要性分布选为转移密度。<sup>[5](https://doi.org/10.1049/ip-f-2.1993.0015)</sup><sup> • </sup><sup>[8](https://isif.org/files/isif/2026-05/survey_nonlinear_estimation_filters_0.pdf)</sup> 粒子数 \( N \) 同时决定计算代价和估计精度，自适应算法按序更新 \( N \)，而非将其固定。<sup>[12](https://link.springer.com/article/10.1007/s11222-021-10056-0)</sup>

## 起源

线性滤波理论始于维纳—柯尔莫哥洛夫（Wiener–Kolmogorov）方法，该方法要求过程是平稳的。卡尔曼（Kalman）与布西（Bucy）从不同视角处理同一问题：他们利用状态空间表示放松了平稳性要求，并得到了最佳估计量的闭式递推公式。<sup>[13](https://pluto.huji.ac.il/~pchiga/teaching/Filtering/filtering-v0.2.pdf)</sup> R. E. 卡尔曼 1960 年发表于《ASME 基础工程杂志》的论文《线性滤波与预测问题的新方法》，将描述动力系统的状态转移方法与视为希尔伯特空间中正交投影的线性滤波结合起来，得出了对偶原理以及维纳问题的一种解法。<sup>[14](https://doi.org/10.1115/1.3662552)</sup> 连续时间上的推广随后出现在卡尔曼与布西 1961 年发表于《基础工程杂志》的论文《线性滤波与预测理论的新结果》中。<sup>[15](https://doi.org/10.1115/1.3658902)</sup> 现代粒子滤波时代始于戈登（Gordon）、萨蒙德（Salmond）与史密斯（Smith）的自举滤波，1993 年发表于《IEE 会刊 F 辑：雷达与信号处理》。<sup>[5](https://doi.org/10.1049/ip-f-2.1993.0015)</sup>

## 变体

大多数粒子滤波都归属一个通用的序贯重要性采样（SIS）框架，在此框架内，标准的教程式分类包括采样—重要性—重采样（SIR/自举）算法、辅助 SIR（ASIR）变体和正则化粒子滤波（RPF）。<sup>[6](https://www.cs.ubc.ca/~murphyk/Software/Kalman/ParticleFilterTutorial.pdf)</sup> 辅助粒子滤波利用当前状态的点估计引导采样朝向更可能拟合下一观测的粒子，从而改进基本的自举滤波，不过文献记载其 SIR 实现并不稳健。<sup>[16](https://www.nuff.ox.ac.uk/economics/papers/1997/w13/sir.pdf)</sup> 拉奥—布莱克韦尔化粒子滤波对部分状态变量使用闭式积分（如卡尔曼滤波和 RTS 平滑器），对其余部分使用蒙特卡洛积分。<sup>[3](https://users.aalto.fi/~ssarkka/pub/bfs_book_2023_online.pdf)</sup> 在地球物理学文献中发展起来的集合卡尔曼滤波（EnKF），用一个集合表示状态的概率密度，集合成员按完整模型方程传播；集合通过线性平移而非重新赋权来更新，从而避免了粒子滤波的权重退化问题。<sup>[17](https://centaur.reading.ac.uk/90781/9/qj.3819.pdf)</sup><sup> • </sup><sup>[18](https://arxiv.org/html/1709.04196)</sup><sup> • </sup><sup>[19](https://www.math.umd.edu/~slud/RITF17/enkf-tutorial.pdf)</sup>

## 应用

粒子滤波用于化学工程、计算机视觉、金融计量经济学、目标跟踪和机器人学等众多领域的实时应用。<sup>[7](https://warwick.ac.uk/fac/sci/statistics/staff/academic-research/johansen/publications/dj11.pdf)</sup> 卡尔曼滤波因计算和内存需求小，被用于航天器导航、机器人运动规划、信号处理和无线传感器网络。<sup>[11](https://ar5iv.labs.arxiv.org/html/1710.04055)</sup> EKF 自 20 世纪 60 年代以来广泛应用于航空航天、机器人学和生物医学工程。<sup>[9](https://ar5iv.labs.arxiv.org/html/1712.01406)</sup> EnKF 常用于大气物理、海洋学和油藏建模，其观测模型假定观测是状态的线性组合加上加性高斯噪声，\( Y_{t} \mid x_{t} \sim \mathcal{N}(H \cdot x_{t}, R) \)；它在维度达数千万的数据同化应用中得到了成功使用。<sup>[18](https://arxiv.org/html/1709.04196)</sup><sup> • </sup><sup>[19](https://www.math.umd.edu/~slud/RITF17/enkf-tutorial.pdf)</sup>

## 局限与替代方案

**退化。** 重要性权重的方差只会随时间增大，因此在基本序贯重要性采样下退化现象无法避免；经过几次迭代后，一个粒子的权重趋近于一，其余粒子的权重几乎为零，于是几乎全部计算精力都花在贡献可忽略的粒子上。<sup>[6](https://www.cs.ubc.ca/~murphyk/Software/Kalman/ParticleFilterTutorial.pdf)</sup><sup> • </sup><sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC7826670/)</sup> 标准的补救办法是在更新后立即重采样：按与权重成比例的概率有放回地抽取新粒子，并将权重重置为 \( 1/N_{s} \)。<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC7826670/)</sup> 退化程度由有效样本量衡量，重采样通常在其低于阈值时触发；重要性密度的选择是关键的设计步骤。<sup>[6](https://www.cs.ubc.ca/~murphyk/Software/Kalman/ParticleFilterTutorial.pdf)</sup> 重采样重置了系统，使最终时刻的边缘分布保持良好行为，代价是进一步降低路径样本的质量；而要在不重采样的前提下维持恒定的有效样本量，样本数需要指数增长（样本贫化）。<sup>[7](https://warwick.ac.uk/fac/sci/statistics/staff/academic-research/johansen/publications/dj11.pdf)</sup>

**维数灾难。** 要填充一个 \( n \) 维状态空间，粒子数必须随 \( n \) 呈指数增长，而所需的 \( N \) 会随维数迅速上升，其速率由状态各分量之间的依赖关系决定。<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC7826670/)</sup><sup> • </sup><sup>[5](https://doi.org/10.1049/ip-f-2.1993.0015)</sup> 在样本量固定时，粒子滤波的近似误差随信号维数和观测维数增大，使其无法扩展到地球科学中的高维问题。<sup>[4](https://link.springer.com/article/10.1007/s00498-023-00357-2)</sup>

**敏感性与替代方案。** 与真值相差较大的初始猜测可能导致 EKF 型和 EnKF 型滤波器发散。<sup>[9](https://ar5iv.labs.arxiv.org/html/1712.01406)</sup> 对于线性高斯模型，劳赫—董—斯特里贝尔（Rauch–Tung–Striebel）平滑器是卡尔曼滤波在平滑问题上的闭式对应物，它使用完整的观测记录而非仅使用过去的数据。<sup>[3](https://users.aalto.fi/~ssarkka/pub/bfs_book_2023_online.pdf)</sup> 移动时域估计器是一种新兴的替代方案，基于约束优化，通过在移动时间窗上最小化代价函数来求得状态估计。<sup>[9](https://ar5iv.labs.arxiv.org/html/1712.01406)</sup> 一个实用的比较：EKF 复杂度高，需要雅可比矩阵，适合低维系统；UKF 复杂度高，不需要雅可比矩阵，适合低到中等维数；EnKF 复杂度低，不需要雅可比矩阵，适合气象学、水文学、海洋学和油藏工程中的高维问题。<sup>[9](https://ar5iv.labs.arxiv.org/html/1712.01406)</sup> 对于线性高斯模型，EnKF 是最优贝叶斯滤波的蒙特卡洛近似，当集合规模趋于无穷时，其样本均值和协方差收敛于卡尔曼滤波的相应量；但对于非线性模型，它并不收敛于最优非线性滤波，且与贝叶斯定理不一致。<sup>[4](https://link.springer.com/article/10.1007/s00498-023-00357-2)</sup><sup> • </sup><sup>[21](https://pmc.ncbi.nlm.nih.gov/articles/PMC4024107/)</sup>

## References

1. [APF chapter (particle filtering for state-space models, Doucet and Johansen)](https://people.maths.bris.ac.uk/~manpw/apf_chapter.pdf)
2. [Particle Filters: A Hands-On Tutorial](https://pmc.ncbi.nlm.nih.gov/articles/PMC7826670/)
3. [Bayesian Filtering and Smoothing (online draft, 2023)](https://users.aalto.fi/~ssarkka/pub/bfs_book_2023_online.pdf)
4. [On the mathematical theory of ensemble (linear-Gaussian) Kalman–Bucy filtering (Mathematics of Control, Signals, and Systems)](https://link.springer.com/article/10.1007/s00498-023-00357-2)
5. [N.J. Gordon, D.J. Salmond, A.F.M. Smith (1993). Novel approach to nonlinear/non-Gaussian Bayesian state estimation. IEE Proceedings F Radar and Signal Processing.](https://doi.org/10.1049/ip-f-2.1993.0015)
6. [A tutorial on particle filters for online nonlinear/non-Gaussian Bayesian tracking (Arulampalam et al., IEEE Trans. Signal Processing)](https://www.cs.ubc.ca/~murphyk/Software/Kalman/ParticleFilterTutorial.pdf)
7. [A Tutorial on Particle Filtering and Smoothing: Fifteen years later (Doucet & Johansen)](https://warwick.ac.uk/fac/sci/statistics/staff/academic-research/johansen/publications/dj11.pdf)
8. [A Survey of Nonlinear (particle) filters (ISIF)](https://isif.org/files/isif/2026-05/survey_nonlinear_estimation_filters_0.pdf)
9. [Nonlinear Bayesian Estimation: From Kalman Filtering to a Broader Horizon](https://ar5iv.labs.arxiv.org/html/1712.01406)
10. [Parametric Bayesian Filters for Nonlinear Stochastic Dynamical Systems: A Survey](https://lendek.net/files/papers/2013-smcc-pawel.pdf)
11. [An Elementary Introduction to Kalman Filtering](https://ar5iv.labs.arxiv.org/html/1710.04055)
12. [On the performance of particle filters with adaptive number of particles (Statistics and Computing)](https://link.springer.com/article/10.1007/s11222-021-10056-0)
13. [Introduction to Nonlinear Filtering (lecture notes, Hebrew University)](https://pluto.huji.ac.il/~pchiga/teaching/Filtering/filtering-v0.2.pdf)
14. [R. E. Kalman (1960). A New Approach to Linear Filtering and Prediction Problems. Journal of Basic Engineering.](https://doi.org/10.1115/1.3662552)
15. [R. E. Kalman, R. S. Bucy (1961). New Results in Linear Filtering and Prediction Theory. Journal of Basic Engineering.](https://doi.org/10.1115/1.3658902)
16. [Filtering via Simulation: Auxiliary Particle Filters (Pitt & Shephard)](https://www.nuff.ox.ac.uk/economics/papers/1997/w13/sir.pdf)
17. [A consistent interpretation of the stochastic version of the Ensemble Kalman Filter (Quarterly Journal of the Royal Meteorological Society)](https://centaur.reading.ac.uk/90781/9/qj.3819.pdf)
18. [Particle Filters and Data Assimilation (survey)](https://arxiv.org/html/1709.04196)
19. [Understanding the Ensemble Kalman Filter (tutorial)](https://www.math.umd.edu/~slud/RITF17/enkf-tutorial.pdf)
20. [Kalman.2 (homepages.inf.ed.ac.uk)](https://homepages.inf.ed.ac.uk/rbf/CVonline/LOCAL_COPIES/WELCH/kalman.2.html)
21. [PMC4024107 (pmc.ncbi.nlm.nih.gov)](https://pmc.ncbi.nlm.nih.gov/articles/PMC4024107/)

---
*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 › Estimation theory and estimator families › Estimation: overview

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/stochastic-filtering

English original: https://www.edgepedia.org/stochastic-filtering
