异常与趋势
原能力
比较最新观测与基线,说明偏离从何时开始、持续多久、哪些口径会影响结果。(细化版 p.4–5)
首选项目
statsmodels(BSD-3-Clause)。 statsmodels
匹配范围
STL 分解趋势季节性,ADWIN 提供在线变化提示。
源码
statsmodels · cdef class STL
statsmodels/tsa/stl/_stl.pyx · 106–119 行。 在 GitHub 查看源码 · 许可证与声明
源码片段
cdef class STL(object):
"""
STL(endog, period=None, seasonal=7, trend=None, low_pass=None, seasonal_deg=1, trend_deg=1, low_pass_deg=1, robust=False, seasonal_jump=1, trend_jump=1, low_pass_jump=1)
Season-Trend decomposition using LOESS.
Parameters
----------
endog : array_like
Data to be decomposed. Must be 1-d or an (n, 1) column, such as a
one-column DataFrame.
period : int, optional
Periodicity of the sequence. If None and endog is a pandas Series or
DataFrame, attempts to determine from endog. If endog is a ndarray,
实现与验收要点
幅度估计、观测误差及业务异常阈值。