lwicks has asked for the wisdom of the Perl Monks concerning the following question:
I have searched and searched and not found a CPAN module or similar. Can my fellow monks succeed where my Googling has failed?
Basically, is there a way I can take a simple array of numbers and then extrapolate from the last one by say 6 months. (The data is per month you see).
Something like this pseudo-code:
@monthly_data = ( 2,3,2,4,3,5,4,6,5,7,6,8,7,9,8 ); @next_six = extrapolate(@monthly_data, "polynomial");
Or something like that, @next_six would end up equalling something like ( 10,11,13,15,18,20 ) <- Not real results!
I am sure if I actually understood the math behind this I would A)find it easy and B)know better than to extrapolate like this.
Any suggestions on how to proceed would be much appreciated.
Lance
Kia Kaha, Kia Toa, Kia Manawanui!
Be Strong, Be Brave, Be perservering!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Polynomial Trendline / Extrapolation
by dwm042 (Priest) on May 29, 2008 at 17:17 UTC | |
by lwicks (Friar) on May 30, 2008 at 15:56 UTC | |
by Christian_77 (Initiate) on Jul 25, 2008 at 07:06 UTC | |
by Anonymous Monk on Jun 17, 2011 at 19:47 UTC | |
by Anonymous Monk on Jun 17, 2011 at 19:56 UTC | |
|
Re: Polynomial Trendline / Extrapolation
by FunkyMonk (Bishop) on May 29, 2008 at 16:44 UTC | |
|
Re: Polynomial Trendline / Extrapolation
by pc88mxer (Vicar) on May 29, 2008 at 17:13 UTC |