Behavior of prediction performance metrics with rare events