This project analyzes and predicts crude oil prices using machine learning models (ARIMA Time-Series Analysis). It provides an interactive dashboard for users to explore historical price trends and future forecasts.
- Fetches historical crude oil prices (WTI & Brent) via API.
- Preprocesses & cleans data for smooth trend analysis.
- Forecasts future crude oil prices using ARIMA.
- Visualizes trends, price distribution, and correlations.
- Interactive Streamlit dashboard for price exploration.
Crude_Oil_Analysis/
│-- README.md # Project Overview & Instructions
│-- data_collection.py # Fetches crude oil prices
│-- data_preprocessing.py # Cleans & processes oil price data
│-- ml_model.py # Trains ARIMA model for forecasting
│-- visualization.py # Generates oil price trend graphs
│-- dashboard.py # Interactive Streamlit dashboard
│-- requirements.txt # Dependencies for setup
Run the following command:
pip install -r requirements.txt
python data_collection.py
This fetches crude oil prices and saves them as crude_oil_prices.csv
.
python data_preprocessing.py
This cleans the dataset and prepares it for modeling.
python ml_model.py
This trains an ARIMA model to forecast crude oil prices.
python visualization.py
streamlit run dashboard.py
The dashboard provides real-time crude oil price analysis & forecasting.
- Python (Pandas, NumPy, Matplotlib, Seaborn, Plotly, Streamlit)
- Machine Learning (ARIMA for time-series forecasting)
- Data Processing (Feature Engineering, Normalization, Outlier Detection)
- API Integration (EIA API for crude oil price data)
Charles Eleri
- Enhance the model with LSTM for deep learning forecasting.
- Integrate real-time market news scraping.
- Deploy the dashboard to AWS/GCP/Azure for global analysis.
🔹 GitHub Repo: github.com/charleseleri