# Assessing market demand using Neural Networks

**Objective**

The objective was to assess and forecast demand for a retail outlet, using Neural Networks.

**Approach**

In order to conduct the analytics, we applied the concept of Multi-Layer Perceptron (MLP) in Neural Networks which can classify and predict the patterns accurately. The inherently non-linear structure of neural networks is particularly useful for capturing the underlying complex relationship in many real-world problems. Neural networks are, perhaps, more versatile methods for forecasting applications. In such a case, not only can they find non-linear structures in a problem, they can also model linear processes.

Before a neural network can be used for forecasting, it must be trained. Neural network training refers to the estimation of connection weights. Although the estimation process is very similar to that of linear regression, where we minimize the Sum of Squared Errors (SSE), the ANN training process is more difficult and complicated, due to the nature of non-linear optimization involved. Various training algorithms have been developed and recorded in literature and the most influential one is the back propagation algorithm by Werbos (1974) and Rumelhart et al. (1986). The basic idea of back propagation training is to use a gradient-descent approach to adjust and determine weights such that an overall error function such as SSE can be minimized.

Before training the FFNN (Feed Forward Neural Network) model, the Scaled Independent variables are rescaled using adjusted normalized method. The data is first partitioned into Training, Testing, and Holdout samples, in order to evaluate the model accuracy. And then, applied MLP (FFNN) architecture with one ‘Input’, one ‘Hidden’, and one ‘Output’ layer with the below specifications:

Input layer contains units like lag1 volume (yesterday’s sales), lag7 volume (last week’s sales) and some more units which are used to capture the seasonality as well as any promotional activity, etc. The ‘Hidden’ layer contains two units and the ‘Output’ layer contains one unit with volume.

Mentioned below is the network information:

**
**The coefficient estimates that show the relationship between the units in a given layer to the units in the following layer are called weights and can be used to predict the future volumes by using the below mentioned model:

**Impact**

The fitted FFNN models produced around 95% prediction accuracy for both ‘Train’ and ‘Test’ data sets, and the obtained FFNN model can be used to predict the sales in the future. This data enabled the client to gauge the demand.

## 2 Comments

## Things to remember while learning/teaching Data Science - Dr Venugopala Rao Manneni

January 1, 2019[…] Assessing market demand using Neural Networks […]

## Assessing market demand using Neural Networks - Dr Venugopala Rao Manneni

January 1, 2019[…] January 1, 2019 Venugopal Manneni Leave a comment Assessing market demand using Neural Networks […]