 For a continuous distribution,the mean is formula_17, where formula_18 is the probability density function.In all cases, including those in which the distribution is neither discrete nor continuous, the mean is the Lebesgue integral of the random variable with respect to its probability measure.The mean need not exist or be finite; for some probability distributions the mean is infinite ( or ), while others have no mean.