线性最小二乘线(Matlab)周围的置信带

时间:2018-04-04 15:24:17

标签: matlab curve-fitting least-squares confidence-interval

我正在使用Matlab函数lsline将一个线性最小二乘线添加到散点图中。我想在该拟合线周围添加一个95%的置信区间,使它看起来像这样(用python函数seaborn绘制):

enter image description here

然而,lsline返回没有拟合参数来构造95%置信区间,并且我能找到的唯一能够返回这些函数的Matlab函数是nlpredci,但该函数用于其他东西(非线性)回归预测)

0 个答案:

没有答案