Skip to content

randomForest: sampling with replacement?

3 messages · Dimitri Liakhovitski, Liaw, Andy, Max Kuhn

#
Hello!

I know that as trees are constructed, the root node contains a
bootstrap sample of data of the same size as original the data set.
Would you please confirm that it is a bootstrap sample with replacement?
I think it is - just wanted to make sure.
Thank you very much!
2 days later
#
See the "replace" argument in ?randomForest.

Andy
Notice:  This e-mail message, together with any attachme...{{dropped:11}}
#
Someone should note that the definition of a bootstrap sample is a
sample with replacement (usually of size n).

I've read quite a few papers where they claim to be using the
bootstrap. Upon further review (sometimes to the code) they often are
doing permutation testing-type randomization. This is mostly in
biological journals.

There are also at least paper that describe the "out of box" random
forests error rate...

Max