2

I am working with some dataset which looks very similar to the negative of $\tan^{-1}(x)$ to me:

enter image description here

The only thing is that this curve need not be "anti-symmetric" around zero. I have tried fitting functions of the form $-a\tan^{-1}(bx) + c$ but it doesn't always produce good fit because of the very fact that data can be asymmetric. Does anybody know any good function which would qualitatively look like negative $\tan^{-1}$ but is asymmetric about zero? Most probably, it would involve parameters which one can change to change the amount of asymmetry. Any ideas?

Peaceful
  • 521

1 Answers1

1

Following your line of reasoining, you would have to define it as $f(x) = a - b \sigma (x)$. That means introducing 2 parameters and, in addition, choosing a sigmoid function $\sigma$ which doesn't have to be an arctan.

There is a good choice of sigmoids on https://en.wikipedia.org/wiki/Sigmoid_function#/media/File:Gjl-t(x).svg

However, a sigmoid is a natural choice only if we see a flat asymptote on both half-axes in the data. Your data show the flat asymptote only for positive values of $x$, from what I can see.

If these are all your data, I'm not sure I would use a sigmoid. I would try something like $f(x) = a + \frac{1}{1 + \exp\left( b x\right)}$, for positive $a$ and $b$.

Jennifer
  • 879
  • 1
  • 9
  • 17