Structure of the base table
Consider the predictive modeling problem where you want to predict whether a candidate donor will make a donation in the next year. To build the model, you use historical data and calculate the target in 2017. The target is 1 if a donation is made in 2017 and 0 otherwise. Below, the first lines of the base table are given. It contains the number of donations made in 2016, the number of donations made in 2017, the age of the donor and the target. Which columns can be used as candidate predictors?
Donations 2016 | Donations 2017 | Age | Donation in 2017 (target) |
---|---|---|---|
5 | 2 | 68 | 1 |
3 | 0 | 65 | 0 |
2 | 0 | 23 | 0 |
8 | 6 | 56 | 1 |
This exercise is part of the course
Introduction to Predictive Analytics in Python
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
