Skip to main content
QUICK REVIEW

[Paper Review] Thompson Sampling for Dynamic Pricing

Ravi Ganti, Mátyás A. Sustik|arXiv (Cornell University)|Feb 8, 2018
Advanced Bandit Algorithms ResearchDecision Sciences22 references15 citations
TL;DR

This paper proposes Thompson Sampling (TS) for dynamic pricing in e-commerce, replacing passive learning with active exploration to improve revenue. By sampling demand model parameters from a posterior distribution and optimizing prices daily, the Max-Rev-TS algorithm achieves statistically significant revenue gains—especially when applied to a sufficiently large fraction of items—demonstrating the first real-world deployment of active dynamic pricing in production.

ABSTRACT

In this paper we apply active learning algorithms for dynamic pricing in a prominent e-commerce website. Dynamic pricing involves changing the price of items on a regular basis, and uses the feedback from the pricing decisions to update prices of the items. Most popular approaches to dynamic pricing use a passive learning approach, where the algorithm uses historical data to learn various parameters of the pricing problem, and uses the updated parameters to generate a new set of prices. We show that one can use active learning algorithms such as Thompson sampling to more efficiently learn the underlying parameters in a pricing problem. We apply our algorithms to a real e-commerce system and show that the algorithms indeed improve revenue compared to pricing algorithms that use passive learning.

Motivation & Objective

  • Address the limitations of passive learning in dynamic pricing, where historical data is used without active exploration.
  • Develop and deploy an active learning algorithm for dynamic pricing that improves long-term revenue by balancing exploration and exploitation.
  • Demonstrate the feasibility and effectiveness of Thompson Sampling in a real production e-commerce system.
  • Investigate how the ratio of actively learned items to total items (signal-to-noise ratio) affects performance.
  • Compare active learning (Max-Rev-TS) against standard passive learning (Max-Rev-Passive) in a real-world setting with measurable revenue outcomes.

Proposed method

  • Model demand as a parametric function of price, assuming a known functional form (e.g., log-linear) with unknown parameters.
  • Use a conjugate prior distribution over the demand model parameters to enable closed-form posterior updates via Bayes’ rule.
  • At each time step, sample a set of model parameters from the current posterior distribution to represent uncertainty.
  • Optimize the revenue function using the sampled parameters to determine the next price to test.
  • Apply the new price and observe the resulting demand, then update the posterior distribution using the observed data.
  • Repeat the process over a finite horizon, with the algorithm naturally balancing exploration (uncertain regions) and exploitation (high-reward regions).

Experimental results

Research questions

  • RQ1Can Thompson Sampling be effectively applied to real-world dynamic pricing in large-scale e-commerce systems?
  • RQ2How does active learning via Thompson Sampling compare to passive learning in terms of long-term revenue performance?
  • RQ3What is the impact of the signal-to-noise ratio (i.e., fraction of items updated via TS) on the performance of active dynamic pricing?
  • RQ4Why does Max-Rev-TS show inconsistent performance across different product baskets in production?
  • RQ5Under what conditions does active learning lead to statistically significant revenue improvements over passive learning?

Key findings

  • Max-Rev-TS achieved a statistically significant improvement in per-item revenue on basket $β_2$, with a p-value of $3.13 \times 10^{-7}$ for the 10-day filter and a mean revenue gain of 1.649 per item.
  • On basket $β_1$, the algorithm showed a revenue decrease per item, but the result was not statistically significant (p-value = 0.00099 for 20-day filter), suggesting noise or poor signal-to-noise ratio.
  • The signal-to-noise ratio, measured as $|\mathcal{B}_{TS}| / |\mathcal{B}_{\textsc{Max-Rev}}|$, was 0.004 for $β_1$ and 0.1 for $β_2$, explaining the performance disparity.
  • When the fraction of items updated via TS was low (e.g., 0.4% in $β_1$), TS updates were too noisy to yield reliable improvements.
  • Even when TS improved performance on a subset, the overall Max-Rev solver could trade off gains in $β_{TS}$ against other items, potentially masking improvements at the system level.
  • The study demonstrates, for the first time, a real-world production deployment of active dynamic pricing using Thompson Sampling, showing measurable gains when the signal-to-noise ratio is sufficiently high.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.