How predictive analytics can help in forecasting demand