I need to plot the difference between my data in histogram and the fitting curve. My fit function is a sum of gaussian and landau functions defined over two separate ranges. I am using TRatioPlot but I get the following error: “Cannot compute confidence intervals with an invalide fit result”. Can anyone help me out with it?
I am attaching my result.
Also, it looks like the gaussian and the landau fits individually converge but for the total fit I get the warning “Abnormal termination of minimization”. Are they any way related? ratioploterror.pdf (22.2 KB)
Hi,
If your fit is invalid, because you have an abnormal termination of the minimisation, which can be caused by large error in computing your function or bad initial starting values, you cannot compute any confidence intervals, since the resulting error and covariance matrix are not valid and correct
Hi Lorenzo, is there a way to fix the fit? I just used the gaussian and landau fits in different subranges and added them as given under “Fitting Multiple Sub Ranges” in Chapter: FittingHistograms.