Industry–Academia Collaboration Project

Product Search Ranking Prediction and Comparative Advantage Analytics for E-commerce (Coupang)

Growth Hackers x ABetter  |  2025

Project Background & Objectives

Developed an end-to-end analytical and modeling system for strategic products sold on Coupang, Korea's dominant e-commerce platform. The project had two parallel tracks:

  1. A comparative advantage analysis identifying which product-level levers — price, reviews, advertising review actions, and search volume — actually drive conversion and order volume, and how
  2. A search ranking prediction model to anticipate a product's exposure rank under a given keyword so that operational and marketing decisions could be made proactively rather than reactively

Track 1. Comparative Advantage Analysis

1-1. Price Sensitivity Analysis

Objective: Quantify the causal effect of price changes on 7-day order volume, separately testing three price-related variables — recent daily price change, recent 7-day cumulative price change, and the previous day's absolute price level.

Methodology — Panel OLS with Fixed and Random Effects:

Product-level sales data is inherently panel structured: repeated observations of the same products over time. Naively regressing order volume on price changes conflates the effect of price with baseline order level differences across products. Fixed Effects (FE) regression removes this by demeaning within each product entity, isolating the within-product variation driven by price. Random Effects (RE) was estimated alongside FE, treating product-specific effects as draws from a population distribution — allowing comparison via the Hausman test to determine which specification is appropriate.

This specification was chosen specifically because it removes time-invariant product-level confounders (brand recognition, product quality, category positioning) that would otherwise bias the price coefficient estimates.
1-2. Negative Review Threshold Analysis

Objective: Identify whether there exists a critical threshold in the proportion of negative reviews beyond which CVR (conversion rate) drops significantly, and estimate that threshold per product.

Methodology — Single Turning Point Regression (Piecewise Linear / Hinge Model):

A piecewise linear model with a single structural break was fit to the relationship between negative review proportion and CVR:

$$y = a + b_1 x + b_2 \cdot \max(0,\, x - \tau)$$

The breakpoint τ was estimated via grid search — at each candidate value, the model is fit and the residual sum of squares recorded; τ is set to the value that minimizes RSS. This produces an estimate of the review proportion at which the slope of CVR changes, without assuming a parametric functional form for the relationship.

The model was fit separately per product, restricted to products with at least 100 cumulative reviews and data points with at least 100 daily impressions — thresholds chosen to ensure CVR estimates are stable enough that the slope change reflects a real behavioral shift rather than sampling noise.

1-3. Advertising Review Action Effectiveness Verification

Objective: Distinguish advertising-induced reviews from organic reviews, define a detection rule for review action events, and evaluate whether review actions produce a measurable, lasting lift in pure sales.

Advertising reviews were distinguished from organic reviews based on review text length and content features. A rolling 7-day advertising review ratio was defined:

$$\text{Ad Ratio} = \frac{\text{Ad Reviews (7-day rolling)}}{\text{Total Reviews (7-day rolling)}}$$

A review action event was flagged when the Ad Ratio exceeded a product-specific threshold calibrated as follows: for products with no known current review action, the maximum Ad Ratio observed when daily advertising reviews ≥ 10 was recorded; this value was multiplied by 1.05 to create a conservative detection threshold. Both daily advertising reviews ≥ 10 and weekly rolling reviews > 70 were required to trigger the flag — the compound condition reduces false positives from short-duration noise spikes.

To isolate the causal effect of review actions on actual demand, pure sales were constructed by subtracting the advertising review count from total sales:

$$\text{Pure Sales} = \text{Sale Amount} - \text{Ad Reviews}$$

Week-over-week pure sales growth (growth_ratio = curr_pure_sales / prev_pure_sales × 100) was computed around detected action events to evaluate whether action periods produced measurable lift beyond the advertising review count itself.

1-4. Search Volume — Sales Volume Relationship Analysis

Objective: Establish whether and how search volume leads or lags sales volume for each strategic product, and classify products into relationship typologies to support differentiated action-setting strategies.

Step 1 — Time Series Decomposition and Automatic Tagging:

Sales time series were decomposed additively into Trend (T), Seasonality (S), and Residual (R) components:

$$y_t = T_t + S_t + R_t$$

Variance-based contribution ratios and Hyndman's strength indicators were computed:

$$\text{Trend Strength} = 1 - \frac{Var(R)}{Var(T+R)}, \quad \text{Seasonality Strength} = 1 - \frac{Var(R)}{Var(S+R)}$$

ADF (Augmented Dickey-Fuller) tests were run on residuals to check stationarity, and residual ACF was inspected for significant local maxima — indicating residual cyclicality not captured by the decomposition. Based on these metrics, each product was auto-tagged into one of four time series types (Seasonality-driven, Trend-driven, Event/Irregular-driven, Mixed) and one of three residual pattern types (No significant pattern, Cyclic, Unstable/Non-stationary).

Step 2 — Outlier Treatment and Stationarity:

Sales data was winsorized from above only, using the more conservative of two caps:

  • 99.5th percentile
  • median + 7 × MAD

This suppresses extreme outlier influence while preserving order, dynamics, and the complete time series structure. Non-stationary series were first-differenced before further analysis.

Step 3 — Quantitative Relationship Metrics:

Cross-Correlation Function (CCF): Spearman rank correlations between search volume at lag k and sales volume at time t:

$$r_k = \text{corr}(\text{rank}(x_{t-k}),\, \text{rank}(y_t))$$

Key outputs: best_lag_weeks (lag at maximum correlation) and ccf_peak_corr (correlation magnitude at that lag).

Granger Causality Test: Tests whether past values of search volume contain predictive information about sales beyond what past sales alone provide:

$$y_t = a + \sum_{i=1}^{L} \alpha_i y_{t-i} + \sum_{i=1}^{L} \beta_i x_{t-i} + \epsilon_t$$

Significance of the $\beta_i$ terms (p < 0.05) constitutes Granger causality from search to sales. Both directions were tested to distinguish unidirectional from bidirectional relationships.

ARDL (Autoregressive Distributed Lag) Model: Captures the cumulative, multi-period effect of a search volume change on sales:

$$y_t = a + \sum_{k=0}^{p} b_k x_{t-k} + e_t$$

Key outputs: adl_sum_beta_std (total cumulative effect in standard deviation units) and adl_sig_lags (number of individually significant lag coefficients at p < 0.1).

Step 4 — Model Selection by Integration Order:

  • Both I(0): Granger + ARDL (short-term predictive causality + long-term elasticity both estimable)
  • Both I(1)+, same order: Granger only (no cointegration assumed; short-run predictability only)
  • Different integration orders: ARDL only (long-run elasticity estimation only)

Step 5 — Product Classification:

  • Group A: Unidirectional Granger causality (search → sales only); search increases drive near-term sales
  • Group B: ARDL long-run elasticity significant; sustained search levels form the base demand floor
  • Group C: Bidirectional Granger causality (search ↔ sales); positive feedback loop between search and sales
  • Group D: No significant Granger or ARDL relationship; search and sales dynamics are decoupled
  • Group E: Insufficient observations for reliable estimation
  • Group F: Negative long-run elasticity (≤ −0.3); search increases associated with sales declines (data quality / reverse-causality flag)
This classification directly maps to differentiated action-setting logic: Group A products benefit from search volume investment for near-term conversion; Group B products require sustained baseline search maintenance; Group C products have self-reinforcing dynamics where any positive shock compounds.

Track 2. Search Ranking Prediction Modeling

2-1. ML Baseline — LightGBM Multi-Class Classifier

Objective: Build an interpretable baseline model for ranking prediction, identify the features most predictive of rank tier, and generate business insights to inform the deep learning model's feature set.

Rank classification: Products were binned into three tiers — Tier 1 (rank 1–10), Tier 2 (rank 11–36), Tier 3 (rank 37+).

Feature engineering categories:

  • Numerical: sale price, total review count, Coupang sales rank, product name–keyword relevance score, price per unit
  • Transformed / interaction: distribution-based transformations and arithmetic combinations of base variables
  • Keyword-relative features: each product's standing relative to competing products under the same keyword
  • Time series features: lagged and rolling versions of key metrics

A separate LightGBM model was trained per keyword rather than a single universal model, because the features most predictive of rank differ by keyword.

Keyword-level feature selection — Backward Elimination: For each keyword, iteratively removed the feature whose removal most improved validation Macro F1-Score, until no removal improved performance. This produces a keyword-specific optimal feature subset.

Hyperparameter optimization — Optuna (Bayesian optimization): After feature selection, Optuna was used to optimize hyperparameters per keyword, maximizing validation Macro F1-Score. Bayesian optimization was chosen over grid/random search because the search space over LightGBM hyperparameters is high-dimensional and correlated.

Macro F1-Score: 0.69

Precision/Recall: 0.71/0.73 (Tier 1) · 0.65/0.63 (Tier 2) · 0.69/0.70 (Tier 3)

2-2. DL Model — MLP-based Position-Aware ListNet

Objective: Exceed the ML baseline by (1) learning nonlinear feature interactions, and (2) explicitly optimizing for ranking quality rather than classification accuracy.

Why Learning to Rank (LTR) over classification:

Standard multi-class classification treats each product's tier prediction independently, ignoring the relative ordering among products competing under the same keyword. The ListNet framework (Cao et al., ICML 2007) defines a listwise loss over the full permutation probability, directly optimizing for correct ordering.

Loss function — Position-Aware List MLE:

Standard ListMLE computes the log-likelihood of the ground-truth permutation π under the predicted scores s:

$$L_{\text{ListMLE}} = -\log P(\pi | s) = -\sum_{i=1}^{n} \log \frac{\exp(s_{\pi_i})}{\sum_{j=i}^{n} \exp(s_{\pi_j})}$$

Extended with a position weight α(i) that assigns higher penalties to misranking top positions:

$$L_{\text{Position-Aware ListMLE}} = -\sum_i \alpha(i) \log P(y_i | s), \quad \alpha(i) = \frac{1}{\log_2(1+i)}$$

The NDCG-inspired position weight ensures that swapping rank 1 and rank 2 incurs a much larger penalty than swapping rank 50 and rank 51.

Feature engineering categories:

  • Numerical: product rating, product name–keyword relevance, delivery lead time
  • Categorical: delivery method, product category, keyword — each embedded via learned category embedding layers, allowing the model to learn dense representations of high-cardinality categoricals rather than one-hot encoding
  • Temporal: day-of-week, week index, month — embedded similarly
  • Composite: popularity index, revenue index
  • Rank and lag features: lagged rank positions (Coupang rank, price rank, review count rank, sales volume rank) and lagged raw values — capturing momentum and historical rank trajectory

Architecture:

All numerical, composite, and rank/lag features were concatenated with the outputs of the categorical embedding layers. The combined vector was passed through Layer Normalization (stabilizing training by normalizing input distributions) and fed into an MLP. The MLP output is a scalar relevance score per product; ranking is determined by sorting products by their scores within each keyword query.

Training used query-level batching (all products under the same keyword constitute a single training instance for the listwise loss). The most recent day's data was held out as the test set; the preceding two days were used as the validation set for Optuna hyperparameter optimization. Hyperparameters optimized: hidden layer dimension, learning rate, number of epochs, and per-category embedding dimensions.

Macro F1-Score: 0.864

Precision/Recall: 0.998/0.765 (Tier 1) · 0.874/0.789 (Tier 2) · 0.821/0.992 (Tier 3)

25 percentage point improvement over the ML baseline, achieved with less than two weeks of training data and limited access to competitor product features.

Technical Stack

Python LightGBM Panel OLS (Fixed Effects / Random Effects) Piecewise Linear Regression (Hinge Model) Grid Search Additive Time Series Decomposition Hyndman Strength Indicators ADF Test ACF Analysis Winsorization (MAD-based) Cross-Correlation Function (CCF) Granger Causality Test ARDL Backward Elimination Optuna (Bayesian Optimization) MLP Category Embedding Layer Normalization ListNet Position-Aware List MLE Loss Learning to Rank