statsmodels.multivariate.cancorr.CanCorr¶
-
class statsmodels.multivariate.cancorr.CanCorr(endog, exog, tolerance=
1e-08, missing='none', hasconst=None, **kwargs)[source]¶ 使用奇异值分解的典型相关分析
对于矩阵 exog=x 和 endog=y,找到投影 x_cancoef 和 y_cancoef,使得:
x1 = x * x_cancoef, x1’ * x1 是单位矩阵 y1 = y * y_cancoef, y1’ * y1 是单位矩阵
并且x1与y1之间的相关性被最大化。
- Attributes:¶
参考文献
方法
近似F检验 执行多元统计检验,验证内生变量和外生变量之间不存在典型相关性的假设。
fit()拟合模型到数据。
from_formula(公式, 数据[, 子集, 删除列])从公式和数据框创建模型。
predict(params[, exog])模型拟合后,predict 返回拟合值。
属性
内生变量的名称。
外生变量的名称。
Last update:
Oct 16, 2024