Solution (source code)

= Solution

A <bootstrap> sample consists of $n$ independent draws with replacement from the empirical distribution assigning mass $1/n$ to each observed $X_i$.