How to run non-linear regression in python
<p>i am having the following information(dataframe) in python</p>

<pre><code>product baskets scaling_factor
12345   475     95.5
12345   108     57.7
12345   2       1.4
12345   38      21.9
12345   320     88.8
</code></pre>

<p>and I want to run the following <strong>non-linear regression</strong> and <strong>estimate the parameters.</strong> </p>

<p><strong>a ,b and c</strong></p>

<p>Equation that i want to fit:</p>

<pre><code>scaling_factor = a - (b*np.exp(c*baskets))
</code></pre>

<p>In sas we usually run the following model:(uses gauss newton method )</p>

<pre><code>proc nlin data=scaling_factors;
 parms a=100 b=100 c=-0.09;
 model scaling_factor = a - (b * (exp(c*baskets)));
 output out=scaling_equation_parms 
parms=a b c;
</code></pre>

<p>is there a similar way to estimate the parameters in Python using non linear regression, how can i see the plot in python.</p>