Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
336 views
in Technique[技术] by (71.8m points)

python中如何计算t分布的值?

关于t分布我们可以通过查t分布表的方式来获取其单边或双边的置信区间的数值,那么在python中有没有什么方法可以计算,而不需要人工查表。如下图所示:

图片描述


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

如果可以使用第三方库的话,推荐scipy,常用的概率分布都提供,student distribution in scipy.
用其interval方法可以直接得到置信区间.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...