icecube / pisa

Monte Carlo-based data analysis
http://icecube.github.io/pisa/
Apache License 2.0
19 stars 47 forks source link

Add Bootstrap sampling stage and some small fixes #697

Closed atrettin closed 2 years ago

atrettin commented 2 years ago

This PR adds a bootstrap sampling stage that can be used to estimate MC uncertainties, and a few smaller fixes:

The bootstrap stage creates a bootstrap sample of the entire input data sample, i.e. it randomly draws samples with replacement until the bootstrap sample has the same size as the original sample. Instead of manhandling the entire arrays, though, it adds equivalent weights to the samples, i.e. a sample that was selected twice gets a weight of 2, and so on.

The unit test ensures that

philippeller commented 2 years ago

Hi, This PR looks clean to me and does not look like interfering with anything else. So i will merge this