For $n$ distinct observations, there are ${2n - 1 \choose n-1}$ distinct bootstrap (re)samples.
Could someone please provide a simple explanation?
I found http://statweb.stanford.edu/~susan/courses/s208/node11.html, which includes the following:
The set of all bootstrap resamples is the $n$ dimensional simplex $$C_n=\{(k_1,k_2,\ldots,k_n), \,k_i \in \mathbb{N}, \,\sum k_i=n\}$$
Here is the argument I used in class to explain how big $C_n$ is. Each component in the vector is considered to be a box, there are $n$ boxes to contain $n$ balls in all, we want to contain to count the number of ways of separating the n balls into the $n$ boxes. Put down $n-1$ separators of $\vert$ to make boxes, and $n$ balls, there will be $2n-1$ positions from which to choose the $n-1$ bars' positions, for instance our vector above corresponds to: oo||o|oo| . Thus $$\displaystyle \vert C_n \vert={{2n-1}\choose{n-1}}$$
This makes sense to me with the exception of one crucial point: why will there be "$2n - 1$ positions from which to choose the $n-1$ bars' positions"?
I tried justifying it to myself and came up with this:
I need to find a set of size $2n - 1$ of possible bar locations. At first glance there are $n+1$ locations in which the bars can be placed, but the catch is that positions can be chosen multiple times.
To be clear, using o to represent a ball as in the block-quote above: _o_o_o_o_o_ ie 5 balls means 6 slots (underscores) in which bars can live. But there can be multiple bars in one location, e.g. ||ooo||oo .
The set I came up with is $$L = \left\{0, 1, \ldots, n, s_1, \ldots, s_{n-2}\right\}$$ which has size $2n - 1$ as desired. The first $n+1$ elements are integers; the last $n-2$ elements are symbols: $s_i$ means "go to the same slot as bar $i$."
Elements of L are possible locations for the bars. The rule for placing the bars is:
- Draw a sample $\tilde{L}$ of size $n-1$ from $L$
- Order the elements of $\tilde{L}$ so that the integers come first (in ascending order), followed by any $s_i$, in ascending order of the $i$; note that there is necessarily at least one integer in $\tilde{L}$
- The $j^{th}$ element of $\tilde{L}$ will tell us where to place bar $j$. If $\tilde{L}_j$ is an integer, place bar $j$ in slot number $\tilde{L}_j$; if it is an $s_i$, place bar $j$ in the same slot as bar $i$ (the sorting guarantees $i < j$)
My question is twofold: does my explanation make sense? Even if it does, it seems unnecessarily messy and complicated. Can you think of something clean and simple?