calculating ambiguity after classification