private helper method calculateProbabilities(int [][] occs) and comments