Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

Azure/cortana-intelligence-price-optimization

Repository files navigation

Demand Forecasting and Price Optimization- A Cortana Intelligence Solution How-To Guide

Pricing is recognized as a pivotal determinant of success in many industries and can be one of the most challenging tasks. Companies often struggle with several aspects of the pricing process, including accurately forecasting the financial impact of potential tactics, taking reasonable consideration of core business constraints, and fairly validating the executed pricing decisions. Expanding product offerings add further computational requirements to make real-time pricing decisions, compounding the difficulty of this already overwhelming task.

This solution addresses the challenges raised above by utilizing historical transaction data to train a demand forecasting model. Pricing of products in a competing group is also incorporated to predict cross-product impacts such as cannibalization. A price optimization algorithm then employs the model to forecast demand at various candidate price points and takes into account business constraints to maximize profit. The solution can be customized to analyze various pricing scenarios as long as the general data science approach remains similar.

The process described above is operationalized and deployed in the Cortana Intelligence Suite. This solution will enable companies to ingest historical transaction data, predict future demand, and obtain optimal pricing recommendations on a regular basis. As a result, the solution drives opportunities for improved profitability and reductions in time and effort allocated to pricing tasks.

For a discussion of the analytical approach used in this solution, see the Solution Description in the Manual Deployment Guide.

Solution Architecture

In this session, we provide more details about how the above analytical approach is operationalized in Cortana Intelligence. The following chart describes the solution architecture.

Architecture Diagram

What’s Under the Hood

Raw simulated transactional data are pushed into Azure Blob Storage, whence the Spark Jobs run on HDInsight Cluster will take the raw data as inputs and:

  1. Turn the unstructured raw data into structured data and aggregate the individual transactions into weekly sales data.
  2. Train demand forecasting model on the aggregated sales data.
  3. Run the optimization algorithm and return the optimal prices for all products in all competing groups.

The final results are visualized in Power BI Dashboard. The whole process is scheduled weekly, with data movement and scheduling managed by Azure Data Factory.

About Implementation on Spark

A parallel version of the price optimization algorithm is implemented on Spark. Utilizing RDD.map(), the independent price optimization problems for products in different competing group can be solved in parallel, reducing runtime.

Solution Dashboard

The snapshot below shows the Power BI dashboard that visualizes the results of demand forecasting and price optimization solution.

Dashboard

The dashboard contains four parts:

  1. Price Elasticity: shows the relationship between sales and price, and using the filters on the right, you can select to view the results for a specific store, department or product.
  2. Demand Forecasting: shows the results and performance of the demand forecasting model.
  3. Price Optimization shows the profit gain realized by using the recommended optimal price, as well as corresponding changes in sales volume and price that resulted in the profit gain.
  4. Execution Time shows the time decomposition of different computational stages, allowing the user to monitor the runtime.

Getting Started

This solution template contains materials to help both technical and business audiences understand our demand forecasting and price optimization solution built on Cortana Intelligence.

Business Audiences

In this repository you will find a folder labeled Solution Overview for Business Audiences. This folder contains:

  • Walking Deck: In-depth exploration of the solution for business audiences

For more information on how to tailor Cortana Intelligence to your needs, connect with one of our partners.

Technical Audiences

See the Manual Deployment Guide folder for a full set of instructions on how to deploy the end-to-end pipeline, including a step-by-step walkthrough and files containing all the scripts that you’ll need to deploy resources. For technical problems or questions about deploying this solution, please post in the issues tab of the repository.

About

Retail industry solutions for product price optimization using the Cortana Intelligence Suite with end-to-end walkthrough

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published