I need help figuring out how to write a function that accepts:
- sample of values as a list
- user-determined statistics to be bootstrapped
- number of times to bootstrap
function should return a list of bootstrapped statistics that is the same length as the third argument listed above.
For example function should be able to run bootstrap(lst,np.mean,100) and have returned a list of 100 bootstrapped means for lst.
It would also need to use np.random.choice.
Aucun commentaire:
Enregistrer un commentaire