Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct statement about repeated samples in bootstrap #647

Closed
lesteve opened this issue Jul 4, 2022 · 0 comments · Fixed by #649
Closed

Correct statement about repeated samples in bootstrap #647

lesteve opened this issue Jul 4, 2022 · 0 comments · Fixed by #649

Comments

@lesteve
Copy link
Collaborator

lesteve commented Jul 4, 2022

https://inria.github.io/scikit-learn-mooc/python_scripts/ensemble_bagging.html

On average, ~63.2% of the original data points of the original dataset will be present in a given bootstrap sample. The other ~36.8% are repeated samples.

I think the last part is wrong 36.8% are not repeated samples, 36.8% of the original dataset are not in the bootstrap sample. I guess this can be removed since we already say that 63.2% are in the bootstrap sample.

If we want to talk about repeated samples we can say that the bootstrap is the same size of the original dataset and contains only 63.2% of the original dataset, so there will be repeated samples.

I seem to remember mentioning this in the past and indeed I manage to find it: https://github.com/INRIA/scikit-learn-mooc/pull/53/files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant