Prediction equity with similarity function