如何使用 R 在 Azure ML 中获取置信区间?

How can I use R to get confidence intervals in Azure ML?

我遇到了 问题,该问题询问 如果 Azure ML 可以计算行数据预测的置信度或概率。但是,鉴于该问题的答案是 No,并建议使用 R,我正在尝试弄清楚如何使用 R 为回归模型做到这一点。

有没有人对在哪里查找此文件有任何参考建议?

我的方案是使用 Azure ML 构建增强型决策树回归模型,该模型输出 Scored Label 列。但我不太了解回归分析,无法编写 R 代码来使用输出模型来获得置信区间。

我正在寻找任何可以帮助我理解如何在 R 中执行此操作(结合 Azure ML)的参考资料。

没有一种直接的方法可以根据 Azure ML 中的提升决策树模型的结果计算置信区间。

这里有一些替代建议:

  1. 使用库重建模型(gbm) http://artax.karlin.mff.cuni.cz/r-help/library/gbm/html/gbm.html or the library(glm) https://stat.ethz.ch/R-manual/R-devel/library/stats/html/glm.html

  2. 然后使用confint函数构建置信区间:https://stat.ethz.ch/R-manual/R-devel/library/stats/html/confint.html

  3. 对于线性模型,置信区间计算更简单:http://www.r-tutor.com/elementary-statistics/simple-linear-regression/confidence-interval-linear-regression