# Chained PDF definitions

**URL:** <https://root-forum.cern.ch/t/chained-pdf-definitions/29860>\
**Category:** Roofit and RooStats\
**Created:** [July 19, 2018, 1:15am UTC](https://root-forum.cern.ch/t/chained-pdf-definitions/29860 "2018-07-19T01:15:51Z")\
**Posts on this page:** 1\
**Page:** 2

<div class="post-metadata">

**Author:** ![moneta](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/moneta/32/19423_2.png) [@moneta](https://root-forum.cern.ch/u/moneta)\
**Post date:** [March 5, 2021, 10:23am UTC](https://root-forum.cern.ch/t/chained-pdf-definitions/29860/21 "2021-03-05T10:23:49Z")

</div>

Hello,  
After fixing some bugs in FFT, I come back to this one.  
I have looked at the Landau case, and this is related to a problematic definition we have in the Landau distribution.  
We have an implementation of the Landau(x) as defined in the original definition,  
first equation of [Landau distribution - Wikipedia](https://en.wikipedia.org/wiki/Landau_distribution) and implemented from code coming from the CERNLIB.  
See [ROOT: Probability Density Functions (PDF)](https://root.cern.ch/doc/master/group__PdfFunc.html#ga53d01e04de833eda26560c40eb207cab)  
In that definition there is no location and scale parameters defined and we artificially introduce a location parameter in the code as `x' = (x-m)/s`.  
Now this is different than the correct definition of the family of Landau distributions described as `p(x;mu,c)` in [Landau distribution - Wikipedia](https://en.wikipedia.org/wiki/Landau_distribution).  
Using that correct definition is true that:  
`CONV(Landau(x,m,c), Landau(x,m,c)) = Landau(x, 2*m, 2*c)`  
but it is not true that  
`CONV( Landau( (x-m)/s), Landau((x-m)/s) ) = Landau ( (x - 2*m)/s ) `

This explains what is observed in the plot above running the given macro `TwoLandau.py` gives difference results for the PDF between _twomip_ and _onetheomip_.  
If the same macro is applied to another stable distribution, like the Gaussian, see [TwoGaus.py](https://root-forum.cern.ch/uploads/short-url/7uTAqN5ErmlEQ81T8RB8ZQvZgWC.py) (4.1 KB) ,  
the result is what expected, confirming that there is no problem on the RooFit side when performing an FFT convolution.

Lorenzo

[Previous page](https://root-forum.cern.ch/t/chained-pdf-definitions/29860.md?page=1)
