Natural Gas Price and Crude Oil Price History
Below is a long term chart showing monthly prices for Natural Gas and Crude Oil (on log scales of course):

There is an obvious long term correlation in both but it is also apparent that at times the two diverge from each other. I won't show it here but I looked at the regression relationship between the two but a simpler and more common way to compare two different price series is to look at the ratio of prices. Not surprisingly it is important to look at that ratio in log scale also. Here is the ratio of Natural Gas price to Crude Oil price for the same time period:

There are a few different interesting dynamics going on here. You will see a long term trend where from 1992 through 2002 or so, the ratio was trending upward (meaning natural gas was getting more expensive relative to crude oil) and then since the overall trend is coming down. Beyond that you also see shorter term dynamics where the ratio swings quickly over the course of just a few months.
With this kind of long term shifting in behavior, you need to be careful trying to come up with any absolute ratio that might signal a point where the ratio is due to shift the other way.
Fitting an ARIMA Model to the Price Ratio
Looking closer at this ratio data, I found some interesting time series dynamics that were able to be fit with an ARIMA model. This indicates some non-randomness on some scale although it may appear overall to be a random walk. While I don't have the time or space to go into all the details, I looked at the residual error from that ARIMA model and found some interesting forecasting/trading implications.
Applying some basic control chart rules to the ARIMA model residual errors, I came up with a basic forecasting tool which indicates when Natural Gas Prices (relative to crude specifically) are due for a move up or down. This shows a statistical process control chart on those residual errors:

(for the statgeeks, I used 2 sigma control limits to be a bit more liberal but that still should give you a 95% confidence). When this chart gets above the upper line noted by red squares it indicates a bearish signal for natural gas and when it gets below the lower line it indicates a bullish signal.
What is this really doing?
Trying to boil this down, this looks at the price ratio of natural gas to crude. It fits the time series behavior of that ratio with an ARIMA model. Then it looks at the model fit errors to note when the ratio is moving too fast up or too fast down relative to where it should be based on the ARIMA model of how the ratio should randomly walk and wobble around.
How would it perform if traded?
Below is a plot summarizing all the signals above. A buy would be issued when the chart above has a point plotted below the lower control limit, then I closed that long position when the MA of the residual error plotted above rose back above the center line. Here is what it looks like:

Pretty amazing and interesting results. There are some that seem obvious but many that do not, for example going short back in December of 2008 after Natural Gas had already dropped quite a bit.
Final Thoughts and Fine Print
So this looks pretty impressive. But it is a back tested system which is always unrealistic to some degree if one were to use this going forward although I think that is somewhat minimized because this is not an overfit or over-optimized system. It is a very basic statistical system using standard statistical models and common statistical rules. I really like this overall methodology and will definitely look into this more in the future. This does not include any slippage costs, etc.
Where is Natural Gas Price Headed?
Finally note the end of the trading chart it has a long position issued in March of this year. That is still an open long position. Keep in mind this really is a ratio of Natural Gas to Crude Oil so technically it could mean either Natural Gas goes up in the coming months, Crude Oil goes down, or both. Also keep in mind, this is monthly data so it is longer term and means nothing for the next few days or even weeks. This may seem to disagree with my Natural Gas inventory blog post where I said it did not look like a price spike this winter so far. Well really, these are two different things being measured and forecasted and just because one does not forecast a price increase does not mean the other can't. In fact I see these being used together.
Please see the disclaimer.
...
20 comments: