Statistics: computing deviation