Function BSTRAP computes values of user-defined scalar-, vector- or matrix-valued statistics in the original sample, and in B bootstrap samples of size m <=n, where n is the number of rows in X. Addressing limitations of BOOTSTRP (Statistics Toolbox, v. 5-6), BSTRAP accepts 'fixed', i.e. non-resampled, matrix-valued input arguments, and allows both matrix- and structure-valued output - which can be summarized with function BSTATS, calculating average, sample variance and (2.5, 97.5) percentiles of a bootstrap distribution.
Cite As
Dimitri Shvorob (2026). Bootstrap a statistic (https://www.mathworks.com/matlabcentral/fileexchange/14664-bootstrap-a-statistic), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- AI and Statistics > Statistics and Machine Learning Toolbox > Probability Distributions and Hypothesis Tests > Resampling Techniques >
Tags
Acknowledgements
Inspired by: Plot a univariate histogram
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
bstrap/
bstrap/html/
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 | BSD |
