Content




Dice

This is an example of modelling complex stochastic system where output is an input dependent random variable with multimodal distribution.

Let us consider the system with three inputs. The first input parameter is a probability $P$ which takes values from $0.1$ to $0.9$.
Next two parameters are numbers of quantities of two sets of dice $N1$ and $N2$ which take values from $3$ to $12$.

Our records will look like following
0.4, 5, 9, 20
0.8, 3, 7, 28
.............
First record means that with probability $0.4$ the first set of dice is selected and with the opposite probability the second set is selected. The dice are rolled, all outcomes are added and this is how we obtain the ouput $20$. The goal of modelling is to train model to return distributions for given inputs, not used in training. The accuracy can be assessed by Monte Carlo sampling. The distributions may look bimodal or, in some cases, unimodal, here is one example:


The accuracy metrics are explained in the previous article. Here is the table with result of using divisive data resorting algorithm


Test results for 8 executions of DDR code
Relative distance 0.130.110.100.120.110.120.130.13

And here is the link for code download.

There is also 1blue3brown video explaining divisive data resorting algorithm.