In a high-inflation environment, nominal stock market gains can be deceptive. While the Dow Jones might hit all-time highs, it doesn't always mean investors are gaining real-world purchasing power.
I built this Augmented Analytics tool to bridge the gap between equity indices and macroeconomic fundamentals. By adjusting the Dow Jones Industrial Average (DJIA) for the Consumer Price Index (CPI), this app reveals the "Real" growth of the market, filtering out the noise of monetary inflation.
Interact with the live dashboard here: macro-equity-intelligence.streamlit.app
This project demonstrates a full-cycle data product, from raw API ingestion to cloud deployment:
- Python: The core engine for all logic.
- Streamlit: For building the interactive UI and real-time dashboard.
- yFinance: To source live equity data for the DJIA.
- Pandas & NumPy: For time-series alignment, data cleaning, and correlation logic.
- Plotly: To generate interactive, financial-grade visualizations.
This app goes beyond basic charting by implementing active analytical logic:
- Live Data Integration: The app fetches the latest CPI data from the St. Louis FED (FRED) and daily closes for the Dow Jones.
- Dynamic Normalization: Both datasets are indexed to a 'Base 100' starting at the user's selected date, allowing for an "apples-to-apples" comparison.
-
The Real Value Calculation:
$$Real Value = \frac{Nominal Index}{CPI Index} \times 100$$ - Automated Insights: An automated commentary engine runs a Pearson Correlation Coefficient between the index and inflation to determine if the market is being driven by fundamental growth or currency devaluation.
If you want to run this project on your local machine:
-
Clone the repository:
git clone https://github.com/o-danalyst/macro-equity-intelligence.git cd macro-equity-intelligence -
Install dependencies:
pip install -r requirements.txt
-
Launch the App:
streamlit run App.py
App.py: The main application logic, data pipeline, and UI layout.requirements.txt: Necessary Python libraries for deployment.README.md: Documentation and project overview.Visuals: Contains images taken from the live demo
Clinton Onaga *I’m a Data & Market Analyst focused on turning raw data into decision-ready insights.
My work sits at the intersection of:
- data analysis & visualization
- automation of repetitive analytical workflows
- market analysis (technical + macro fundamentals)
I’m currently building hands-on experience in augmented analytics and AI-driven automation, with an emphasis on practical systems that reduce manual work and improve decision-making. * GitHub Profile | LinkedIn
Developed as a demonstration of Augmented Analytics and Macroeconomic modeling.