How to calculate effective sigma?

Dear experts,

I have fitted the data sets with two Gaussian PDFs in roofit.

RooRealVar mean(“mean”,“mean”,1.777,1.75,1.79);
RooRealVar sigma1(“sigma1”,“sigma1”,0.00,0.0,0.1);
RooGaussian signal1(“signal1”,“signal1”,x,mean,sigma1);

RooRealVar sigma2(“sigma2”,“sigma2”,0.01,0.0,0.2);
RooGaussian signal2(“signal2”,“signal2”,x,mean,sigma2);

RooRealVar sfrac(“sfrac”,“Area fraction”,0.5,0.0 ,1.0);
RooAddPdf signal(“signal”,“model”,RooArgList(signal1,signal2),sfrac);

signal.fitTo(*data);

After the fit, there are two sigmas found as a result. Here my question is what will be the ideal way to calculate the effective uncertainty from the fit.

I am thinking to calculate the, Effective sigma = sfracsigma1 + (1-sfrac)sigma2 here in roofit. Please let me know someone whether the above way is correct or they will be added in quadrature Effective sigma = sqrt( sfrac(sigma1)^2 + (1-sfrac)(sigma2)^2 ). I am somehow confused about this now.

Thanks in advance.

ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided


Hi,

I have not understood what you mean with effective sigma and what is its definition. Please clarify it…

Hi @moneta

I want to estimate the resolution from the distribution. So I fit the data sets with two Gaussian PDF. So I just wanted to know what will be the correct way to get the resolution from the fit since there are two sigmas after the fit.

If the fit is performed by one Gauusian PDF then I could take easily the sigma after fitting as the resolution.
I hope it is clear now. Please let me know if it is still not clear.

Thanks

Hi,
If you want the standard deviation of the distribution which is given by the sum of the two gaussian, if the two gaussian have the same mean, the result is :
sigma^2 = frac * sigma1^2 + (1.-frac) * sigma2^2.

It is easy to proof by computing the first and second momentum of the total distribution (your signal model).

Lorenzo

1 Like

Hi @moneta

Thank You! Yes, the two Gaussian have the same mean during fitting to data.

Now I just wanted to sure that is it sigma^2 = frac * sigma1^2 + (frac-1) * sigma2^2 or
sigma^2 = frac * sigma1^2 + (1-frac) * sigma2^2 ?
Or that is a typo? If possible for you , can you please share the proof or any kind of link for that.

Thank You So much!

Sorry, it was a typo. I have corrected it now

Thank You Lorenzo. Now I understand and clear.