Please see my Github page for code regarding the density distribution: https://github.com/TheresaMigler