Localized mixture models for prediction with application