bootstrap function parametric approach or non-parametric

9 visualizaciones (últimos 30 días)
EHSAN ramezanifar
EHSAN ramezanifar el 7 de Oct. de 2016
Respondida: Aditya el 25 de Mzo. de 2025
I want to employ the bootstrap function in Matlab but I didn't find any explanation whether it is parametric bootstrapping or non-parametric!

Respuestas (1)

Aditya
Aditya el 25 de Mzo. de 2025
Hi Ehsan,
In MATLAB, the bootstrp function is used for bootstrapping, and it primarily implements non-parametric bootstrapping. Non-parametric bootstrapping involves resampling with replacement from the observed data, which does not assume any specific parametric form for the data distribution.
Here's a simple example demonstrating how to use bootstrp in MATLAB:
% Sample data
data = randn(100, 1); % Example dataset
% Function to compute the statistic (e.g., mean)
statFun = @(x) mean(x);
% Perform bootstrap
nBootstraps = 1000; % Number of bootstrap samples
bootstat = bootstrp(nBootstraps, statFun, data);
% Display results
fprintf('Bootstrap mean: %.4f\n', mean(bootstat));
fprintf('Bootstrap standard deviation: %.4f\n', std(bootstat));

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by