In general when I hear the expression parametric bootstrap I think "parametric residual bootstrap"
I'm attaching some simple code that contrasts and parametric and a non parametric residual bootstrap.
x = 1:10000;
X = x';
Y = 3*X + 5 + randn(10000,1);
b = regress(Y, [ones(size(X)), X])
YHat = [ones(size(X)), X] * b;
resid = Y - YHat;
foo = fitdist(resid, 'normal');
se = std(bootstrp(1000,@(bootr)regress(YHat+random(foo, size(bootr)),[ones(size(X)), X]),resid))
YHat = [ones(size(X)), X] * b;
resid = Y - YHat;
se = std(bootstrp(1000,@(bootr)regress(YHat+bootr,[ones(size(X)), X]),resid))
Best Answer