I'm not too familiar with the statistics behind least-square fitting, but please bear with me.
I would like to fit a data set ("Result") with linear combinations of component data sets ("a", "b"). I'm currently using the "\" command, which is equivalent to mldivide:
x =[a;b]'\Result'
A linear combination of the red and yellow curve creates the blue curve that fits the blue curve.
For example, a result would be:
x = 0.9796 0.2119
However, is there any way I can obtain uncertainty/error from doing this? Thanks.
Best Answer