How fitlm computes confidence bounds?

19 ビュー (過去 30 日間)
Christos Tsallis
Christos Tsallis 2023 年 2 月 5 日
編集済み: the cyclist 2023 年 2 月 7 日
I have used fitmid=fitlm(x1,y1), fitmax=fitlm(x2,y2), fitmin=fitlm(x3,y3) in order to return a linear regression model for my data. Then, I plot them using "plot" function. I saw that confidence bounds were also included but I would like to ask, how are they computed? Is it 95% confident interval?

回答 (1 件)

the cyclist
the cyclist 2023 年 2 月 5 日
Yes, the coefCI property of the model object output from fitlm gives the 95th percentile confidence intervals of the fitted coefficients.
  2 件のコメント
Christos Tsallis
Christos Tsallis 2023 年 2 月 7 日
編集済み: Christos Tsallis 2023 年 2 月 7 日
May you please explain what 95% confidence bound means? @the cyclist
the cyclist
the cyclist 2023 年 2 月 7 日
編集済み: the cyclist 2023 年 2 月 7 日
fitlm estimates a coefficient for each term in the fitting equation. Call one of those coefficients beta. There is a true value of beta (that is unknown), and you have an estimate of it.
Now suppose you performed the whole experiment thousands of times, and calculated thousands of confidence intervals. You would expect that the true value beta to be inside the 95th confidence interval in 95% of those experiments.
Note that this is not quite the same as saying there is a 95% chance that the true value beta lies inside this confidence interval. But that is the nature of frequentist statistics.
This concept is not easy to understand. The wikipedia page on confidence intervals is helpful

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeRegression についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by