相关疑难解决方法(0)

捕获statsmodels中的高多重共线性

说我在statsmodels中适合模型

mod = smf.ols('dependent ~ first_category + second_category + other', data=df).fit()
Run Code Online (Sandbox Code Playgroud)

当我这样做时,mod.summary()我可能会看到以下内容:

Warnings:
[1] The condition number is large, 1.59e+05. This might indicate that there are
strong multicollinearity or other numerical problems.
Run Code Online (Sandbox Code Playgroud)

有时警告是不同的(例如,基于设计矩阵的特征值).如何在变量中捕获高多重共线性条件?此警告是否存储在模型对象的某处?

另外,我在哪里可以找到字段的描述summary()

python statistics scipy statsmodels

23
推荐指数
2
解决办法
2万
查看次数

标签 统计

python ×1

scipy ×1

statistics ×1

statsmodels ×1