Functions related to probability distributions