MATLAB: Confidence intervals with lsqlin

confidenceintervallsqlinStatistics and Machine Learning Toolbox

Hi all,
I'd like to know if a function exists that computes the intervals of confidence of the result of the lsqlin optimisation given the intervals of confidence of the input data.
Using the notations here (<http://www.mathworks.fr/fr/help/optim/ug/lsqlin.html)>, I'm basically looking for confidence intervals of x components given the confidence intervals of d components.
Thanks in advance for your advice!

Best Answer

If you have constraints (looks like you do since you use lsqlin) then you will have to explore bootstrapping methods to estimate confidence intervals in the presence of constraints.
If you simply have bound constraints then you can transform your data as explained here:
If you do not have constraints or bounds, simply use fitlm which give you all the information you may need to assess your fit: