Coder Social home page Coder Social logo

oil_price_prediction_model's Introduction

View rendered notebook in nbviewer here

๐Ÿ” Project Insight: Predicting Crude Oil Prices

I'm excited to share a recent project where I've developed a Linear Regression Model to predict the Cushing, OK WTI Spot Price FOB. This work combines data analysis and energy economics, providing insights into the future of crude oil prices.

Cushing, OK WTI Spot Price FOB (Dollars per Barrel)

newplot

๐Ÿ“Š Behind the Scenes:

The model leverages data from the U.S. Energy Information Administration, focusing on weekly U.S. crude oil supply. My approach involved using Pandas for data manipulation, Plotly Express for visualization, and Scikit-learn for building the regression model.

๐Ÿงฉ Modeling and Analysis:

After thorough data cleaning and preparation, I focused on identifying key features that influence crude oil prices. The model's performance, indicated by an R-squared of 0.85, shows a strong correlation between the features and the target price.

๐Ÿ“ˆ Results and Reflections:

The visualizations created help in understanding the model's predictions compared to actual prices. The insights from the regression coefficients were particularly interesting, shedding light on the impact of different variables on oil pricing.

Actual vs Predicted Results

The "Actual vs Predicted Results" plot visually compares the real-world crude oil prices with those forecasted by the linear regression model. Deviations from the diagonal line, which represents perfect prediction, indicate the areas where the model overestimates or underestimates the actual prices.

newplot (1)

Residuals vs Predicted Prices

The "Residuals vs Predicted Prices" plot in this context visually represents the differences (residuals) between the actual and predicted crude oil prices. This plot helps in identifying patterns in the prediction errors, indicating whether the model consistently overestimates or underestimates at certain price levels.

newplot (2)

oil_price_prediction_model's People

Contributors

noahvelez 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.