# ARX 模型

ARX 模型（带外生输入的自回归模型）是一种线性差分方程，它根据系统输出的过去值和外部输入信号的过去值来预测系统的输出。它简单、灵活，且可通过线性最小二乘法进行估计。其名称读作“带额外输入的自回归”或“带外生变量的自回归”；与仅使用输出自身历史的普通 AR 模型不同，ARX 模型增加了一个输入项。<sup>[1](https://uk.mathworks.com/help/ident/ref/arx.html)</sup> ARX 模型以输入-输出形式表示随机线性动态系统，并具有相应的线性时不变状态空间表示。<sup>[2](https://proceedings.mlr.press/v144/lale21b/lale21b.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义方程 | \( A(q)y(t) = B(q)u(t-n_{k}) + e(t) \)，模型阶数为 \( n_{a} \)、\( n_{b} \)，延迟为 \( n_{k} \)<sup>[1](https://uk.mathworks.com/help/ident/ref/arx.html)</sup> |
| 估计方法 | 线性最小二乘法，通过 QR 分解求解；凸问题且数值稳健<sup>[1](https://uk.mathworks.com/help/ident/ref/arx.html)</sup><sup> • </sup><sup>[3](https://link.springer.com/chapter/10.1007/978-3-030-95860-2_2)</sup> |
| 逼近能力 | 阶数足够大时，ARX 模型可以逼近任意线性系统<sup>[3](https://link.springer.com/chapter/10.1007/978-3-030-95860-2_2)</sup> |
| 拟合指标 | \( \text{FitPercent} = 100(1 - \text{NRMSE}) \)；有文档记载的示例达到 80% 以上的一步预测精度<sup>[1](https://uk.mathworks.com/help/ident/ref/arx.html)</sup> |
| 在多项式模型族中的位置 | 一般多项式模型中 \( F = D = A \) 且 \( C = 1 \) 的特例；同族还包括 FIR、ARMAX 和 Box–Jenkins<sup>[3](https://link.springer.com/chapter/10.1007/978-3-030-95860-2_2)</sup> |
| 主要弱点 | 噪声以受限方式进入模型；当测量输入含噪时，普通最小二乘估计有偏<sup>[4](https://busoniu.net/teaching/sysid2022/sysid22en_arx_handout.pdf)</sup><sup> • </sup><sup>[5](https://ar5iv.labs.arxiv.org/html/2011.14645)</sup> |

## 工作原理

ARX 结构即差分方程

\[ y(t) + a_{1}y(t-1) + \cdots + a_{n_{a}}y(t-n_{a}) = b_{1}u(t-n_{k}) + \cdots + b_{n_{b}}u(t-n_{b}-n_{k}+1) + e(t) \]

紧凑地写为 \( A(q)y(t) = B(q)u(t-n_{k}) + e(t) \)。<sup>[1](https://uk.mathworks.com/help/ident/ref/arx.html)</sup> 其中 \( A(q) \) 汇集了对过去输出加权的自回归系数 \( a_{1}, \ldots, a_{n_{a}} \)，\( B(q) \) 汇集了对过去输入加权的系数 \( b_{1}, \ldots, b_{n_{b}} \)；\( n_{k} \) 是延迟，即输入影响输出之前所经历的输入采样数，也称为死区时间。<sup>[1](https://uk.mathworks.com/help/ident/ref/arx.html)</sup> 自回归部分捕捉系统的内部动态和记忆；外生部分捕捉输入如何驱动输出。

重新整理后，模型呈现回归量形式 \( y(k) = \varphi^{T}(k)\theta + e(k) \)，其中回归量 \( \varphi(k) \) 堆叠了延迟输出 \( -y(k-1), \ldots, -y(k-n_{a}) \) 和延迟输入 \( u(k-n_{k}), \ldots, u(k-n_{k}-n_{b}+1) \)，参数向量 \( \theta \) 堆叠了 \( a_{1}, \ldots, a_{n_{a}}, b_{1}, \ldots, b_{n_{b}} \)。由于预测对 \( \theta \) 是线性的，估计是一个线性问题。<sup>[4](https://busoniu.net/teaching/sysid2022/sysid22en_arx_handout.pdf)</sup>

一步预测与仿真是不同的任务。在一步超前预测中，真实输出序列已知，因此所有延迟信号均可获得，可直接代入公式。在仿真中，真实输出未知，因此每个 \( y(k-i) \) 必须替换为先前的仿真值 \( \hat{y}(k-i) \)。<sup>[4](https://busoniu.net/teaching/sysid2022/sysid22en_arx_handout.pdf)</sup>

## 实现方法

从数据估计的过程如下。给定阶数选择 \( [n_{a}\; n_{b}\; n_{k}] \)，ARX 参数通过最小二乘法计算；在 MATLAB 的 `arx` 命令中，QR 分解求解构成最小二乘问题的超定线性方程组，并支持可选的正则化。<sup>[1](https://uk.mathworks.com/help/ident/ref/arx.html)</sup> 由于问题是凸的，不存在局部最优的困扰，估计结果具有数值稳健性。<sup>[3](https://link.springer.com/chapter/10.1007/978-3-030-95860-2_2)</sup>

选择 \( n_{a} \)、\( n_{b} \) 和 \( n_{k} \) 是一个搜索过程：在一系列阶数和延迟上估计多个 ARX 模型并比较性能。MATLAB 命令 `struc`、`arxstruc` 和 `selstruc` 可自动完成此过程；`arxstruc` 返回每个候选模型的损失，即预测误差平方和的归一化值。<sup>[6](https://www.mathworks.com/help/ident/ug/preliminary-step-estimating-model-orders-and-input-delays.html)</sup> 最佳 ARX 组合还可作为其他结构（如 ARMAX、OE 和 BJ）的初始猜测。<sup>[6](https://www.mathworks.com/help/ident/ug/preliminary-step-estimating-model-orders-and-input-delays.html)</sup> 错误的阶数和延迟影响重大：只有当输入-输出阶数和延迟被正确给定，预测误差方法和状态空间方法才能给出无偏、一致的估计。<sup>[7](https://ar5iv.labs.arxiv.org/html/2008.04779)</sup> 其症状具有诊断价值。如果估计的 \( n_{k} \) 过小，前导的 \( n_{b} \) 个系数会远小于其标准差；如果过大，残差会与输入在缺失 B 项对应的滞后处显著相关。`delayest` 命令通过拟合低阶 ARX 模型并将延迟视为未知参数来估计延迟。<sup>[6](https://www.mathworks.com/help/ident/ug/preliminary-step-estimating-model-orders-and-input-delays.html)</sup>

## 起源

其谱系贯穿两个传统。在时间序列分析中，包含外生预测变量的 Box–Jenkins 模型被称为动态回归模型，它们需要分析响应与外生输入的当前值和滞后值之间的相关性。<sup>[8](https://lexjansen.com/wuss/2013/49_Paper.pdf)</sup> 在控制工程中，应用研究通过荣格（Ljung）系统辨识教材（1987，2000）中的最小二乘辨识程序来估计多项式 \( A(q) \) 和 \( B(q) \)。<sup>[9](https://www.icheme.org/media/9719/xx-paper-24.pdf)</sup>

## 变体

在一般多项式模型族中，令 \( F = D = A \) 且 \( C = 1 \) 即得到 ARX；其他常见的黑箱结构有 FIR（有限脉冲响应，F = C = D = 1）、ARMAX（带外生输入的自回归滑动平均，F = D）和 Box–Jenkins（四个多项式均不同）。<sup>[3](https://link.springer.com/chapter/10.1007/978-3-030-95860-2_2)</sup> 与 FIR 相比，ARX 需要阶数 \( n_{a} \) 和 \( n_{b} \) 等于系统阶数，而 FIR 需要足够大的阶数 \( n_{b} \) 来建模脉冲响应的整个瞬态过程。<sup>[4](https://busoniu.net/teaching/sysid2022/sysid22en_arx_handout.pdf)</sup>

非线性 ARX（NARX）将 ARX 中对延迟输入和输出的线性依赖替换为任意非线性函数 \( g(\cdot\,;\theta) \)，从而推广了 ARX。<sup>[4](https://busoniu.net/teaching/sysid2022/sysid22en_arx_handout.pdf)</sup> NARX 模型已与[高斯过程](https://www.edgepedia.org/zh/gaussian-process)建模、支持向量回归和神经网络相结合。<sup>[10](https://arxiv.org/html/2410.07293v2)</sup> 近期扩展包括一个框架，它以端到端方式辨识 ARX 模型，使用按阶数组织的神经网络通过[多任务学习](https://www.edgepedia.org/zh/multitask-learning)训练，同时辨识模型项和系数。<sup>[11](https://link.springer.com/article/10.1007/s11633-024-1523-3)</sup> 函数型 NARX（ℱ-NARX）将 ARX 和 NARX 建模扩展到动态特性依赖于时变外部因素的系统。<sup>[10](https://arxiv.org/html/2410.07293v2)</sup> 流形-NARX（mNARX+）是一种用于复杂动态系统的代理建模方法，使用带自动特征选择的流形-NARX，由斯蒂芬·谢尔（Styfen Schär）、斯特凡诺·马雷利（Stefano Marelli）和布鲁诺·苏德雷（Bruno Sudret）在《应用力学与工程中的计算机方法》上提出，发表于第 449 卷第 A 部分，日期为 2026 年 2 月 1 日（arXiv 预印本于 2025 年出现）。<sup>[12](https://doi.org/10.1016/j.cma.2025.118550)</sup>

## 应用

ARX 系统已被用于化学工程、电力工程、医学、经济学和神经科学等领域。<sup>[2](https://proceedings.mlr.press/v144/lale21b/lale21b.pdf)</sup> 在一项反应器-换热器建模研究中，ARX 多项式通过最小二乘法估计，辨识出的模型用作故障检测与隔离（FDI）的参考。<sup>[9](https://www.icheme.org/media/9719/xx-paper-24.pdf)</sup>

拟合优度报告为 \( \text{FitPercent} = 100(1 - \text{NRMSE}) \)，其中 NRMSE 为归一化均方根误差；在有文档记载的 MATLAB 示例中，估计模型在估计数据上达到 80% 以上的一步超前预测精度。<sup>[1](https://uk.mathworks.com/help/ident/ref/arx.html)</sup> 对于过参数化的 ARX 辨识，当数据来自单条长度为 T 的轨迹时，估计误差按 \( O(p \log(T)/T) \) 缩放；当数据来自 N 条独立同分布轨迹时，按 \( O(1/\sqrt{N}) \) 缩放；后一种方案还可处理发散（不稳定）的 ARX 模型。<sup>[13](https://par.nsf.gov/servlets/purl/10408637)</sup>

## 局限与替代方案

ARX 模型可以描述输入与输出之间的任意线性关系，但噪声以受限方式进入模型，这正是当噪声模型重要时促使采用广义结构 ARMAX、OE 和 BJ 的原因。<sup>[4](https://busoniu.net/teaching/sysid2022/sysid22en_arx_handout.pdf)</sup> 当测量输入本身被噪声污染时（即变量含误差情形），普通最小二乘法产生有偏的 ARX 参数估计；一致的替代方法包括最大似然估计、工具变量法、偏差补偿、Koopmans–Levin 方法和递推估计。<sup>[5](https://ar5iv.labs.arxiv.org/html/2011.14645)</sup>

对于不稳定线性系统，当真实系统不在截断多项式展开 \( A(q) = 1 + \sum a_{k}q^{-k} \)、\( B(q) = \sum b_{k}q^{-k} \) 所定义的模型集内时，截断会引入偏差。<sup>[14](https://www.sciencedirect.com/science/article/abs/pii/S0005109816303867)</sup> 高阶 ARX 估计后接模型降阶是一般预测误差最小化的替代方案，但高阶 ARX 模型的缺点是方差大。<sup>[3](https://link.springer.com/chapter/10.1007/978-3-030-95860-2_2)</sup> 在数据记录不完整时，填充缺失值的朴素做法除特殊情况外会给出有偏的参数估计；需要的是两步最小二乘的迭代方案（给定参数估计缺失数据，再给定补全数据估计参数）加上偏差校正。<sup>[15](https://www.diva-portal.org/smash/get/diva2:316577/FULLTEXT01.pdf)</sup> 对于非线性系统，NARX 及其机器学习组合替代了线性 ARX 结构。<sup>[4](https://busoniu.net/teaching/sysid2022/sysid22en_arx_handout.pdf)</sup>

## References

1. [Estimate parameters of ARX, ARIX, AR, or ARI model - MATLAB](https://uk.mathworks.com/help/ident/ref/arx.html)
2. [Finite-time System Identification and Adaptive Control in Autoregressive Exogenous Systems](https://proceedings.mlr.press/v144/lale21b/lale21b.pdf)
3. [Classical System Identification (Springer chapter)](https://link.springer.com/chapter/10.1007/978-3-030-95860-2_2)
4. [System Identification - ARX handout (Technical University of Cluj-Napoca)](https://busoniu.net/teaching/sysid2022/sysid22en_arx_handout.pdf)
5. [Identification of Errors-in-Variables ARX Models Using Modified Dynamic Iterative PCA](https://ar5iv.labs.arxiv.org/html/2011.14645)
6. [Preliminary Step - Estimating Model Orders and Input Delays - MATLAB & Simulink](https://www.mathworks.com/help/ident/ug/preliminary-step-estimating-model-orders-and-input-delays.html)
7. [ARX Model Identification using Generalized Spectral Decomposition](https://ar5iv.labs.arxiv.org/html/2008.04779)
8. [Box-Jenkins / dynamic regression paper (WUSS 2013)](https://lexjansen.com/wuss/2013/49_Paper.pdf)
9. [Using ARX approach for modelling and prediction of the dynamics of a reactor-exchanger](https://www.icheme.org/media/9719/xx-paper-24.pdf)
10. [Surrogate modeling with functional nonlinear autoregressive models ℱ-NARX](https://arxiv.org/html/2410.07293v2)
11. [End-to-end Identification of Autoregressive with Exogenous Input (ARX) Models Using Neural Networks (Machine Intelligence Research, 2024)](https://link.springer.com/article/10.1007/s11633-024-1523-3)
12. [Styfen Schär, Stefano Marelli, Bruno Sudret (2025). mNARX+: A surrogate model for complex dynamical systems using manifold-NARX and automatic feature selection. Computer Methods in Applied Mechanics and Engineering.](https://doi.org/10.1016/j.cma.2025.118550)
13. [Sample Complexity Analysis and Self-regularization in Identification of Over-parameterized ARX Models](https://par.nsf.gov/servlets/purl/10408637)
14. [Technical communique: ARX modeling of unstable linear systems (Automatica)](https://www.sciencedirect.com/science/article/abs/pii/S0005109816303867)
15. [An Iterative Method for Identification of ARX Models from Incomplete Data](https://www.diva-portal.org/smash/get/diva2:316577/FULLTEXT01.pdf)

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

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Algorithms and computational methods › Numerical, string, and geometric algorithms

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/arx-model

English original: https://www.edgepedia.org/arx-model
