Bootstrap plot on mean, median and mid-range statistics.
The bootstrap plot is used to estimate the uncertainty of a statistic by relying on random sampling with replacement [1]. This function will generate bootstrapping plots for mean, median and mid-range statistics for the given number of samples of the given size.
“Bootstrapping (statistics)” in https://en.wikipedia.org/wiki/Bootstrapping_%28statistics%29
Series from where to get the samplings for the bootstrapping.
If given, it will use the fig reference for plotting instead of creating a new one with default parameters.
Number of data points to consider during each sampling. It must be less than or equal to the length of the series.
Number of times the bootstrap procedure is performed.
Options to pass to matplotlib plotting method.
Matplotlib figure.
See also
pandas.DataFrame.plotBasic plotting for DataFrame objects.
pandas.Series.plotBasic plotting for Series objects.
Examples
This example draws a basic bootstrap plot for a Series.
>>> s = pd.Series(np.random.uniform(size=100))
>>> pd.plotting.bootstrap_plot(s)
<Figure size 640x480 with 6 Axes>
© 2008–2011, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
© 2011–2025, Open source contributors
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/2.3.0/reference/api/pandas.plotting.bootstrap_plot.html