statsmodels.回归.过程回归.过程MLE结果.协方差

ProcessMLEResults.covariance(time, scale, smooth)[source]

返回一个拟合的协方差矩阵。

Parameters:
timearray_like

计算拟合协方差矩阵的时间点。

scalearray_like

用于确定尺度参数的数据,必须有 len(time) 行。

smootharray_like

用于确定平滑参数的数据,必须有 len(time) 行。

Returns:
A covariance matrix.

注释

如果模型是使用公式拟合的,scalesmooth 应该是数据框,包含在拟合模型时使用的相应缩放和平滑公式中的所有变量。否则,scalesmooth 应该是数据数组,其列与拟合的缩放和平滑参数对齐。


Last update: Oct 16, 2024