statsmodels.sandbox.tsa.fftarma.ArmaFft.from_roots¶
-
classmethod ArmaFft.from_roots(maroots=
None, arroots=None, nobs=100)¶ 从AR和MA多项式根创建ArmaProcess。
- Parameters:¶
- marootsarray_like,
optional MA 多项式的根 1 + theta_1*z + theta_2*z^2 + ….. + theta_n*z^n
- arrootsarray_like,
optional AR 多项式的根 1 - phi_1*z - phi_2*z^2 - ….. - phi_n*z^n
- nobs
int,optional 模拟时间序列的长度。例如,如果生成样本,则会使用此参数。
- marootsarray_like,
- Returns:¶
ArmaProcess使用arcoefs和macoefs初始化的类实例。
示例
>>> arroots = [.75, -.25] >>> maroots = [.65, .35] >>> arma_process = sm.tsa.ArmaProcess.from_roots(arroots, maroots) >>> arma_process.isstationary True >>> arma_process.isinvertible True
Last update:
Oct 16, 2024