Some attempts to calculate PDF and CDF