Technology Blog Posts by SAP
cancel
Showing results for 
Search instead for 
Did you mean: 

With the upcoming general release of SAP Analytics Cloud compass targeted for 2025 Q1 (fast track 2024.25), business users with no mathematical or IT background will be able to perform Monte Carlo simulations to understand the risk involved when faced with fluctuating driver performances.  

But what exactly is a Monte Carlo Simulation?

What Can It Do and When To Use It? 

A Monte Carlo Simulation is well suited to estimate the impact when the driver performance can be expected to be within a certain range but there is no telling yet of what the final value would be. For example, in the business world, it could provide insight to the probable operating income (when the expected inflation is fluctuating), or the necessary FTE (when the attrition and hiring rate could be estimated but not finalised), or the possible cash flow (when there are different investment strategies, each with its own spectrum of possible costs). The generated insights enable an understanding of the risk resulting from the compound driver certainties, and are thus particularly useful in cases where the ability to know the boundaries of the optimistic, pessimistic and realistic cases is crucial. Examples could include target setting, budget reviews, strategic planning, workforce planning, just to name a few.    

The Origin 

The most prominent early implementation of the Monte Carlo Simulation is commonly attributed to Stanislaw Ulam, a Polish scientist, who utilized this method in the 1940s for his calculation of neutron diffusion while working for the Manhattan project. Ulam utilized computers for his implementation of the Monte Carlo method, repeating the calculations in high iterations with automated random inputs. While the method does not delivery a singular, deterministic solution, it gives a statistical representation of the probable outcomes – a benefit which is still valued by many performing business simulations today. 

The Method in a Nutshell 

For those new to the method, it might help to see the similarity between a Monte Carlo Simulation and the act of tossing dice to see what turns up. To illustrate the similarity, let us start with a simplified example: Imagine that you are tossing 3 dice 100 times to explore the most probable sums achievable, and after each toss, you note down the value achieved for each dice and the aggregation obtained across all 3 dice. What you will have at the end of 100 trials is a list showing you how often a particular aggregation result shows up, which you can plot in a graph to visualize the value against the relative frequency of appearance, which can be understood as the probability in (%).  

Below is a simplified diagram to illustrate the process, from left to right:

Data Toss Example.png 

Define Data and Driver: As we have three dice, we have 3 drivers with uncertainties, which is the value range between 1 to 6 for each dice (D1, D2 and D3).  

Random Sampling and Calculation: The very act of tossing in this example is actually a random sampling of a value between 1 to 6 for each dice. When this is done for all dice, the aggregation D1 + D2 + D3 can be calculated. This process can be repeated for a high number of trials to observe the frequency of achieved results (in this example 100 times). 

List Creation: The achieved results can be sorted in a list as a preparation for the calculation of the frequency and the plotting of a graph. 

Plotting: The achieved aggregation value is plotted against its relative frequency of appearance, which can be understood as the probability in (%), for better consumption of the insight generated. Let’s say in this example the results yield the graph as shown above; the probability distribution of the aggregated results is easily understood - tossing 3 dice will most likely result in a sum of 10 or 11, while the sum of 3 or 18 is very unlikely. Here we have the answer to the initial question regarding the most probable outcomes when tossing 3 dice.  

Note here that the answer(s) obtained could vary if you perform a new simulation with another 100 iterations again, as we are dealing with statistical probability here. But if performed with a higher number of calculation iteration, e.g. 1000, 10 000 or more, the probability distribution results between two simulations will reduce significantly.  

SAP Analytics Cloud compass and Monte Carlo Simulation 

compass_simulating_regional_revenue_small.gif

With the ability to calculate the probable outcomes when faced with uncertainties, it is evident that the Monte Carlo Simulation is useful for simulations beyond aggregation of tossed dice – it is in fact a valued method when it comes to business simulations. SAP Analytics Cloud compass has taken Monte Carlo Simulation one step further by enabling automation in all above-mentioned process steps: 

Define Data and Driver: Simulating straight off a SAP Analytics Cloud model, the model definition is utilized for the simulation and there is no need for end user to manually duplicate data and calculation formula. Driver detection is also automated.   

Random Sampling and Calculation: Likewise, the random sampling is taken care of by the system. All that is required from the end user is the input for the expected driver performance range. Per default, the distribution type for the random sampling distribution is set to normal distribution, which means, in short, that during random sampling, values around the middle are more likely to be chosen than those near the range boundaries (i.e. 68% of the result will fall within 1 standard deviation, 95% within 2 standard deviations, and 99.7% within 3 standard deviations). If desired, it could be configured to uniform distribution, where all values share the same chances of being sampled. Currently compass does not offer other distribution types beyond normal and uniform. However, if you would like to see other types in compass, do raise it in the influence portal. We would certainly love to understand your use case and how this particular distribution type could help you. 

Besides the random sampling, there are also further pre-configurations to ease the workflow for business end users, such as the definition of calculation iterations and the sorting of results for subsequent graphical display. 

List Creation and Plotting: This is entirely automated by the system. The plotted graph also allows customization of the percentile boundaries for optimistic, pessimistic and realistic cases, and the colouring, to suit different consumption preferences.  

With these automations, end users using compass to explore impact of driver uncertainties do no not need prior knowledge of Monte Carlo Simulation method to enjoy its benefits.  

SAP Analytics Cloud compass vs Time Series Predictions 

A compass simulation is not interchangeable with e.g. a time series forecast prediction. The major difference lies in the methods utilized and the associated business question:  

The Monte Carlo Simulation, which forms the basis of compass, is a mathematical simulation method delivering a range of (stochastic) probable outcomes as result. Unlike time series forecast prediction, it does not analysis data trends but relies instead on repeated calculation using random inputs. This also means that a formula or definition of relation between the impacted KPI and the drivers is required before the simulation could be executed. As this method is exploring the possible outcomes brought about by random inputs, the business questions leading to a compass simulation is hence more likely to centre around what happens if things change. 

A time series forecast prediction projects the data trend from historical values into the future, and is not reliant on existing mathematical definition between the KPIs. The prerequisite here is hence the availability of enough historical data to detect the trend for the desired period into the future. The kind of business questions leading to a time series prediction is centring more around what happens if things develop at more or less the same rate.   

Of course this does not mean that one cannot be built on top of the other to enhance the insights attainable. Depending on use case, it could be beneficial to first generate a time series forecast for an observation of what would happen in the future if the current trend persists, and to perform a Monte Carlo Simulation on top of this predicted version to understand the risk context if a few key drivers are impacted unexpectedly, just as an example.  

Key Takeaways 

  • A Monte Carlo Simulation is well suited to estimate the impact of volatile driver performances.  
  • Use cases include the understanding of risk context during target setting, budget reviews, strategic or workforce planning, and beyond.  
  • The simulation result is a statistical representation of the probable outcomes and not a single, deterministic value.  
  • The Monte Carlo Simulation method could be compared to the tossing of dice to explore the frequency of achieved aggregations. The main concept involves a high calculation iteration combined with random sampling of possible driver inputs to explore the probability distribution.  
  • Unlike time series predictions, a Monte Carlos Simulation does not analyse data trend to project it into the future. It requires an existing mathematical relationship between the drivers and the impacted KPI to execute the calculation.  
  • Time series prediction and Monte Carlo Simulation can be used on top of each other to answer more complex business questions.    
5 Comments
Labels in this area