New answers tagged

2 votes

scipy exp model fitting: prevent coefficients blowup

My solution using polynomial regression, after using Konstantinos trick: ...
mastican's user avatar
3 votes
Accepted

scipy exp model fitting: prevent coefficients blowup

Just take the log of your y-data, $Y=\log(y)$ and do a linear fit. Then from the coefficients of $Y=A\,x+B$ you get $k\!=\!A$ and $h\!=\!e^{-B}$, so that $\log(y) = k\,x - \log(h)$ If you fit your ...
Konstantinos's user avatar

Top 50 recent answers are included