Open fzeiser opened 4 years ago
Somewhat along the same lines is then #28 and following comment
7) Question about the chi^2 in Section 5: We say that "[...] most bins of the first-generation matrices follow a normal distribution". I assume it's the low-count bins that deviate most strongly from a normal distribution? I wonder if this might improve a bit if we include the negative-count bins in the fit (point 5 above)? [For the future: it could be interesting to try to replace the chi^2 with a log-liklihood function that also tries to account for the deviations from normal distributions.]
In line with the comments by the referee we might just as well not (by default) cut away the negative counts etc. I'm not working on a branch to implement this.
If one still wishes to run a bg subtraction in the Ensemble
class, one could for example use the action_raw
, action_unfolded
and action_firstgen
attribute to apply it to the corresponding matrices.
See also https://github.com/oslocyclotronlab/ompy/pull/148#issuecomment-689588710 on another idea of how to avoid the bias.
This is a suggestion by Anders, as an alternative to the "remove negatives", see #116 & that we currently perform the on the background