How jorge-sarmiento/mena-nowcasting works
MENA Nowcasting Engine estimates quarterly GDP growth for Saudi Arabia and the UAE from high-frequency financial and alternative indicators. The principal workflow runs from a country-level request through indicator ingestion, feature preparation and model forecasts to expanding-window evaluation, statistical validation and nowcasts. The README also documents optional structural-shock robustness runs and six formal validation tests. Edges reflect the excerpts, SOURCE INDEX references or README; unsampled implementation details are not inferred.
Main entry points: main.py Run orchestration · config.py Country configuration · data_loader.py Market data ingestion · google_trends.py Google Trends loader
Components 16
Run orchestration
- Run orchestration
main.py - Country configuration
src/config.py - Shock extension
main.py
Indicator preparation
- Market data ingestion
src/data_loader.py - Google Trends loader
src/google_trends.py - Feature engineering
src/features.py - Lead-lag alignment
src/utils.py - Cycle extraction
src/filters.py
Forecasting
- GDP ground truth
src/validation.py - Five-model forecasts
src/models.py
Validation and diagnostics
- Expanding-window evaluation
src/validation.py - Statistical tests
src/validation.py - Integration diagnostics
integration_diagnostics.py
Other components
- Analyst
- Yahoo Finance
- Google Trends service
Connections 21
- Analyst → Run orchestration: starts run
README.md - Run orchestration → Country configuration: reads settings
main.py - Run orchestration → Market data ingestion: loads indicators
main.py - Run orchestration → Feature engineering: uses features
main.py - Run orchestration → Lead-lag alignment: aligns indicators
main.py - Run orchestration → Cycle extraction: uses cycles
- Run orchestration → GDP ground truth: gets GDP
main.py - Run orchestration → Five-model forecasts: runs models
main.py - Run orchestration → Expanding-window evaluation: evaluates forecasts
main.py - Run orchestration → Statistical tests: runs tests
README.md - Run orchestration → Shock extension: enables extension
README.md - Market data ingestion → Country configuration: reads tickers
src/data_loader.py - Market data ingestion → Yahoo Finance: downloads prices
src/data_loader.py - Market data ingestion → Google Trends loader: fetches sentiment
src/data_loader.py - Google Trends loader → Google Trends service: queries trends
src/google_trends.py - Google Trends loader → Country configuration: reads settings
src/google_trends.py - Lead-lag alignment → Country configuration: reads lead limit
src/utils.py - Cycle extraction → Country configuration: reads filter settings
src/filters.py - Run orchestration → Integration diagnostics: runs separately
- Integration diagnostics → Market data ingestion: uses loaded data
integration_diagnostics.py - Integration diagnostics → Country configuration: reads settings
integration_diagnostics.py