One more detail, classProbDist is filtered by "value = positiveClass", so really before the JOIN operation there is only one RECORD identified by "id" at each dataset:
compared:= JOIN(classOfInterest, DepData,LEFT.id=RIGHT.id AND LEFT.number=RIGHT.number, .....