Bounded Confidence Intervals from nlparci
3 views (last 30 days)
Show older comments
I've calculated parameter values to a model using lsqcurvefit(). These parameters have lower bounds of 0, which I've specified to the function. Now I'd like to know the confidence interval for each.
nlparci() generates confidence intervals from the resulting residuals and jacobian from lsqcurvefit(), but the lower bounds are negative. Since the possible values cannot be negative, what is the proper way to calculate confidence intervals for these parameters?
0 Comments
Answers (1)
Star Strider
on 27 Jul 2018
The lower bounds of parameter confidence intervals indeed can be negative.
Parameter confidence intervals that include zero, such that one limit is positive and the other is negative, indicate that the particular parameter is not necessary in the model. The confidence limits would then indicate that the parameter is not significantly different from zero at the level of significance specified.
2 Comments
Star Strider
on 30 Jul 2018
I assume that the ‘x’ you’re referring to is a parameter, since you didn’t specifically describe it.
The parameter values the functions return represent the ‘best fit’, usually in the least-squares sense. Every estimated parameter (and the regression estimates themselves) involve some uncertainty with respect to the actual value.
The confidence intervals are not the range of values a parameter may take, but the uncertainty involved in their estimation. So ‘... if x=1 with confidence interval -1<x<3 .,..’ indicates that at the given probability, the ‘true’ value of the parameter is somewhere in those limits. For any given model, the difference between the limits will decrease as the number of observations increases.
I can’t tell how implausible ‘x=-0.5’ may be in your model. The confidence intervals of (-1<x<3) simply indicate that ‘x’ is not required in your model, and simplifying your model to exclude that parameter would not impair your model’s ability to describe your data. In that context, the actual values it may take aren’t important.
See Also
Categories
Find more on Linear and Nonlinear Regression in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!