Skip to content
Claudio Cabrera
Chapter 1 · Component 2 · 29:00src/domain/spatio_temporal.py

Spatio-Temporal Covariance & Lohr Survey De-Biasing

Detrended spectral PCA, Kronecker-separable DSTM transitions, and Horvitz-Thompson geographic bias correction

In This Component

Naive sample covariance estimation over high-growth marketplace logs suffers from secular trend confounding: platform onboarding growth inflates the first principal component () and induces spurious correlations between unrelated product categories.

Secular Detrending & Kronecker-Separable DSTM

To isolate true cross-category co-movement across the Top- () categories over operational weeks, Aegis decomposes weekly demand into secular platform trajectory, calendar seasonality, and stationary residuals:

Spectral decomposition reconstructs correlated Monte Carlo scenarios with only 2.16% Frobenius relative error.

To prevent dimensional rank deficiency when modeling joint hub-by-category dynamics across hubs and categories ( state space with weekly observations), the Wikle Dynamic Spatio-Temporal Model (DSTM) enforces Kronecker separability on the innovation covariance:

Continuous weekly innovations modulate discrete order-level SKU arrivals via a Hierarchical Log-Gaussian Cox Process (LGCP).

Sharon Lohr Finite Survey Sampling & De-Biasing

Because Southeast Brazil (São Paulo) generates 42–47% of historical platform traffic, Aegis anchors stratum inclusion probabilities against external IBGE demographic frames, computing unbiased Horvitz-Thompson regional totals and Neyman optimal allocations: