Probability mass function (source code)

= Probability mass function
{title2=$p_X(x)$}
{wiki}

For a discrete <random variable> $X$, its probability mass function is
$$
p_X(x)=\mathbb P(X=x).
$$
It is nonnegative and sums to one over the possible values of $X$.