Bootstrap: Difference between revisions

From 太極
Jump to navigation Jump to search
No edit summary
Line 91: Line 91:
# [1] 0.08183151
# [1] 0.08183151
</pre>
</pre>
== Bootstrapping Extreme Value Estimators ==
[https://www.tandfonline.com/doi/full/10.1080/01621459.2022.2120400 Bootstrapping Extreme Value Estimators]  de Haan, 2022

Revision as of 14:32, 8 February 2023

General

Nonparametric bootstrap

This is the most common bootstrap method

The upstrap Crainiceanu & Crainiceanu, Biostatistics 2018

Parametric bootstrap

Examples

Standard error

Standard error

foo <- function() mean(sample(x, replace = TRUE))
set.seed(1234)
x <- rnorm(300)
set.seed(1)
sd(replicate(10000, foo()))
# [1] 0.05717679
sd(x)/sqrt(length(x)) # The se of mean is s/sqrt(n)
# [1] 0.05798401

set.seed(1234)
x <- rpois(300, 2)
set.seed(1)
sd(replicate(10000, foo()))
# [1] 0.08038607
sd(x)/sqrt(length(x)) # The se of mean is s/sqrt(n)
# [1] 0.08183151

Bootstrapping Extreme Value Estimators

Bootstrapping Extreme Value Estimators de Haan, 2022