python - 使用 Statsmodels ztest
问题描述
我正在尝试计算单面 z 测试,并且我正在使用:
from statsmodels.stats.weightstats import ztest
例如,如果我有一些分布,我想比较单个样本以确定它们是否有显着差异,我正在做这样的事情:
x=[1,2,3,4,5]
y=6
ztest(x,value=6)
这个对吗?我对这里In the two sample case, the value is the difference between the mean of x1 and mean of x2 under the Null hypothesis.
显示的文档感到困惑。
解决方案
推荐阅读
- vuejs3 - 如何在单个域下托管 2 个 Vue 应用程序?
- c# - 如何使用 HttpClient 获取不记名令牌?
- angular - 如何设置 Angular Universal 在通过 .NET 中的 Http 客户端请求调用时在服务器端呈现
- android - 使用android中的包管理器从另一个应用程序获取应用程序的库版本
- ibm-cloud - IBM Watson Assistant:如何对对话节点上的条件进行分组?
- java - 在 Java ASM 字节码中编辑 try-catch 的 finally 块
- sqlite - Flask SQLAlchemy 对列强制执行最大长度约束
- javascript - 有人能告诉我为什么这个 JSfiddle 播放完后会重复第一首歌吗?
- python - PyQt5,Appium:如何检索小部件的文本?
- reactjs - Netlify 和 React JS 的“页面未找到”(_redirects 不起作用)