I am working with an exponential least square fitting problem, where I have the following data points:

* In year 0 the value is 2

* in year 1 the value is 196

* in year 2 the value is 16 000

* in year 3 the value is 520 000

* in year 4 the value is 16 240 000

Now I have the following formula, which models the data y=a1*e^(a2*x), where x is the year and y is the value. My task is that I need to find the optimal parameters in a= (a1 a2)^T, but I am struggling quite a bit with this and was wondering if anyone could help me.

Q&A Education