Assume we want to know the mean square error (MSE) of the sample median as a estimator of a population meanunder normality. As you know, this is not a trivial problem. We may take advantage of the Bootstrap method and solve it by means of simulation.
This way, for \(b=1, \ldots, B\), we generate \(X_{b1}, \ldots, X_{bn} \sim N(\hat{\mu}, \hat{\sigma}^2)\). Then, we compute the sample median \(\tilde{X}_b\) for each sample in the bootstrap. Finally, an estimator of the MSE is given by