Understanding Parameter Errors in fitnlm

2 ビュー (過去 30 日間)
Steven Sagona
Steven Sagona 2018 年 7 月 13 日
コメント済み: Jeff Miller 2018 年 7 月 14 日
Following this question , I have some noisy data that I wish to fit to a sinusoid with some phase. I use fitnlm to perform this fit, and I'm interested in knowing how to find the error of the fit. I see that the output automatically calculates the standard error, but I can't find any documentation on what exactly this means. Is this the reduced chi^2? (And if so, isn't reduced chi^2 not accurate an accurate measurement of error for nonlinear models?)

採用された回答

Jeff Miller
Jeff Miller 2018 年 7 月 14 日
Wikipedia has a pretty good explanation of the mean squared error that fitnlm provides.
And I think Torsten's suggestion for bounding will also work for bounding frequency between 40 & 50:
boundedfreq = 40 + mod(unboundedfreq,10);
  2 件のコメント
Steven Sagona
Steven Sagona 2018 年 7 月 14 日
The frequency bound parts works fine.
You are saying that the "standard error" in Mathematica is the mean-squared error. Is there a way to obtain error-bars for this estimator?
Jeff Miller
Jeff Miller 2018 年 7 月 14 日
Regarding standard error--no, I misunderstood your question. The standard error in the "Coefficients" table is what you would use for error bars for the estimator (i.e., if you wanted an error bar of one standard error). Note also that the NonLinearModel class has a method "coefCI" that you can use to compute confidence intervals for the coefficient estimates, if you want your error bars to reflect a confidence interval.

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by