Stochastic optimization and mathematical statistics