In
probability
Probability is a branch of mathematics and statistics concerning events and numerical descriptions of how likely they are to occur. The probability of an event is a number between 0 and 1; the larger the probability, the more likely an e ...
and
statistics
Statistics (from German language, German: ', "description of a State (polity), state, a country") is the discipline that concerns the collection, organization, analysis, interpretation, and presentation of data. In applying statistics to a s ...
, a probability mass function (sometimes called ''probability function'' or ''frequency function'') is a function that gives the probability that a
discrete random variable is exactly equal to some value. Sometimes it is also known as the discrete probability density function. The probability mass function is often the primary means of defining a
discrete probability distribution, and such functions exist for either
scalar or
multivariate random variables whose
domain is discrete.
A probability mass function differs from a
continuous probability density function (PDF) in that the latter is associated with continuous rather than discrete random variables. A continuous PDF must be
integrated over an interval to yield a probability.
The value of the random variable having the largest probability mass is called the
mode.
Formal definition
Probability mass function is the probability distribution of a
discrete random variable, and provides the possible values and their associated probabilities. It is the function