Statistics and control of stochastic processes