I am trying to fit the following bivariate data set using the FindFit function:
data = {{0.017, 1.091}, {0.034, 1.054}, {0.051, 1.130}, {0.068,
1.226}, {0.085, 1.184}, {0.102, 1.307}, {0.119, 1.250}, {0.136,
1.326}, {0.153, 1.324}, {0.17, 1.336}, {0.187, 1.314}, {0.204,
1.382}, {0.221, 1.333}, {0.238, 1.402}, {0.255, 1.316}, {0.272,
1.474}, {0.289, 1.382}, {0.306, 1.308}}
However, when I use the function I get an error:
FindFit[data, {a + b*Exp[-k*x]}, {a, b, k}, {x, y}]
FindFit::cvmit: Failed to converge to the requested accuracy or precision within 100 iterations. >>
Any help on how to fix this expression would be appreciated.
{x, y}
argument? You get the above warning only when you use{x}
. Using the function as above yields another message:FindFit::fitc: Number of coordinates (1) is not equal to the number of variables (2). >>
$\endgroup$