Now we have to minimize the standard deviation