Hello,
I am using FitResult::GetConfidenceIntervals with normalization turned off as shown below:
fit_result.GetConfidenceIntervals(len(x_vals), 1, 1, x_vals, two_sig_interval, Double(0.95), False)
Looking at the implementation of GetConfidenceIntervals (here, relevant lines also copied below), I worry that the correction factor calculated on line 581 is too big by a factor of itself. My understanding is that the chi2 distribution used here describes the distribution of the square of the number of standard deviations above or below the mean, and I therefore expect that the correction factor should be included in the square root on line 626.
580 // value to go up in chi2 (1: 1 sigma error(CL=0.683) , 4: 2 sigma errors
581 corrFactor = ROOT::Math::chisquared_quantile(cl, 1);
...
626 double r = std::sqrt(r2);
627 ci[ipoint] = r * corrFactor;
For example, I generally expect two-sigma confidence intervals (z=0.955) to be twice the width of one-sigma confidence intervals (z=0.683), but this function gives two-sigma confidence intervals that are four times the width of the one-sigma confidence intervals. Is my intuition off here?
Thank you,
Bryan
ROOT Version: 6.06
Platform: Not Provided
Compiler: Not Provided