Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

OLX Tech 16 min read Case study mediumAdept

Correlation Lied to Us: Rethinking Product Impact with Causal Inference

Naive comparisons at OLX suggested premium ad packages performed worse than cheaper ones, because sellers self-select into packages and the ads differ in price, mileage, brand and other traits. Propensity score matching with a regularized XGBoost classifier paired comparable vehicle ads across tiers. Matching cut overall standardized mean difference from 0.326 to 0.059, and a week-by-week divergence in performance served as behavioral validation. The matched estimates show uplift growing with the number of extra boosts (+17.6% for Package 1→2, +97.4% for 1→4), and these were checked against a randomized A/B test of 1 vs 2 boosts, with PSM positioned as the scalable alternative to running many experiments.

Assumes: basic statisticsA/B testingclassification models

Related posts

  • Using Propensity Score Matching to Uncover Shopify Capital’s Effect on Business Growth

    Shopify Engineering hardMaster

    Shopify estimated the causal effect of Shopify Capital on merchant sales using propensity score matching, treating US first-time Capital adopters in January 2019 as the treatment group and Canadian shops that later pre-qualified (when Capital wasn't yet available in Canada) as the control. Log-transformed shop covariates fed propensity scores, followed by greedy nearest-neighbour caliper matching, with balance checked via standardized mean differences, love plots, eCDF/density plots and variance ratios. A simple regression on log1p six-month GMV found a +36% geometric-mean sales lift, with a bootstrapped 95% confidence interval of 13% to 65%.

  • Improving Instagram notification management with machine learning and causal inference

    Meta Engineering mediumAdept

    Instagram replaced click-through-rate filtering for daily digest story notifications with a neural uplift model that estimates the incremental effect of sending versus not sending on user activity. The model was trained on data from a randomized experiment that dropped eligible notifications with 50% probability, and sending was framed as a budget allocation problem that favours high-uplift notifications. Because uplift scores drift online, raw estimates pass through an online quantile service that maps them to a uniform distribution while preserving order, so comparing against a fixed rate r keeps sending volume stable. The result was substantially fewer notifications than CTR-based filtering with no drop in engagement.

  • When Can You Ship on Offline Evals Alone?

    Spotify Engineering hardMaster

    Shipping AI changes on offline evals alone, without A/B tests, can bound the risk of harming online metrics only under strong assumptions: a homogeneous, exchangeable corpus of paired offline/online effects, known measurement error, and LLM-judge bias that doesn't depend on the treatment arm. Ignoring measurement noise badly attenuates the observed offline-online correlation (24% naive R² vs 60% true in the worked example), and pooling heterogeneous experiments can produce Simpson's-paradox false surrogacy. The proposed decision gate ships or kills only on sufficiently strong eval effects, with thresholds that scale with surrogate strength, routes the middle to A/B tests, and keeps a random audit pool to detect drift. Spotify still pairs offline evals with online experiments.

  • Making Ads Count: Using MMoE and Auxiliary Tasks to Better Connect Buyers & Sellers

    Etsy Code as Craft hardMaster

    Etsy's Ads Search ranking model replaced its shared-bottom multitask architecture (DCN feature crossing plus CTR and post-click conversion towers with Platt-scaled calibration) with a Multigate Mixture of Experts layer, adding add-to-cart as an uncalibrated auxiliary task. Gate temperature scaling (T > 1) fixed poor expert utilization and sharing where expert dropout did not, and a mix of DCN- and MLP-based experts beat MLP-only experts. Favorites as an auxiliary task caused negative transfer and were dropped. Offline, purchase PR AUC rose 3.5%, click PR AUC 1% and purchase ROC AUC 0.5%. Online, purchases and calibration for auto-bidding improved while model size stayed flat and inference got cheaper.

  • 10 Lessons Learned From Online Experiments

    Shopify Engineering mediumAdept

    Ten practical lessons from a year of online A/B experiments on Shopify's multi-currency, geolocation and translation features. Randomization units should be independent (user rather than session, to avoid carryover), and simulations are a fast way to check statistical worries such as false-positive inflation when randomization and analysis units differ. A/A tests with redirects surfaced sample ratio mismatch caused by bots and client-side pageview logging, and in another experiment SRM traced to cookie-based qualification logic flipped the result from negative to positive. Other lessons: understand your data pipeline and log generously, peek at results (without stopping early) to catch outliers like a single high-volume store, and slice results by segment because the overall number is only an average.

The quest for software engineering knowledge.

Look:
Layout: