Leveraging PyFixest for High-Cardinality Marketplace Modeling at Instacart
Deep dive 13 min +130 XP
Controlling for high-cardinality fixed effects (e.g. thousands of regions, shoppers or customers) makes standard OLS intractable, because each dummy variable expands the Gram matrix and matrix inversion scales as O(k³).