I am trying to fit some data with a function in Python; I have tried having only one free parameter (let's call this parameter "A"), and then using the same function but with two free parameters ("A" and "B") (I turn a fixed number into the free parameter "B"). I have then looked at the errors associated to the best-fit values printing the covariance matrix.
However, in the case of 2 free parameters I get an error (associated to the best-fit value for parameter "A") which is much bigger than in the case of the one-parameter fit.
Shouldn't it be the opposite case? If I am right expecting a smaller error in case of more parameters, do you have an idea of why I can get a bigger error with more parameters?
Thanks