Re: Nonlinear Curve Fitting

*To*: mathgroup at smc.vnet.net*Subject*: [mg53847] Re: Nonlinear Curve Fitting*From*: "Ray Koopman" <koopman at sfu.ca>*Date*: Sat, 29 Jan 2005 06:03:01 -0500 (EST)*References*: <ctcrit$6pu$1@smc.vnet.net>*Sender*: owner-wri-mathgroup at wolfram.com

nilaakash wrote: > Dear Friends, > I have tried to fit a nonlinear curve, but failed. I am > giving my points and it's curve equation is > > \!\(y = a \((1 - x\/c)\)\^b\) > > Here a, b, c are fit parameters. My initial guess is like > a = 0.3 > b = 0.2 > c = 385.2 > > data={{...}} r = FindFit[data, a(1-x/c)^b, {{a,.3},{b,.2},{c,385.2}}, x] {a->0.318854,b->0.204693,c->384.614} Plot[Evaluate[a(1-x/c)^b/.r],{x,326,382},Prolog->Point/@data]; Looks good to me.