Tidy, type-safe prediction() methods

WWW: https://github.com/leeper/prediction
