**Probability mass function** (pmf) of a discontinuous random variable X is a function that satisfies the following requirements.

with being the probability of event .

In case of a continuous random variable X a probability density function is considered.