Project SENTRY: Architecture and Econometric Methodology
1. Sub-National Administrative Hierarchy
Project SENTRY formulates sub-national macroeconomic nowcasting as a hierarchical estimation problem across three nested administrative tiers in the Republic of the Philippines:
Level 0: National Macroeconomy
Philippines Real GDP / Quarterly National Accounts (QNA):
Level 1: Regional Administrative Tier
18 Administrative Regions (NCR, CAR, Regions I–XIII, BARMM, NIR)
Gross Regional Domestic Product (GRDP) Panel:
Level 2: Sub-Regional Provincial Tier
135 Provincial Product Accounts (PPA) Jurisdictions: Provinces & Highly Urbanized Cities (HUCs):
Hierarchy Invariants & Conservation Laws
- Regional Growth Balance (Stone's Linear Balance):
- Provincial Additivity (Denton Proportional Conservation):
3. Spatial Equilibrium Stability:
2. Spatial Weight Matrix Formulations
Pure NumPy Contiguity & Haversine 3-NN Maritime Augmentation
Unlike continental economies, the Philippine archipelago comprises over 7,641 islands. Standard Queen contiguity leaves island regions (MIMAROPA, Central Visayas, Eastern Visayas, BARMM) completely isolated ().
To eliminate reliance on external geospatial C-libraries (
gdal,geopandas,fiona,shapely), SENTRY implements pure NumPy analytical topology:- Analytic Queen Contiguity (): Direct land borders derived from official PSA/NAMRIA administrative geography.
- Haversine Great-Circle Distance:
where , is latitude, and is longitude of regional administrative centroids. 3. Directed -NN Augmentation (): For any region with fewer than land neighbors, the closest centroids are connected to model primary inter-island Ro-Ro (roll-on/roll-off) and maritime shipping channels.
Economic Gravity Flow Matrix ()
Physical distance alone fails to capture commercial dominance. The Philippine Statistics Authority (PSA) Commodity Flow in the Philippines (CFS) measures domestic trade flows across air, water, and rail transport:
- Bilateral Flow Aggregation: (annual trade value in PHP millions from origin to destination ).
- Zero Diagonal: (self-flows excluded).
- Row Normalization:
- Convex Hybrid Formulation:
Optimal was identified via grid search maximizing the 2SLS spatial autoregressive concentrated log-likelihood:
3. Spatial Dynamic Factor Model (SDFM)
Conventional nowcasting separates factor extraction from spatial econometric adjustment. SENTRY's unified SDFM incorporates spatial feedbacks directly into the Kalman state-space observation operator.
State-Space Representation
- Latent Factor State Equation ():
where ( latent common factors), satisfies stationary eigenvalues (), and is positive semi-definite.
- Spatial Observation Operator:
The structural regional equation across all 18 regions is:
Inverting the spatial multiplier :where:
Information Transmission Mechanism
When an indicator release for Region arrives at time (e.g., Cebu port traffic or NCR wholesale index), the Kalman measurement update:
instantaneously propagates spatial spillovers to all other regions via , ensuring continuous real-time cross-regional learning.
4. Finite-Sample Conformal Interval Recalibration
Because concentrates observation errors, theoretical Kalman innovation covariance systematically underestimates empirical predictive uncertainty.
To restore valid coverage without altering point nowcasts:
- Non-conformity scores are computed over out-of-sample walk-forward validation:
- The calibrated conformal quantile for ( nominal) is derived empirically:
- Conformalized prediction intervals are constructed as:
This restores empirical coverage from to **** while preserving point nowcast optimality ().
5. Domain-Partitioned Feature Gating
Empirical analysis in Phase 9 revealed that pooling climate shock indicators (CHIRPS Standardized Precipitation Index and Cyclone Disturbance Index) globally across all 18 regions diluted tree split gains in manufacturing hubs (NCR, CALABARZON).
SENTRY enforces Domain-Partitioned Feature Gating:
- Metro / Industrial Hub Profile: Gating excludes raw precipitation and cyclone tracks, allocating capacity to foreign direct investment, US/China industrial production (
INDPRO), remittance flows, and port transit volumes. - Agricultural / Island Profile: Retains high-dimensional climate proxies (CHIRPS precipitation anomalies, typhoon wind track intensity, Sentinel-2 NDVI vegetative vigor) to capture crop-cycle disruptions.
6. Quad-Model 3-Tier Simplex Meta-Ensemble
SENTRY combines four mathematically orthogonal model architectures:
- LightGBM: Non-linear gradient boosted regression trees with asymmetric directional penalty ().
- Regularized ElasticNet: Sparse linear model with expanding-window cross-validation ().
- Unified Spatial DFM (SDFM): State-space dynamic factor model with endogenous spatial multiplier.
- Ridge U-MIDAS: Unrestricted mixed-frequency distributed lag regression bridging monthly indicators to annual output.
3-Tier Simplex Stacking
Weights are solved via constrained quadratic optimization on expanding-window out-of-sample errors:
Estimated independently across three economic archetypes: - **Tier 1 (National Capital Region):** High spatial and linear weights; low tree variance. - **Tier 2 (Industrial Regional Hubs):** Balanced spatial and gradient boosted tree weights. - **Tier 3 (Agricultural / Island Regions):** Balanced spatial, tree, and mixed-frequency autoregressive weights.
7. Constrained Lagrangian Indicator-Assisted Denton Downscaling
To disaggregate annual regional GRDP nowcasts into 135 provincial and HUC entities, SENTRY implements dynamic indicator-assisted Denton disaggregation.
Let denote the unknown provincial output level, the historical PPA baseline level, and a high-frequency composite proxy constructed from:
The objective minimizes relative distortions from the dynamic indicator while satisfying regional conservation:
Closed-Form Solution
Using Lagrangian multipliers, the exact solution is evaluated in without iterative numerical solvers:
Non-negativity () is strictly enforced with proportional residual rescaling, guaranteeing zero conservation error.
For the public-facing web workstation architecture, see Chapter 7: Web Frontend Architecture.
- Latent Factor State Equation ():