Nonlinear regression with python – what’s a simple method to fit this data better?

This example code uses an equation that has two shape parameters, a and b, and an offset term (that does not affect curvature). The equation is “y = 1.0 / (1.0 + exp(-a(x-b))) + Offset” with parameter values a = 2.1540318329369712E-01, b = -6.6744890642157646E+00, and Offset = -3.5241299859669645E-01 which gives an R-squared of 0.988 and … Read more