Stephen Tashi said:
If even ChrisVer doesn't know exactly how the data is generated, we can't give good advice.
I know how the data is generated [they are Monte Carlo]. But I find this of low importance to mention, since what I am referring to is a separate thing.
The numbers I am using are entries in several bins of some distribution and their corresponding systematic and statistical errors.
So if you have some backgrounds (like photons, jets, W etc) the total number and error of events in each bin is supposed to be the "mean" number of expected events of each background, and the error is supposed to be the sum in quadrature of the separate errors. Not just the sum of errors.
Stephen Tashi said:
is how to interpret the δ\delta notation. Is δNi\delta Ni the standard deviation of the i-th count or is it the standard deviation of the relative error in the i-th count ?
I am not sure I understand this question very well, but I will try to explain what \delta N_i stands for...
For the statistical uncertainty, the relative uncertainty is \delta N_i = \frac{\sigma_i}{N_i} where \sigma_i is the standard deviation (or the error) of the N_i yield (i runs over the several backgrounds, so i=photon, jet, W etc)... that means that if you repeatedly did the experiment, the number of events of the background i you'd measure would be found (within 68% certainty) in the range [N_i - \sigma_i , N_i +\sigma_i]. The relative uncertainty instead of giving a Gaussian distribution around the mean N_i and std \sigma_i is giving a Gaussian distribution with mean 0 and standard deviation 1.
The question then becomes what can you say about the total background, given that you have N_i,\sigma_i (or \delta N_i).
What I say:
The total number of events will obviously be the sum of the individual components: N_T= \sum_i N_i.
The standard deviation of the sum of the individual components is supposed to be \sigma_T = \sqrt{\sum_i \sigma_i^2}
Or the relative uncertainty \delta N_T = \frac{\sigma_T}{N_T}= \frac{\sqrt{\sum_i N_i^2 \delta N_i^2} }{N_T}
What I read in the code under question:
The total number of events is the sum of the individual components: N_T= \sum_i N_i.
The standard deviation of the sum of the individual components is supposed to be \sigma_T = \sum_i \sigma_i
Which gives the relative uncertainty \delta N_T = \frac{\sigma_T}{N_T} = \frac{\sum_i N_i \delta N_i}{N_T}