First part of stochastics estimator