Certain and Approximately Certain Models for Statistical Learning