discrete and continuous probability distribution function