# Forecast with cubic spline

• Dec 14th 2012, 06:25 AM
igorbaldacci
Forecast with cubic spline
Hi all,
I have a simple question: is it possible to make forecast with cubic spline? And, if yes, how?

Frecast, for me, meens that I can understend the value of my interpolation function OUTSIDE the data field that I have.

Thank you, every help will be appreciated. (Itwasntme)
Igor
• Dec 14th 2012, 09:06 AM
hollywood
Re: Forecast with cubic spline
I think the word you're looking for is extrapolate. It means (in one dimension) that you are given f(x) for various x in [a,b] and want to estimate f(x) for some x>b or some x<a.

Of course, you can use any method, and the accuracy you get depends on the situation. If I understand correctly, a cubic spline would end up being just a cubic function approximation, and so would assume the third derivative of the function is approximately constant. Your accuracy will depend on how well this actually fits the situation.

As an example, here

Taylor series - Wikipedia, the free encyclopedia

there is a graph of various polynomial approximations to the function $\displaystyle \sin{x}$. You can see that the cubic approximation is pretty good for $\displaystyle -\frac{\pi}{2}<x<\frac{\pi}{2}$ but really gets bad as you go further from 0.

- Hollywood