Uses a histogram of event probabilities to calculate a precise AUC. This is a discrete approximation. Use this function with many break points with a large number of data points.

auc_histogram(x)

Arguments

x

histogram object from graphics::hist

Author

Daniel D. Sjoberg

Examples

runif(10000) %>%
  hist(breaks = 250) %>%
  auc_histogram()

#> [1] 0.8276283