I tried bootci function, but got different result than if I use bootstrp function. For example, if I compute 5% confidence interval of varriance:
data=[1 2 4 9 16 25 36 49 64 81 100 121 144 169 196 225 256 289 324 361 400];ci=bootsci(100000, @var, data);
gives values 10337 and 25885.
data=[1 2 4 9 16 25 36 49 64 81 100 121 144 169 196 225 256 289 324 361 400];bootstat=bootstrp(100000, @var, data);a=quantile(bootstat,0.025);b=quantile(bootstat,0.975);
gives values 8107 and 23241, but I think that the results should be the same. Where make I mistake? Thank you.
Best regards Lukas
Best Answer