Some mathematical properties of the ROC curve and their applications