menu_book Course Curriculum (Statistics) expand_more
Descriptive Statistics
Probability
Distributions
Sampling & Estimation
Hypothesis Testing
bootstrap estimate
Learn bootstrap estimate in Statistics with a dedicated explanation, a concept-specific example, practical cautions, and a mastery check.
12 min read
•
Intermediate
statistics-032.py
python
import random,statistics
rng=random.Random(9); sample=[4,5,5,6,10]
boot=[statistics.mean(rng.choices(sample,k=len(sample))) for _ in range(2000)]
print(statistics.mean(boot),statistics.quantiles(boot,n=40)[0],statistics.quantiles(boot,n=40)[-1])
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content