Model selection for good estimation or prediction over a user-specified covariate distribution