statsmodels.tsa.statespace.representation.FrozenRepresentation¶
- class statsmodels.tsa.statespace.representation.FrozenRepresentation(model)[source]¶
冻结的状态空间模型
获取一个状态空间模型的快照。
- Parameters:¶
- model
Representation 状态空间表示
- model
- Attributes:¶
- nobs
int 观测值的数量。
- k_endog
int 观测序列的维度。
- k_states
int 未观测状态过程的维度。
- k_posdef
int 描述测量方程中冲击的保证正定协方差矩阵的维度。
- dtype
dtype 表示矩阵的数据类型
- prefix
str 表示矩阵的BLAS前缀
- shapes
dictionaryofname:tuple 一个字典,记录了每个表示矩阵的形状,以元组的形式。
- endog
ndarray 观测向量。
- design
ndarray 设计矩阵, \(Z\).
- obs_intercept
ndarray 观测方程的截距,\(d\)。
- obs_cov
ndarray 观测方程的协方差矩阵 \(H\)。
- transition
ndarray 转移矩阵, \(T\).
- state_intercept
ndarray 转换方程的截距,\(c\)。
- selection
ndarray 选择矩阵, \(R\).
- state_cov
ndarray 状态方程的协方差矩阵 \(Q\)。
- missing
arrayofbool 与endog大小相同的数组,填充了布尔值,如果endog中对应条目是NaN则为True,否则为False。
- nmissing
arrayofint 一个大小为 nobs 的数组,其中第 i 个条目是 endog 数组第 i 行中 NaNs 的数量(在 0 和 k_endog 之间)。
- time_invariantbool
表示矩阵是否是时间不变的
- initialization
Initializationobject 卡尔曼滤波初始化方法。
- initial_statearray_like
用于初始化卡尔曼滤波器的状态向量。
- initial_state_covarray_like
用于初始化卡尔曼滤波器的状态协方差矩阵。
- nobs
方法
update_representation(model)更新模型表示
Last update:
Oct 16, 2024