I have generated some toy events of gaussian and fitted with a gaussian PDF. I want to find out the goodness of the fit. I tried to find out the chisquare/NDF of the fit. I was not able to get it. How can I get the Number of degrees of freedom here?? .
There is a method also to get chisquare
Double_t chi2Val = xframe->chiSquare();
Thank you for your kind reply.
The thing is that, I am using a RooFit. I am generating 10000 gaussian toy events and fitting it to a gaussian PDF. These are unbinned data.
But I what you should do for what concerns the NdF, probably you have to found by hand. Using the number of parameters of the pdf, and the number of data.