I want to fit my function to my data using log-likelihood method but my data is TGraphError and I have a complicated function to fit into my data. I have searched but couldn’t find any related material on the matter.
Hi,
The standard fit of a TGraphErrors (with error only in the y coordinate) assume a normal distribution for your data point. Your default ROOT fit is a log-likelihood fit, which is equivalent to a chi-square fit. If your data points have a different distribution, you might need additional information for this distribution and then use the option Wile suggested above.
If instead the distribution is Poisson, there is no need for you to use a TGraph, but you should convert your data in an histogram and then fitting from the histogram using the ‘L’ option
I guess any histogram fit will perform a “binned fit”, while with a graph, it could be an “unbinned fit” (so converting data to a histogram will introduce some “bias”).