 StatLect

# Probability mass function

The probability mass function (pmf) characterizes the distribution of a discrete random variable. It associates to any given number the probability that the random variable will be equal to that number. ## Definition

In formal terms, the probability mass function of a discrete random variable is a function such that where is the probability that the realization of the random variable will be equal to .

## Example

Suppose a random variable can take only three values (1, 2 and 3), each with equal probability. Its probability mass function is So, for example, that is, the probability that will be equal to is . Or, that is, the probability that will be equal to is equal to .

## Domain

Note that the probability mass function is defined on all of , that is, it can take as argument any real number. However, its value is equal to zero for all those arguments that do not belong to the support of (i.e., to the set of values that the variable can take). On the contrary, the value of the pmf is positive for the arguments that belong to the support of .

In the example above, the support of is As a consequence, the pmf is positive on the support and equal to zero everywhere else.

## Plots

Often, probability mass functions are plotted as column charts. For example, the following plot shows the pmf of the Poisson distribution, which is We set the parameter and plot the values of the pmf only for arguments smaller than (note that the support of the distribution is , i.e., the set of all non-negative integers, but the values of become very small for ).

## More details

You can find an in-depth discussion of probability mass functions in the lecture entitled Random variables.

## Related concepts

Related concepts can be found in the following glossary entries:

Previous entry: Probability density function

Next entry: Probability space