Giter Site home page Giter Site logo

whigg / forecasting-crude-oil Goto Github PK

View Code? Open in Web Editor NEW

This project forked from marcusmlarsson/forecasting-crude-oil

0.0 1.0 0.0 4.06 MB

This jupyter notebook proposes a long-run forecasting model of the West Texas Intermediate (WTI) crude oil spot price using the United States petroleum inventory level.

Jupyter Notebook 100.00%

forecasting-crude-oil's Introduction

Petroleum Inventory Level:

A Leading Indicator of Crude Oil Prices

This jupyter notebook proposes a long-run forecasting model of the West Texas Intermediate (WTI) crude oil spot price using the United States petroleum inventory level. The inventory data used in the forecasting model is updated each wednesday at 10:30 AM EST; in conjunction with the Weekly Petroleum Status Report published by the U.S. Energy Information Administration (EIA). Applying the forecasting model between January 2010 to date, I find that the model delivers persistent long-term performance. The model is useful for those who are interested in forecasting future oil prices or for those who wish to understand and interpret historical price fluctuations.

----------------------------------------------------------------------------------------------------------------------------------------

Any individual who chooses to invest in any asset class should do so with caution. The information contained in this notebook should be viewed as commercial advertisement and is not intended to be investment advice. Always do your own due diligence. Please research before investing.

In the notebook I propose a long-run forecasting model that uses Ordinary Least Squares (OLS). Using OLS for short-run time-series forecasting is not recommended because of (1). By using an ARIMA, the proposed model has historically been able to beat a naive forecasting model in the short-run. Having said that, past performance is not indicative of future returns.

(1) The classical linear regression model builds on the assumption of independent and identically distributed observations. For cross-sectional data, independence between observations is automatically fulfilled when random sampling is used. For time series, one typically cannot assume that the samples which are taken throughout time are independent of one another. Time series tend to contain a high degree of auto-correlation, which is particularly the case if the sampling interval is small, such as a week or a month. Furthermore, time series data tend to be nonstationary in levels, which violates the requirement of identically distributed observation. By employing a classic linear regression model for time series data, the risk of producing a spurious model is high because sufficient care is not taken during formulation of the auto-correlation structure and non-stationarity of the data.

forecasting-crude-oil's People

Contributors

marcusmlarsson avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.