Dear All,
I have two data samples: data and data_ctl, I perform individual fits on data and data_ctl, I also perform a simutaneous fit on data and data_ctl;
My first problem is:
- I use Likelihood method to fit data with model, fit data_ctl with model_ctl, and obtain the minimum FCN_1min and FCN_2min, respectively;
- I use Likelihood method to simultaneously fit data with model and data_ctl with model_ctl, and obtain the FCN_min of the simultaneous fit; (in the simultaneous fit, the parameters of model and model_ctl are free);
- I find FCN_min != FCN_1min + FCN_2min;
- But, in mathematics, a simultaneously fit means to search the minmum value of FCN = FCN_1 + FCN_2; it should be FCN_min = FCN_1min + FCN_2min; because FCN_1min and FCN_2min are the minimum value of each part; the minimum value of FCN shoule be FCN_1min + FCN_2min, right?
the script is attached as: rf501_simultaneouspdf_likelihood.C
My second problem is:
- I use Least-Chi2 method to fit data with model, fit data_ctl with model_ctl, and obtain the minimum FCN_1min and FCN_2min, respectively;
- I use Least-Chi2 method to simultaneously fit data with model and data_ctl with model_ctl, and obtain the FCN_min of the simultaneous fit; (in the simultaneous fit, the parameters of model and model_ctl are free);
- I find FCN_min = FCN_1min + FCN_2min, which is as the mathematical prediction;
- However, when I use my real data, for Least-Chi2 method I find FCN_min != FCN_1min + FCN_2min,
so I am very confused now, please help me !
the chi2 fit script is attached as: rf501_simultaneouspdf_chi2.C
rf501_simultaneouspdf_likelihood.C (6.33 KB)
rf501_simultaneouspdf_chi2.C (6.9 KB)