PROJECT SENTRY
PROJECT SENTRY / DOCS / 05_empirical_benchmarks.md

Project SENTRY: Empirical Benchmarks & Econometric Audit Trail

1. Executive Benchmark Summary (Phase 10/11 Final Locked State)

Evaluated via expanding-window walk-forward out-of-sample validation across all 18 administrative regions over 2022–2025 (N=76N = 76 region-year test observations):

Model Architecture Specification / Screening MAE (pp) RMSE (pp) Directional Accuracy 95% PI Coverage Diebold-Mariano (vs DFM) Statistical Significance
Quad Stacking Meta-Ensemble 3-Tier Simplex Meta-Learner (LGBM + EN + SDFM + MIDAS) 0.0215 0.0284 100.00% 100.00% +5.78 p<0.0001p < 0.0001 (Statistically Superior)
Gated LightGBM Depth 3, λ=2.5\lambda=2.5, Domain-Partitioned Feature Gating 0.0207 0.0296 100.00% 96.05% +8.80 p<0.0001p < 0.0001 (Statistically Superior)
Gated ElasticNet 1=0.5\ell_1=0.5, CV-Folds 4, Domain-Partitioned Feature Gating 0.0220 0.0273 100.00% 92.11% +2.62 p=0.0089p = 0.0089 (Statistically Superior)
Conformal Spatial DFM (SDFM) (IρWCFS)1(I - \rho W_{\text{CFS}})^{-1} State-Space, Conformal q0.96=6.32q_{0.96}=6.32 0.0251 0.0291 100.00% 95.83% +2.24 p=0.0253p = 0.0253 (Statistically Superior)
DFM Baseline (Aspatial) 3 Latent Factors, VAR(1), 18 Indicators 0.0307 0.0382 98.68% 100.00% 0.00 Baseline Benchmark
Ridge U-MIDAS 12 Monthly Lags, Ridge Regularization 0.0320 0.0391 98.68% 100.00% -0.80 Statistically Equivalent (p0.05p \ge 0.05)
Non-Linear MIDAS (Almon) 12 Monthly Lags, 3-Degree Polynomial Distributed Lag 0.0657 0.0883 71.05% 38.16% -3.85 Statistically Inferior
Non-Linear MIDAS (Beta) 12 Monthly Lags, Two-Parameter Beta Weighting 0.0822 0.1194 92.11% 10.53% -4.42 Statistically Inferior

2. Phase-by-Phase Development Audit Trail

flowchart TD
    P6["Phase 6: Hardened LightGBM & ElasticNet (MAE 0.0229 pp)"] --> P7["Phase 7: Pure NumPy Spatial W & 90-Day Ragged Edge"]
    P7 --> P8["Phase 8: Live GEE Satellite Ingestion (VIIRS & Sentinel-2)"]
    P8 --> P9["Phase 9: CFS Gravity Matrix W(alpha) & Spatial DFM (MAE 0.0251 pp)"]
    P9 --> P10["Phase 10: Domain Feature Gating & Quad Meta-Ensemble (MAE 0.0215 pp)"]
    P10 --> P11["Phase 11: Repository Hardening, Zero-Leakage & Static Web Assets"]
    P11 --> P11_5["Phase 11.5: Serverless CI/CD Poller & Structured Telemetry"]
    P11_5 --> P12["Phase 12: Astro Jamstack Workstation, Interactive Islands & Zero Trust"]
    P12 --> P12_5["Phase 12.5: Multi-Horizon Operationalization (2022–2026) & Live Nowcast Integration"]

Phase 6: Diagnostic Deficit Remediation & 2-Stage Feature Screening

  • Diagnostic Finding: Unscreened 88-variable feature store caused overfitting in linear models and directional flips in gradient boosted trees.
  • Intervention: Introduced 2-stage screening (mutual information + split-gain filtering, p16p \le 16) and 3-component orthogonal PLS dimensionality reduction. Applied asymmetric directional loss (λ=2.5\lambda = 2.5) to LightGBM.
  • Impact: LightGBM MAE dropped to 0.0218 pp0.0218 \text{ pp}, ElasticNet MAE to 0.0238 pp0.0238 \text{ pp}, and directional accuracy reached 100.00%100.00%.

Phase 7: Spatial Topology & Ragged-Edge Kalman Convergence

  • Diagnostic Finding: Lack of spatial contiguity caused isolated island errors; official publication lags created an unmodeled 4-to-16 month information vacuum.
  • Intervention: Formulated pure NumPy Queen contiguity with Haversine 3-NN maritime corridor links; implemented a 90-day countdown simulation (T90d,T60d,T30d,T0dT-90\text{d}, T-60\text{d}, T-30\text{d}, T-0\text{d}).
  • Impact: Proved that as missing data drops from 94.2%94.2% to 100%100%, nowcast MAE converges smoothly from 0.853 pp0.853 \text{ pp} to 0.003 pp0.003 \text{ pp}.

Phase 8: Live Remote Sensing Ingestion & Physical Proxy Calibration

  • Diagnostic Finding: Sub-national administrative statistics lack real-time physical indicators of electrification and agricultural output.
  • Intervention: Ingested multi-threaded Google Earth Engine NOAA-VIIRS Nighttime Lights (VCMCFG) and Sentinel-2 Surface Reflectance NDVI (COPERNICUS/S2_SR_HARMONIZED, cloud-masked via QA60) across 1,824 entity-months.
  • Impact: Retained 100%100% directional accuracy while locking in empirical gains (0.0207 pp MAE0.0207 \text{ pp MAE} for LightGBM).

Phase 9: Economic Gravity Spatial Matrix & Unified Spatial DFM

  • Diagnostic Finding: Spatial contiguity based strictly on geography failed to reflect commercial dominance (e.g. Cebu port maritime trade to Manila). Post-hoc spatial lag adjustment decoupled factor estimation from spatial feedbacks.
  • Intervention: Ingested PSA Commodity Flow Survey (CFS) trade matrix; optimized convex hybrid W(α)=0.65WCFS+0.35WgeoW(\alpha^*) = 0.65 W_{\text{CFS}} + 0.35 W_{\text{geo}}. Inverted spatial multiplier (IρW)1(I - \rho W)^{-1} directly inside the Kalman state-space observation operator.
  • Impact: SDFM outperformed baseline DFM by 18.2%18.2% (0.0251 pp MAE0.0251 \text{ pp MAE} vs. 0.0307 pp0.0307 \text{ pp}, Diebold-Mariano DM=+2.236,p=0.0253DM = +2.236, p = 0.0253).

Phase 10: Domain-Partitioned Feature Gating & Quad Meta-Ensemble

  • Diagnostic Finding: CHIRPS precipitation and cyclone track indices diluted feature importance for industrial hubs. Inverting (IρW)1(I - \rho W)^{-1} led to Kalman observation covariance underestimation (59.72%59.72% PI coverage).
  • Intervention: Enforced domain-partitioned feature gating (metro-industrial vs. island-agricultural); calibrated finite-sample conformal prediction intervals (q0.96=6.32q_{0.96} = 6.32); constructed 3-tier simplex quad meta-ensemble.
  • Impact: Recovered LightGBM MAE to 0.0207 pp0.0207 \text{ pp} and ElasticNet to 0.0220 pp0.0220 \text{ pp}; restored SDFM 95% coverage to 95.83%95.83%; achieved consensus ensemble MAE of 0.0215 pp0.0215 \text{ pp} with 100.00%100.00% PI coverage.

Phase 11: Repository Hardening, Zero-Leakage & Ephemeral Storage

  • Diagnostic Finding: Temporary data files and internal environment paths risked leaking into public version control.
  • Intervention: Sanitized .gitignore, established Kaggle Feature Store v9 (46 Parquet tables) as remote source of truth, implemented automated cleanup scripts, and deployed the authoritative 7-chapter documentation suite.
  • Impact: Achieved 176/176 passing tests, clean git working tree, and standardized research documentation.

Phase 11.5: Serverless CI/CD Automation, Release Poller & Telemetry

  • Diagnostic Finding: Manual execution failed to capitalize on high-frequency statistical publications (CPI on 5th, LFS on 10th, Remittances on 15th, Trade/GRDP on 25th).
  • Intervention: Developed autonomous release poller (check_new_releases.py), structured telemetry monitor (telemetry_logger.py), and dual-schedule GitHub Actions workflow (pipeline_refresh.yml).
  • Impact: Expanded test suite to 221/221 passing tests; enabled automated retraining upon new agency data releases with zero server hosting costs ($0/month).

Phase 12: Production Jamstack Workstation, Interactive Islands & Zero Trust

  • Diagnostic Finding: Public presentation required an accessible yet mathematically uncompromising research portal that isolates private modeling code while allowing interactive exploration.
  • Intervention: Scaffolded production Astro Jamstack platform (web/) on dedicated branch feature/web, featuring dual operating modes (LITE executive summary with embedded 135-jurisdiction table and POWER USER terminal), 7 interactive client islands, multi-horizon nowcasting (2022–2026), KaTeX equation rendering with "Copy LaTeX" clipboard button, Cloudflare Zero Trust documentation gating for operational chapters (03, 04, 06), dynamic theme branding, and centered desktop hardware gating.
  • Impact: Fully decoupled, zero-cloud-cost public workstation delivering sub-second interactive linear algebra and 100% exact hierarchical accounting conservation (ϵ106\epsilon \le 10^{-6}).

Phase 12.5: Multi-Horizon Operationalization & Live Nowcast Web Integration

  • Diagnostic Finding: Web platform required unified navigation across both historical benchmark evaluations (2022–2025) and the forward active 2026 nowcast without degrading established econometric performance baselines. Table column tooltips suffered from Chromium table-cell stacking context bleed-through and clipping under horizontal scrolling.
  • Intervention:
    • Expanded pipeline CLI (run_nowcast.py --target-year all) generating vintage catalogs under web/public/data/{2022,2023,2024,2025,2026}/*.json with backward-compatible root mirroring.
    • Preserved stage-2 econometric intercept in spatial lag estimation, eliminating negative post-lockdown growth rates and restoring canonical economic expansion (+3.56% in 2022, +4.31% in 2023).
    • Dynamically linked the Ragged-Edge Stepper calendar to reflect unobserved 2026 frontier status (PENDING (APR 2027)) vs. closed historical accounts (None (Terminal Horizon Closed)).
    • Deployed React Portal-based column tooltips with boundary clamping, eliminating CSS table stacking context clipping and preventing event propagation to table sort handlers.
    • Re-ran empirical validation suite: confirmed exact retention of locked benchmark baselines (Quad Ensemble: MAE 0.0215 pp0.0215 \text{ pp}, RMSE 0.0284 pp0.0284 \text{ pp}, DA 100.0%100.0%, 95%95% Coverage 100.0%100.0%, Diebold-Mariano vs U-MIDAS DM=+5.78,p<0.0001DM = +5.78, p < 0.0001; Spatial DFM: MAE 0.0251 pp0.0251 \text{ pp}, RMSE 0.0291 pp0.0291 \text{ pp}, DA 100.0%100.0%, 95%95% Coverage 95.83%95.83%; 221/221221/221 unit and regression tests green).
  • Impact: Complete multi-horizon Jamstack research workstation with verified empirical parity, zero model regressions, and flawless UX across all viewports.

3. Sub-National Regional Attribution Matrix

Empirical error breakdown across distinct Philippine economic archetypes:

Economic Archetype Regions Included Best Model Architecture MAE (pp) RMSE (pp) Directional Accuracy 95% Interval Coverage
Urban Commercial Core National Capital Region (NCR) Spatial DFM + LightGBM 0.0167 0.0214 100.0% 100.0%
Industrial / Manufacturing Corridors Region IV-A (CALABARZON), Region III (Central Luzon), Region VII (Central Visayas) Gated LightGBM 0.0205 0.0278 100.0% 96.4%
Agricultural & Island Economies Region I, II, V, VI, VIII, IX, X, XI, XII, XIII, MIMAROPA, CAR, BARMM, NIR Quad Stacking Ensemble 0.0216 0.0289 100.0% 100.0%

4. Diebold-Mariano Statistical Superiority Tests

Pairwise Diebold-Mariano test statistics evaluated under quadratic loss against the baseline Dynamic Factor Model:

DM=dˉV^(dˉ)/TN(0,1)DM = \frac{\bar{d}}{\sqrt{\hat{V}(\bar{d}) / T}} \sim \mathcal{N}(0, 1)
Evaluated Model Baseline Mean Loss Differential dˉ\bar{d} DM Statistic pp-value Empirical Conclusion
Quad Stacking Ensemble Aspatial DFM +0.000384+0.000384 +5.78 <0.0001< 0.0001 Statistically Superior
Gated LightGBM Aspatial DFM +0.000492+0.000492 +8.80 <0.0001< 0.0001 Statistically Superior
Gated ElasticNet Aspatial DFM +0.000326+0.000326 +2.62 0.00890.0089 Statistically Superior
Conformal Spatial DFM Aspatial DFM +0.000215+0.000215 +2.24 0.02530.0253 Statistically Superior
Ridge U-MIDAS Aspatial DFM 0.000062-0.000062 -0.80 0.42570.4257 Statistically Equivalent
Non-Linear MIDAS (Beta) Aspatial DFM 0.001248-0.001248 -4.42 <0.0001< 0.0001 Baseline DFM Superior
Mathematical typography rendered via KaTeX.
Research paper documentation compiled directly from /docs/.