Internal function: Based on given labels and scores, compute average predicted risks in given score intervals.
Useful links