A Step-by-Step Guide to Real-Time Pricing 查看中文版
第 1 节
For digital retailers, the ability to revise prices swiftly and on a large scale has emerged as a decisive differentiator—especially during periods of inflation, when prices fluctuate more frequently. Many retailers scrape rivals’ websites for price information and use it to set their own prices manually or automatically, often using a strategy of charging X dollars or X percent less than the lowest-price competitor. However, retailers that use such simple heuristics miss significant opportunities because they fail to tailor their responses to product availability and demand, among other factors.
Recognizing this, more retailers are now applying machine-learning models to guide their pricing decisions. The algorithms associate price changes with sales changes by mining waves of historical data on purchases, prices, and product characteristics. Despite this sophistication, research shows that such efforts achieve, on average, an improvement in revenues or profits of 1% or less. By relying on historical data to set prices, for example, a retailer might unnecessarily match a competitor’s low price for an item that the rival does not have in stock. Or it might match a low price even though factors other than price are the main drivers of customers’ purchase choices, such as the product’s quality or brand reputation.
Some retailers have figured out a way to overcome these challenges and, as a result, have realized double-digit growth in revenues and profits. They have shifted away from relying on manual decision-making based on historical sales to using automated systems driven by sophisticated algorithms that consider a range of factors, allowing them to optimize prices in real time.
In this article, we describe a step-by-step process for building an AI-powered pricing model that starts by understanding how consumers decide what and where to buy, conducting experiments to measure price elasticity (how sensitive the demand for a product is to price), and then applying optimization tools to set prices that maximize revenue or profit. Thanks to the rapid growth of electronic shelf labels, our process can also be applied in brick-and-mortar retail settings. It can be especially useful in pricing perishable goods such as food and fashion, where retailers must dynamically adjust the prices of products nearing their expiration dates to incentivize faster sales and reduce waste.
To illustrate our process, we rely primarily on our experiences with two companies with whom we worked as academic partners. The first was a multibillion-dollar Chinese online retailer that experienced meteoric growth driven by an increasingly broad product assortment, geographic expansion, and aggressive pricing. It positioned itself in the market as a low-price merchant and beat or matched its competitors’ prices. It scraped competitors’ websites daily but set prices manually for the most part. The second was a leading U.S. online retailer with annual revenues of several billion dollars. It had a dedicated pricing analytics team, and nearly half of its products were priced algorithmically. Like the first retailer, it scraped competitors’ websites, daily for fast-moving SKUs and weekly or semiweekly for slower-moving SKUs.
Here is our seven-step process, which you can use to unlock the full potential of your own dynamic pricing system.
第 2 节
1. Choose Your Focus
Start by thinking about what products you want to focus on: top sellers, midrange sellers, or long-tail products. Make your choice based on how concentrated your sales are. If you generate the majority of your sales (say, more than 80% of total revenue) from a handful of products, begin your implementation with those top sellers. If your sales are not concentrated—as is the case for home decor and grocery retailers, for example—focus on midrange sellers or long-tail products. In such scenarios, you need to have (or be ready to build) the analytics capability required to do dynamic pricing for a vast number of products.
Our work with the Chinese online retailer—a market leader in baby and mom products such as feeding bottles, diapers, and breast pumps—began when its chairman asked us whether always matching the lowest-price competitor was a good strategy. He and his executives questioned the need to price match for every single product they sold and to follow competitors’ moves even when it was evident that a rival had made a pricing mistake (by setting prices either unrealistically high or low). Before engaging with us, the retailer’s pricing decisions were largely made manually by product managers, each of whom oversaw a few dozen product lines. The managers closely followed the trends of relevant brands and products, such as their popularity among consumers, the introductions of new products (or new versions of existing products), as well as competitors’ prices. The product managers would then determine on a daily or weekly basis what prices they would charge for each product. Given that this manual process was extremely time-consuming, they typically paid more attention to high-volume SKUs and only occasionally adjusted the prices of others.
We began our work with feeding bottles. This subcategory was dominated by a handful of products offered by a few domestic and international brands. We focused on the top 30 SKUs, which represented more than 80% of the total revenue for the subcategory. The implementation of our AI-powered pricing model ultimately led to an 11% increase in revenue for these top sellers while maintaining the gross margin for the category. We then focused on several other categories, such as small appliances and kitchen hardware, where a handful of fast-moving products accounted for the majority of the revenue. These additional implementations achieved revenue increases of up to 19% without compromising profit margins.
The U.S. online retailer’s sales—primarily home furnishings such as beds, coffee tables, rugs, and decor—were not concentrated among a few top sellers. In each subcategory, the company carried from a few hundred to thousands of SKUs, and its sales were fairly evenly distributed among the products it sells.
Before engaging with us, it used an algorithm to price about half of its SKUs automatically. However, it had only recently started scraping competitors’ websites for their prices and was wondering how best to respond to their price changes. We quickly implemented a dynamic price-response system for more than 10,000 products. During a month-long testing period it led to a 15% increase in revenue and a 10% increase in profit for four categories in the pilot: beds, ottomans, coffee tables, and barstools.
The key trade-off in the focus choice between top sellers or a broad product range is algorithm sophistication versus scalability. A sophisticated system usually involves complex modeling techniques, such as nonlinear models, which are great at understanding the complicated ways consumers make decisions and giving accurate answers to pricing questions. But these models are difficult to work with when you have lots of SKUs. For example, a linear model dealing with thousands of variables or SKUs can optimize the decisions it produces within a few seconds; a complex model can take days or weeks even with the most advanced computing capabilities.
Retailers can manage this trade-off at the category level: In categories whose sales are dominated by a few products, you can use a sophisticated model; in categories whose sales are highly distributed, use a scalable model. Within a category, you can implement both types of algorithms by adopting the standard ABC classification system. (Group A is the 20% of SKUs that account for 80% of revenues, group B is the 30% of SKUs that generate 15% of revenues, and group C is the 50% of SKUs that generate 5% of revenues.) Apply a more sophisticated approach for group A items, which are the main contributors to revenue or profit, and a scalable approach for groups B and C.
第 3 节
2. Build a Consumer Decision Model
Before you can make good pricing decisions, you need to understand how your consumers make purchasing decisions. People are always making choices: which products to buy (Philips Avent versus Dr. Brown’s feeding bottles, anti-colic feeding bottles versus regular ones) and where or from whom to buy them (from you or one of your competitors). Obviously, price is a consideration in their decisions, but it’s not the only one. Other factors include product quality, product availability, the reputation of the brand, customer reviews, supplier reliability, purchasing convenience, and the return and exchange policy of the retailer. Moreover, each consumer approaches purchasing decisions differently. Some may be willing to pay more for a reputable brand; others may be bargain hunters. This means that unless most of your customers are looking for the lowest price across retailers, it may not be a good idea to always match competitors’ prices.

Butenkow/Getty Images
In the case of the Chinese retailer, we fed into an algorithm a few months of price and sales information for the SKUs we’d identified in Step 1, its competitors’ prices for the items, and data on whether individual SKUs for all companies were in stock or not. The algorithm was then able to determine what proportion of consumers preferred to buy from each of the retailers regardless of price and product availability. (In our implementation we didn’t try to find out what was driving those preferences, but retailers can use a similar approach for factors other than price and product availability.)
Once you have a good sense of how your customers are making their purchase choices, you can create a consumer decision model, which is a formula that predicts product demand given your and your competitors’ prices along with other key factors, including product availability and the circumstances under which customers are making their purchase decision. For example, you’ll get better results from a model that tells you how many units of a bed frame you can sell at $195 on a Friday evening when your competitor priced it at $200 than from a model that considers only the competitor’s price. Whether simple or complex, all models should do one thing: tell you how to price your products in order to achieve the outcomes you care about.
Using the consumer decision model we developed for the Chinese retailer, we ran an implementation that predicted the sales of every top-selling product given the retailer’s and its competitors’ prices. The model took into account product characteristics like brand and the intended age range for each type of bottle and product availability at each competitor on a given day. It also considered the prices of products other than baby bottles on the website, because customers often browsed a range of products before making a purchase. In addition, the model factored in days of the week: Customers who visited on Monday were less affected by prices than those who visited on Sunday.
For the U.S. online retailer, we used a simplified model to make it more scalable. The model predicted the sales of a particular product looking only at its price and availability and the prices and availability of the same product on competitors’ websites. This simplification allowed the algorithm to quickly scale up to thousands of products. As these two examples show, model parameters can and will vary by product characteristics and retailer. For instance, the demand for a product with higher customer reviews may have a lower price elasticity, and consumers may be more sensitive to Amazon’s prices than to Home Depot’s.
第 4 节
3. Experiment
Now that you have a formula describing how your consumers make purchase decisions, you need to determine the values of the parameters by fitting the formula to your data. The most important variable is price elasticity: the percentage change in demand that results if you raise the price of a product by 1%. Knowing the price elasticity of each of your products is crucial in setting prices intelligently. If a product has a low elasticity (a price increase results in very little change in demand), you do not need to bother tracking competitors’ prices and matching them. But if your consumers can be lured away by competitors that price a penny lower, then you probably have to beat or at least match that price.
To measure elasticity, you need to systematically vary prices over time and see how consumers react. Many people leave out this step in their implementation of algorithmic pricing, which prevents them from realizing substantial revenue and profit gains. You may ask: Why do I need to experiment when I already have historical data on sales, prices, and product characteristics? Isn’t it enough to learn price elasticity from this data? And shouldn’t a good machine-learning program be able to fit a regression line between sales and price given product characteristics? The answer to these questions is “no,” for two reasons.
Prices from the historical data do not vary enough to calculate price elasticity—either the price itself hasn’t varied, or it has followed competitors’ prices so closely that the relative price hasn’t varied. Another problem with historical data is so-called confounders, factors that influence both price and demand but cannot be captured retrospectively. Suppose a retailer conducts a local marketing campaign for a brand and raises the prices of those products in anticipation of increased demand. Historical data could lead to the false conclusion that the higher prices had caused the increase in demand. Experimentation is the best way to avoid these issues.

Butenkow/Getty Images
A common reason retailers hesitate to run price experiments is that they think they are risky: They feel like they are losing control of a crucial decision. But experiments are not risky if you do them right. In our work with both the Chinese and U.S. retailers, we conducted experiments carefully to minimize their potential business impact. In the implementation focusing on the Chinese retailer’s top sellers, we set a price schedule for the products before the experiment started, which specified a randomly selected price level close to the historical average for each product. Upward and downward price adjustments were balanced such that there was no systematic, directional deviation from historical prices. Prices were varied every three days instead of daily to maintain consumers’ perception of and confidence in the retailer’s prices.
In our experiment for the U.S. retailer, which involved more than 10,000 products, we took a different approach. We did not make a preset pricing schedule, because the company already had a pricing algorithm in place. Instead, we took the prices generated daily by the existing algorithm and added variations to them. The prices we chose in the experiment were not a wild draw; they were anchored in the price recommendations generated by the existing pricing system. The experiment thus inherited the intelligence of the company’s existing practices, which minimized risk while still allowing enough price variation to capture consumers’ decisions under alternative price points.
In both implementations, we limited the level of price variations to around 3% of the existing or historical prices, and none varied more than 5%, thus minimizing potential risks resulting from large deviations. The double-digit revenue and profit gains we achieved would not have been possible without these careful experiments to measure price elasticity. Retailers often worry that it is too costly to experiment, but our results show that it is even more costly not to.
第 5 节
4. Measure
Now it is time to marry the data with the model and price-elasticity information. Your objective is to find the best parameters that minimize error when you test your model against your historical sales. Keep in mind that it is always more difficult to predict outcomes at a granular level than at an aggregate level. For example, daily sales are more difficult to predict than weekly sales, which means a 20% prediction error may be good for the daily sales of a given product but bad for its weekly sales.
In the initiative with the Chinese retailer, we found a wide range of price elasticities: Some were close to zero (price changes had no impact on demand), but most products had elasticities that ranged from -8 to -2. (An elasticity of -8 means that a 1% increase in price will result in an 8% decrease in demand.) The elasticities were correlated with the popularity of the product. The SKU with an elasticity of -8 was bought, on average, 22.5 times per day, and the SKU with nearly inelastic demand was bought only 1.8 times a day. We had similar findings at the U.S. retailer, whose niche, slow-moving furniture items had lower price elasticities than those of fast-moving ones. This makes sense. People are more aware of what is a good price for frequent purchases than they are for products they buy rarely. In supermarkets, for example, consumers are more exposed and sensitive to prices of popular products that are displayed at prominent locations and advertised often, like apples and bread, but fewer people may know the fair price of a particular specialty spice.
The variation in elasticities is also reflected in the perceived quality of the products. We found that imported baby-feeding bottles had lower average elasticities than domestically manufactured bottles, because the imported bottles were made by more-reputable manufacturers.
This step will also allow you to understand which competitors’ prices and stockouts had a more significant impact on your sales and hence require more monitoring and price matching. Not surprisingly, in our two initiatives, not all competitors had the same impact. Two of the four competitors tracked by the Chinese retailer had almost no impact on the company’s feeding-bottle sales. Two of the five competitors tracked by the U.S. retailer had twice the impact of the others.
第 6 节
5. Optimize
Now that you have populated your model with data, you are ready to find your best prices given competitors’ prices and the other factors mentioned above. A critical first step is to ask what you want to optimize: profit, revenue, or some combination of the two. Growth-stage companies tend to focus more on revenue; mature companies focus more on profit.
However, no retailer with whom we’ve worked or studied was ready to specify the relative weights they’d place on revenue versus profit. We have found that a better way to integrate these objectives is to use constrained optimization—that is, achieving the optimal goal within certain business constraints. For example, you might set your objective to maximize revenue without causing gross profit margins to fall below a specified level. When we worked with the Chinese retailer, it was selling feeding bottles at a 10% gross margin, on average. We optimized prices to maximize total revenue for the category while maintaining a categorical margin of at least 10%. Actual product margins after the optimization varied from -1% (sold at a slight loss) to 36%, depending on the item’s price elasticity. We matched the prices of the two primary competitors for products with high price elasticity; we typically did not price match with the two weakest competitors.
In our effort with the U.S. retailer, we also optimized revenue subject to a constraint on profit margin. The retailer’s executives liked this approach because it kept their pricing consistent with the company’s strategic positioning but didn’t require additional decisions to be made, such as coming up with weights on profit and revenue. In both implementations, we incorporated other necessary business constraints (for example, price floors and ceilings or manufacturer-imposed price ranges) as part of the optimization.
第 7 节
6. Test and Implement
Before rolling out your new pricing algorithm, it is important to test it in a controlled experiment. Assign products to two groups: the treatment group, for which you will use the new pricing algorithm to set prices, and the control group, for which you will set prices the old way. The impact of the algorithm can then be measured by the results of the treatment group relative to those of the control group.
You may ask: Is it really necessary to have a control group? Isn’t the impact simply the revenue increase produced by the new pricing algorithm? The problem is that you do not know what would have happened had you continued using the old method. In retailing, this “counterfactual” problem is amplified by the fact that most products tend to exhibit seasonality. For example, we bet that if you implemented your pricing algorithm in December and compared it against your sales in November, all price algorithms would generate triple-digit improvements. Having a control group allows you to tease out the impact of things that happen over time (holidays, promotions, new technology, new product releases) so that you can measure the real change produced by the new pricing algorithm.
A proper control group consists of products that are similar in characteristics and seasonality. In our implementation for the Chinese retailer, we assigned feeding bottles for children younger than six months to the treatment group and bottles for children older than six months to the control group. For the U.S. retailer, we assigned king and California king beds to the treatment group and queen, full, and twin beds to the control group. Moreover, we rotated the treatment and control groups. In the first week, king beds were the treatment group; the week after, queen beds were the treatment; and the third week, full and twin beds were the treatment. Such a rotation allows you to better ascertain the impact of the pricing model on revenue and filter out differences among various products.
第 8 节
7. Repeat Steps Three to Six for Continuous Improvement
Once you have successfully implemented a dynamic pricing system, we recommend that you update it periodically—every six months or whatever duration you deem necessary given your market dynamics. Be aware of major changes in your competitive landscape (new entrants, for example) and in the product portfolio (introduction of new products, for example) that may change consumers’ choices and preferences. Repeat steps three through six (experiment, measure, optimize, and implement) to continually retune your algorithm.
Our tool for setting prices dynamically is highly adaptable. You can easily incorporate new innovations into this analytics framework. You could, for example, introduce behavioral factors to better capture the consumers’ decision-making process. In a research study at a grocery chain, we found that consumers don’t always fall for the longtime retailer convention of pricing a product at $X.99. While some consumers overweight the left digits of prices as much as 30%, others pay attention to the rightmost digits of a product’s price ($4.99 versus $5.00). This suggests that retailers need to be smart about when to incorporate this bias in their algorithms.
Another way to adapt the tool is to integrate newly developed machine-learning algorithms to continually improve precision of price-elasticity estimates. Working with an international online retailer, we identified the products that each consumer viewed before making a purchase. This process enabled us to more accurately measure how the price of one product can affect the demand for similar products, subsequently boosting the retailer’s revenue by an additional 5%.
. . .
By weaving together data analysis, experimental methodologies, and a comprehensive understanding of consumer decision-making processes, retailers can generate significant increases in revenues while increasing or maintaining profit margins. The essence of the approach we have described is the complete cycle of “model, measure, maximize.” A piecemeal solution that involves only one of these steps may achieve minor improvements in revenues or profits of a percent here and there. But the integrated use of all three, powered by AI tools, will reward retailers with substantial improvements in revenues or profits that are sustainable over time.