LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

curve fitting: how to predict/forecast gas prices

I would like some help on how to use polynomial and exponential curve fitting to forecast or predict a future gas price based on 30 previous historical weeks prices.  I know that there is a way to enter these 30 historical prices as an array or something and use curve fitting to find the best fit and be able to predict the next weeks price.  If anyone could lend a hand it would be much appreciated. 

 

Thank You !!

0 Kudos
Message 1 of 4
(2,648 Views)
Setting aside the validity of any such exercise in predicting gas prices (I certainly wouldn't believe it), have you taken a look at the examples that ship with LabVIEW? For example, the "Financial Forecasting" example. Just do a search on "curve".
Message 2 of 4
(2,646 Views)

If you get this working, please let us know when gas prices will be falling below a dollar per gallon. Smiley Very Happy

 

- tbob

Inventor of the WORM Global
0 Kudos
Message 3 of 4
(2,618 Views)

tbob:

 

I think the result will yield NaN 🙂

 

-AK2DM

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
Message 4 of 4
(2,604 Views)