[Math] Fitting a polynomial + exponential curve of a given form to data

regressionstatistics

I have got a number of data sets of some parameter $m_x$ against an independent variable $x$. Through each of the data sets I need to best fit a curve of the form $A + Bc^x$ such that $A$, $B$ and $c$ are arbitrary parameters. How can I best do it, preferably with Excel or Mathematica?

Best Answer

In Mathematica you have to import your data as table for $x$ and $y$ values. The data can have the form $$\text{data}=\{\{x_1,y_1\},\{x_2,y_2\},...,\{x_n,y_n\}\}$$

You can create your model as

model = A+B*c^x

Then you can use FindFit function as

FindFit[data, model, {A,B,c},x]
Related Question