필터 지우기
필터 지우기

Curve fitting toolbox doesn't give confidence intervals

조회 수: 7 (최근 30일)
Edoardo_a
Edoardo_a 2023년 3월 22일
답변: Drew 2023년 11월 16일
Hi all, I have a problem with the curve fitting toolbox program.
I did make a code out of the toolbox curve fiitting because I needed to modify the parameters in a specific way for different curves that I am fitting with a sum of Gaussians and Lorentzian. It seems to work well but the problem is that for some reason, some times the fittin doesn't show the confidence intervals for specific parameters and I can't understand why: Does anyone know how to help me?
Thanks in advance, I update some files to make it more clear.
  댓글 수: 2
Matt J
Matt J 2023년 3월 22일
We would need to see a demonstration of what you mean.
Edoardo_a
Edoardo_a 2023년 3월 23일
Hi Matt, maybe from a more generic point of view: why when changing the initial parameters in the curve fitter app (using a custom equation), for same values the fitting doesn't give any confidence interval for some parameters?(as I shhown in the ex1.txt file I uploaded)
Even if the fit is good I dont't understand why doesn't show any confidence interval

댓글을 달려면 로그인하십시오.

답변 (1개)

Drew
Drew 2023년 11월 16일
See https://www.mathworks.com/help/curvefit/cfit.confint.html, where it says: "If coefficients are bounded and one or more of the estimates are at their bounds, those estimates are regarded as fixed and do not have confidence bounds."
Notice the message "(fixed at bound)" in the "ex1.txt" file that you attached. So, it looks like the coefficients that are fixed at their bound is the reason for not returning confidence intervals. Therefore, if the coefficient bounds are relaxed, the algorithm may be able to successfully return confidence intervals.
If this answer helps you, please remember to accept the answer.

카테고리

Help CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by