I have the following data file:
Now I want to do a least square fit on the data of the first and
second column. The data in the first-column represent the x-values, the
data in the second column represent the y-values. I don't need the rest
of the columns.
Now I now that x and y are related somehow as:
y = a/(x**b)
and I want to find a and b as accurate as possible.
The file that plots my data to an .eps file is at
If I don't specify an initial value for b_sob, the fit fails. If I do
specify a starting value of 0.9 the fit works, but the result is not
satisfying as can be seen from the .eps file at
I have also tried to fit on log($2)=a-b*log($1) and then plot
exp(a)/(x**b) but this didn't give me satisfying results either.
How can I increase the quality of my fit?
"Share what you know. Learn what you don't."