"""Resample the mean with a fixed seed.

IID resampling ignores serial dependence. For time series, consider block resampling and regime changes.
All inputs are synthetic teaching examples. Run: python 33_bootstrap-uncertainty.py
"""
from tv_math import *

v=bootstrap_means([1,2,3],200,7)
assert len(v)==200 and min(v)>=1 and max(v)<=3
print({'q025':quantile(v,.025),'q975':quantile(v,.975)})
