Customer Sales Order price prediction is one of the biggest tasks in any real-time environment because it has many features that should be considered before giving a price to the customer for example.

  1. Customer in top tier pricing
  2. Customer volume pricing
  3. Customer upsell product pricing
  4. Customer cross-sell product pricing
  5. Customer seasonal pricing
  6. Customer stock variance pricing
  7. Customer shelf life nearing pricing
  8. Customer demand pricing
  9. And so on…

 

This is one cumbersome process that predicts the price for a particular product in any industry.

Can we use Machine Learning to predict a customer price based on Supervised Learning with minimal features?

It is definitely possible and let’s see the outcome on prediction vs actual and what is the error rate for each prediction.

We are going to use 6 attributes that include Sold To (Customer Buyer), Ship To (Ship to Customer), Material (Product), Price per Qty, Quantity, Total Price.

Here we are predicting the Price Per Qty for Customers.

 

Python Libraries used:

Numpy

Pandas

Matplotlib

Scikit-learn: Machine learning Linear Regression

 

You can download the code and notebook on https://github.com/rcgopi100/CustomerPricePrediction

No alt text provided for this image

No alt text provided for this image

No alt text provided for this image

No alt text provided for this image

No alt text provided for this image

No alt text provided for this image

No alt text provided for this image

No alt text provided for this image

No alt text provided for this image

No alt text provided for this image

Conclusion:

This gives us the idea that Machine Learning Supervised Learning can do wonders with data. However, it doesn’t give an accurate prediction to implement in the production system as Root mean squared error 222, so we need to reduce the error rate to get an accurate prediction. In the future, we can add more attributes to get less error rate in Prediction vs Actual. As a starting point, we can use Linear Regression to test and check how it predicts with Actual vs Predicted values. I will slowly build different models and will check which one is able to give fewer errors and make an accurate prediction.

 

Stay tuned!

You can comment here on which idea you would like to test and predict. I will try to implement and share the code.

My other articles:

Artificial Intelligence Chatbot Using Neural Network and Natural Language Processing

Introduction and Hidden Secrets of Artificial Intelligence

How to create your own SAP Fiori Chatbot in 10 days?