关于t分布我们可以通过查t分布表的方式来获取其单边或双边的置信区间的数值,那么在python中有没有什么方法可以计算,而不需要人工查表。如下图所示:
迷茫2017-04-18 10:25:51
If you can use a third-party library, scipy is recommended. Commonly used probability distributions are provided, student distribution in scipy.
You can directly get the confidence interval by using its interval method.
PHP中文网2017-04-18 10:25:51
Just use the inverse function of the cumulative density function to determine it.