Hi Rooters,
I am posting in this forum cause I am facing an issue when using the RooNDKeysPdf class of RooFIT.
What I am trying to do is quite straightforward (see my attached macro) :
- building a multidimensional kernel based on some experimental and correlated data ;
- sampling more points from the obtained multidimensional probability density function.
The goal is to extend the experimental data, keeping the observed correlation in the initial data.
Things are working perfectly fine when the dimension of my data is 2,3 or 4.
When I add a fifth dimension, I am getting really weird results :
- the sampled data do not cover the full expected range ;
- the sampled data exhibit some really weird “square cuts” (see an example in attached pictures below).
Am I doing something wrong ?
Based on the square shape of the anomalies, I wouldn’t say it comes from the kernel estimator (even ill-conditioned I wouldn’t expect square shape from a gaussian sum).
I simplified my problem and attached some files to show you this behavior :
- random correlated data (covariance of this data is similar to my actual experimental dataset) : see data_correlated.txt data_correlated.root (24.6 KB) and data_correlated.root data_correlated.txt (25.4 KB)
- macro reading, constructing pdf, sampling it and drawing each pair of variables : multikernel.C multikernel.C (4.54 KB)
- saved picture of the plots : (1) case without problem in four dimensions (left : experimental data, right : sampled from kernel)
(2) case with the problem in five dimensions
I am using ROOT v5.34 and RooFIT v3.59.
Thanks in advance for your help,
Olivier