Statistical Modeling, Statistical Analysis, Data Science, Data Analysis.
As the relationship between X and y looks exponential, you had better choose the log link function. GLM with non-canonical link function With statsmodels you can code like this. mod = sm.GLM(endog, exog, family=sm.families.Gaussian(sm.families.links.log)) res = mod.fit() Notice you need to specify