Serving the Quantitative Finance Community

 
User avatar
stas
Topic Author
Posts: 3
Joined: June 17th, 2009, 6:07 pm

Quartic spline library

August 29th, 2015, 5:46 pm

Hi,Does anyone know of an numerical library that implements quartic (degree 4) polynomial splines?Thank you.
 
User avatar
Cuchulainn
Posts: 23029
Joined: July 16th, 2004, 7:38 am

Quartic spline library

August 31st, 2015, 8:25 am

Seeing no one has responded.To be honest, I have not seen such code. Cubic and even quintic spline interpolation is more common.I reckon you could easily program it up. Is there a compelling reason for quartics?
Last edited by Cuchulainn on August 30th, 2015, 10:00 pm, edited 1 time in total.
 
User avatar
ExSan
Posts: 498
Joined: April 12th, 2003, 10:40 am

Quartic spline library

August 31st, 2015, 12:48 pm

QuoteOriginally posted by: stasHi,Does anyone know of an numerical library that implements quartic (degree 4) polynomial splines?Thank you.time ago I saw something in g+
 
User avatar
stas
Topic Author
Posts: 3
Joined: June 17th, 2009, 6:07 pm

Quartic spline library

September 1st, 2015, 2:15 pm

In my experimentation quadratic splines offer the best trade off (in the polynomial splines class, so ignoring something like B-splines) between smoothness and non-locality when splining the instantaneous forward curve using optimization. While it is easy to implement "naively" the linear equations that arise are banded and should be solved as such in order to optimize performance. I was looking for a package that would do it all. I've been looking and am supprised this is not readily implemented. I know for a fact several major dealers use this spline model even though it is not widely discussed.
 
User avatar
stas
Topic Author
Posts: 3
Joined: June 17th, 2009, 6:07 pm

Quartic spline library

September 1st, 2015, 2:59 pm

ExSan, do you happen to remember where?
 
User avatar
Cuchulainn
Posts: 23029
Joined: July 16th, 2004, 7:38 am

Quartic spline library

September 1st, 2015, 5:02 pm

QuoteOriginally posted by: stasIn my experimentation quadratic splines offer the best trade off (in the polynomial splines class, so ignoring something like B-splines) between smoothness and non-locality when splining the instantaneous forward curve using optimization. While it is easy to implement "naively" the linear equations that arise are banded and should be solved as such in order to optimize performance. I was looking for a package that would do it all. I've been looking and am supprised this is not readily implemented. I know for a fact several major dealers use this spline model even though it is not widely discussed.Normally all these have a name/label like Akima, Hyman, etc. Quotequadratic splines ???Your title states 'quartic'. Which one is it?
Last edited by Cuchulainn on August 31st, 2015, 10:00 pm, edited 1 time in total.
 
User avatar
stas
Topic Author
Posts: 3
Joined: June 17th, 2009, 6:07 pm

Quartic spline library

September 1st, 2015, 11:49 pm

I meant quartic (degree 4). Polynomial splines are desirable because various integrals such as curvature (which serves as a penalty term during optimization ) are easily computed
 
User avatar
Cuchulainn
Posts: 23029
Joined: July 16th, 2004, 7:38 am

Quartic spline library

September 2nd, 2015, 8:44 am

QuoteOriginally posted by: stasI meant quartic (degree 4). Polynomial splines are desirable because various integrals such as curvature (which serves as a penalty term during optimization ) are easily computedPlan B; do you have a reference to the model? I suspect it's just a matter of solving a banded matrix system?