We use a stochastic simulation, taking random samples from the network.

We repeat this process many times, and in the case that we try to find , we find the proportion of results that is equal to , i.e. .

The more runs we do, the more accurate the probability.