[英]python function to calculate 5th and 95th confidence intervals of TLS regression slope.
I know the statsmodels function for simple ordinary least squares (OLS) can calculate confidence intervals on the parameters. 我知道简单的普通最小二乘法(OLS)的statsmodels函数可以计算参数的置信区间 。 Is there a python function that can do the same but for Total Least Squares (TLS)?
是否有python函数可以执行相同操作,但适用于总最小二乘(TLS)?
a = [2,3,4,5,2,4,5,4,2,2,1,8,9]
mean_a = numpy.mean(a)
std_a = numpy.std(a)
conf_int = scipy.stats.norm.interval(0.95, loc=mean_a, scale=std_a)
print(conf_int)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.