Stochastic modeling and control