1. Learn
  2. /
  3. Courses
  4. /
  5. Helsinki Open Data Science

Connected

Exercise

Binary predictions (2)

Let's continue to explore the predictions of our model.

Instructions

100 XP
  • Initialize the ggplot object and define probability as the x axis and high_use as the y axis.
  • Use geom_point() to draw the plot.
  • Add the aesthetic element col = prediction and draw the plot again.
  • Use table() to create a cross table of 'high_use' versus 'prediction'
  • Adjust the code: Use %>% to apply the prop.table() function on the output of table()
  • Adjust the code: Use %>% to apply the addmargins() function on the output of prop.table()