Skip to content

Instantly share code, notes, and snippets.

@stephenturner
Created April 15, 2022 16:34
Show Gist options
  • Save stephenturner/a3cbb05b2c0b210ab30f2d8d9a8354a9 to your computer and use it in GitHub Desktop.
Save stephenturner/a3cbb05b2c0b210ab30f2d8d9a8354a9 to your computer and use it in GitHub Desktop.
.632 bootstrap proof
n <- 1e7
x <- sample(n, size=n, replace=TRUE)
length(unique(x))/n
# [1] 0.6321897
1-exp(-1)
# [1] 0.6321206
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment