Created
July 20, 2018 12:47
-
-
Save Torvaney/d9696a8aa5e681968aa6120ef9a2a04b to your computer and use it in GitHub Desktop.
Bounds on classifier error given disagreement rate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lower_bound <- function(d) { | |
(1 - sqrt(1 - 2*d)) / 2 | |
} | |
upper_bound <- function(d) { | |
(1 + sqrt(1 - 2*d)) / 2 | |
} | |
tibble(d = seq(0, 0.5, 0.001), | |
lower = lower_bound(d), | |
upper = upper_bound(d)) %>% | |
ggplot(aes(x = d)) + | |
geom_ribbon(aes(ymin = lower, ymax = upper)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment