Hi,
I have a data set (X, Y) such that Y = f(X, a, b). I want to fit the data point with this equation to determine the values of a and b. I am having following issues -
First, I want to know how to insert a table with 2 columns having values (x1, y1), (x2, y2)… with headers “X” and “Y” known to mathematica, as only then I can use a function like FindFit with X and Y defined.
If some other method could be easier, please let me know.
Here is a parallel example to explain my problem - There is a (X, Y) data set (2, 5), (4, 9) (5, 16), (7, 28) ..and so on. i know that Y = aX+b. Now I want to fit the data point to determine the values of a and b.
Hi Frank,
Thanks for your help, your suggestion worked fine. Now I am having another issue, in this data fitting I am getting the unexpected values of of parameters a & b and now want to fix the domain of variables. How can I do it in FindFit function.
So, i want to fit (X, Y) data set (2, 5), (4, 9) (5, 16), (7, 28) to the equation Y = aX+b to determine the values of a and b but with condition that they lie in the range a1 < a < a2 and b1 < b < b2.