Measuring Risk in Complex Stochastic Systems