Consider the following sequence:
the next are c), d) and so on. Let's assume that p1=0.2, p2=0.5, p3=0.2, p4=0.1.
The question is: how to obtain (not necessarily graphically illustrated in example a) and b) ) a matrix of numbers with successive results for parameter q, where q is the number of steps (in case of a) q = 1, in case b) q = 2 , in case c) q = 3, etc.
As a consequence we should get (I think in step q = 8) a graph like 'Model III (right plot)' shown here: https://en.wikipedia.org/wiki/Multiplicative_cascade