![]() |
1
3
下面是一个基于 this :
它产生了几乎相同的结果:
|
![]() |
2
2
作为更新
该功能现在在中可用
http://docs.scipy.org/doc/scipy-0.16.0/reference/generated/scipy.stats.ttest_ind_from_stats.html
|
![]() |
3
1
我已经编写了t检验和z检验函数,它们接受统计模型的汇总统计数据。 这些主要是为了避免代码重复的内部快捷方式,并且没有很好的文档记录。 例如 http://statsmodels.sourceforge.net/devel/generated/statsmodels.stats.weightstats._tstat_generic.html 编辑:回复评论 该函数只进行核心计算,不同假设下差值标准差的实际计算被添加到调用方法中。 https://github.com/statsmodels/statsmodels/blob/master/statsmodels/stats/weightstats.py#L713 编辑 下面是如何使用CompareMeans类的方法的示例,该类包括基于汇总统计的t检验。我们需要创建一个类,将相关的汇总统计信息作为属性保存。最后有一个函数,它只包装相关的调用。
|
![]() |
MTR · Python并行运行函数 3 年前 |
![]() |
Navid · 使用scipy时出现多个溢出警告。整合方庭 3 年前 |
![]() |
artem · Scipy最小化忽略约束 6 年前 |
![]() |
BRz · 优化其中一个参数为数组的函数 6 年前 |
![]() |
hellowolrd · 网格数据预测方法 6 年前 |