forum.alglib.net
http://forum.alglib.net/

Penalized cubic spline aproximation function value condition
http://forum.alglib.net/viewtopic.php?f=2&t=300
Page 1 of 1

Author:  snellius [ Mon Feb 14, 2011 6:07 am ]
Post subject:  Penalized cubic spline aproximation function value condition

Hello Sergey.

I use your library to aproximate probability distribution. I don't know the kind of distribution, thus prefered to use penalized cubic spline aproximation. I know, that the value of function is always greater than zero, but in case of luck of data or on the range boundaries the aproximated function sometimes become negative. How can i avoid this?

Thank you.

Author:  Sergey.Bochkanov [ Mon Feb 14, 2011 9:34 am ]
Post subject:  Re: Penalized cubic spline aproximation function value condi

It is hard to make regression spline strictly positive. I think, one possible solution is to fit logarithm of your function, not the function itself. I.e. instead of S(x) (which is value of regression spline) you will have to calculate exp(S(x)) in order to get values of your function.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/