pandas.plotting.bootstrap_plot(series, fig=None, size=50, samples=500, **kwds) [source]
Bootstrap plot on mean, median and mid-range statistics.
The bootstrap plot is used to estimate the uncertainty of a statistic by relaying on random sampling with replacement [R33]. This function will generate bootstrapping plots for mean, median and mid-range statistics for the given number of samples of the given size.
| [R33] | “Bootstrapping (statistics)” in https://en.wikipedia.org/wiki/Bootstrapping_%28statistics%29 |
| Parameters: |
series : pandas.Series Pandas Series from where to get the samplings for the bootstrapping. fig : matplotlib.figure.Figure, default None If given, it will use the size : int, default 50 Number of data points to consider during each sampling. It must be greater or equal than the length of the samples : int, default 500 Number of times the bootstrap procedure is performed. **kwds : Options to pass to matplotlib plotting method. |
|---|---|
| Returns: |
fig : matplotlib.figure.Figure Matplotlib figure |
See also
pandas.DataFrame.plot
pandas.Series.plot
>>> import numpy as np >>> s = pd.Series(np.random.uniform(size=100)) >>> fig = pd.plotting.bootstrap_plot(s)
© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
http://pandas.pydata.org/pandas-docs/version/0.23.4/generated/pandas.plotting.bootstrap_plot.html