Learning to bid and bundle: a posterior-sampling agent for online retail

Mohammadi, Hadi

–arXiv.org Artificial Intelligence 

An online retailer launching a perishable product bids for sponsored-search clicks, discounts a bundle with an always-stocked staple and displays its remaining stock, which raises willingness to pay. It knows neither how clicks respond to its bid nor how strong and dispersed its market is, and learns both over repeated seasons from data its own decisions censor: a zero bid reveals nothing about paid clicks, and choices follow only clicks. Each period it draws a market from an exact posterior and posts the bid and discount of that market's exactly solved season plan, so every action is one a fully informed seller could take. In a simulated online florist it has the lowest regret averaged over markets. In weak markets it gives up 12% to 23% of one season's revenue over 500 seasons, four to seven times less than drawing once per season. A planner acting on point estimates can stop bidding and never learn that bidding pays. The agent escapes after about three seasons on average, against fifty with one draw per season. Where displayed scarcity keeps willingness to pay above the posted price, the discount needs no learning. Customers waiting for the discount to return to its recent level look like lost sales, so frequent waiting makes the agent underrate its market. One discount per season removes waiting at a cost of 5.9% of clairvoyant revenue in a weak market and none in a strong one. Keywords: Online retailing, Sponsored search advertising, Bundle pricing, Dynamic pricing, Thompson sampling, Reinforcement learning, Scarcity effect 1. Introduction Online retailers buy traffic through sponsored search, offer a second item at a discount on the product page, and show shoppers how many units are left. Each lever matters on its own: paid listings partly take traffic that organic results would otherwise bring (Moshary, 2025), scarcity cues raise booking intentions on hospitality platforms, partly through perceived value (Teubner & Graul, 2020), and when to disclose limited inventory is itself a decision that shapes sales (Z. An online florist with fresh-cut bouquets to sell before the week is out uses all three. Each period it bids for the search keyword that brings shoppers to its page and sets a discount on a bouquet bought with a glass vase, while the page shows how many bouquets are left. With demand known, the bid and the discount can be planned together by dynamic programming (Mohammadi, Akrami, et al., 2026; Tunuguntla et al., 2019; Ye et al., 2015). At launch the florist knows little. It does not know how strongly clicks respond to its bid, how much its shoppers will pay, or how dispersed they are, and it has to learn all three from the clicks and sales that its own bids and discounts generate. Two features make this harder than learning a posted price. The instruments censor the data.