Two-stage Modeling for Prediction with Confidence