Session Ready
Exercise

Making a prediction on new data

Now that you've trained a model on past data, you can make predictions about the future! Not only that, but you also have a margin of error on your past predictions using that model, so you have a full understanding of the most likely outcome on election day as well as the distribution of other, less likely possibilities later on.

Instructions
100 XP
  • Use the predict() function to craft expectations about the Democratic vote margin in a hypothetical election where they're up 5 points in the polls.