# # Bootstrap confidence intervals # # Copyright (C) Wesley Phoa, 2001 # from math import * from Numeric import * from RandomArray import * def bootstrap(data, statistic, N=5000, n=None): "Compute statistic on N samples of size n from data." # if data is heavy-tailed, prefer size