I’d like to get the area under the probability density function. As you know, there is a Z value table to read the probability or area under its curve. I attach here. Also, there area some well known values that I put here.
Where am I doing wrong so that the pre-defined error function in ROOT doesn’t give me the result? Later, please tell me about how to get the error, too.
That’s my result on my terminal: This should be 0.68268, namely 68.268%.
What they call “erf(x)” in the “Table 1.1” and equations “(1.6)”, “(1.7)” and “(1.8)” is: ROOT::Math::erf(x / TMath::Sqrt2()) / 2.
and / or: ROOT::Math::chisquared_cdf((x * x), 1.) / 2.
I see. I was expecting the code will work without any addition just like saying erf(1) in the formula. It seems we need to add those sqrt stuff due to how it was defined.
What is chi, btw? Is it defined in ROOT menu? Any link.