Stav dette: Analysis and optimization of stochastic systems