Predictive Heterogeneity: Measures and Applications