计算置信区间值并相应地绘制曲线
我正在绘制 [x,y] 对数据。我正在使用最小二乘回归模型计算曲线的最佳拟合线并相应地预测 y 值。
我现在想要生成 95% 置信区间值并将其绘制出来。如果有人可以帮助我计算置信带 y 值的公式,那就太好了。在在这里发帖之前,我确实尝试过谷歌搜索。但是,大多数网站都假设我已经有了一些数据。如果您能引导我找到一些好的链接,这也会很有帮助。
预先感谢,S.
I have [x,y] pair of data that I am plotting. I am computing the best fit line for the curve using the least-square regression model and predicting the y-values accordingly.
I now want to generate the 95% confidence interval values and plot that as well. If someone could assist me with the formula for calculating the y-values for the confidence band, it will be great. I did try googling before posting here. But, most of the sites assumed, I had some data already. It will also be helpful, if you could direct me to some good links.
Thanks in advance, S.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
回归输出给出的统计数据应该包括一个“标准误差”,95%的置信区间是由你的回归产生的估计+ - 2个标准误差谷歌充满了这样的线性回归的例子,但它适用于更高的程度曲线也是如此。以下是此类网站的示例:
http://stattrek.com/ap- stats-4/estimate-slope.aspx
The statistics given from the regression output should include a "standard error" a 95% confidence interval is the estimate produced by your regression +- 2 of those standard errors google is full of such examples for linear regressions, but it works well for higher degree curves as well. Here is an example of such a site:
http://stattrek.com/ap-statistics-4/estimate-slope.aspx