Which function matches this shape?

116 Views Asked by At

I'm trying to find a function that matches the following shape.

enter image description here

My first attempt was with a cosine function

$$ f(x) = a\cos(b x)$$

which yields the following result:

enter image description here

What modification of the cosine function could help to make it better fit the required shape? Any ideas or suggestions are appreciated.


EDIT: the raw data is available in csv format here.


EDIT 2:

Simple polynomial functions do not seem to yield better results.

Order 2: enter image description here

Order 3:

enter image description here

Order 5:

enter image description here

For $f(x) = C-Ae^{bx}$ as suggested by @FranCruz I find

enter image description here

1

There are 1 best solutions below

2
On

My first instinct looking at that data was 'parabola' (quadratic polynomial). It looks like a concave down parabola. I think you can get a good degree 2 polynomial fit for this data.