Search for probability and statistics terms on Statlect
StatLect

Legitimate probability mass function

by , PhD

In this lecture we analyze two properties of probability mass functions (pmfs).

We prove not only that any probability mass function satisfies these two properties, but also that any function satisfying them is a legitimate pmf.

As a consequence, when we need to check whether a function is a valid pmf, we just need to verify that the two properties hold.

Table of Contents

Properties of probability mass functions

Let us start with a formal characterization.

Proposition Let X be a discrete random variable and let [eq1] be its probability mass function. Then, the function [eq2] satisfies the following two properties:

  1. Non-negativity: [eq3] for any $xin U{211d} $;

  2. Sum over the support equals 1: [eq4], where R_X is the support of X.

Proof

Remember that, by the definition of a probability mass function, [eq5] is such that[eq6]

Probabilities cannot be negative, therefore [eq7] and, as a consequence, [eq3]. This proves Property 1 (non-negativity).

Furthermore, the probability of a sure thing must be equal to 1. Since, by the very definition of support, the event [eq9] is a sure thing, then[eq10]which proves Property 2 (sum over the support equals 1).

How to verify that a pmf is valid

Any probability mass function must satisfy Properties 1 and 2 above.

By using some standard results from measure theory (omitted here), it is possible to prove that the converse is also true: any function [eq11] satisfying the two properties above is a pmf.

Proposition Let [eq2] be a function satisfying the following two properties:

  1. Non-negativity: [eq3] for any $xin U{211d} $;

  2. Sum over the support equals 1: [eq4], where R_X is the support of X.

Then, there exists a discrete random variable X whose probability mass function is [eq2].

As a consequence, we only need to check that these two properties hold when we want to prove that a function is a valid pmf.

How to build valid pmfs

The proposition above gives us a powerful method for constructing probability mass functions.

Take a subset of the set of real numbers [eq16].

Take any function g(x) that is non-negative on R_X (non-negative means that [eq17] for any $xin R_{X}$).

If the sum[eq18]is well-defined and is finite and strictly positive, then define[eq19]

Since $S$ is strictly positive, [eq2] is non-negative and it satisfies Property 1.

The function [eq2] also satisfies Property 2 because[eq22]

Therefore, any function g(x) that is non-negative on R_X (R_X is chosen arbitrarily) can be used to construct a pmf if its sum over R_X is well-defined and it is finite and strictly positive.

Example Define[eq23]and a function g(x) as follows:[eq24]Can we use g(x) to build a probability mass function? First of all, we have to check that g(x) is non-negative. This is obviously true, because $x^{2}$ is always non-negative. Then, we have to check that the sum of g(x) over R_X exists and is finite and strictly positive:[eq25]Since $S$ exists and is finite and strictly positive, we can define[eq26]By the above proposition, [eq2] is a valid probability mass function.

Solved exercises

Below you can find some exercises with explained solutions.

Exercise 1

Consider the following function:[eq28]

Determine whether [eq2] is a valid probability mass function.

Solution

For [eq30] we have[eq31]while for [eq32] we have[eq33]Therefore, [eq3] for any $xin U{211d} $ and the non-negativity property is satisfied. The other necessary property (sum over the support equals 1) is also satisfied because[eq35]

Exercise 2

Consider the following function:[eq36]

Check that [eq2] is a legitimate probability mass function.

Solution

For [eq38] we have[eq39]while for [eq40] we have[eq33]Therefore, [eq3] for any $xin U{211d} $ and the non-negativity property is satisfied. The other necessary property (sum over the support equals 1) is also satisfied because[eq43]

Exercise 3

Consider the following function:[eq44]

Prove that [eq2] is a valid pmf.

Solution

For $xin U{2115} $ we have[eq46]because $4^{1-x}$ is strictly positive. For $x
otin U{2115} $ we have[eq33]Therefore, [eq3] for any $xin U{211d} $ and the non-negativity property is satisfied. The other necessary property (sum over the support equals 1) is also satisfied because[eq49]

How to cite

Please cite as:

Taboga, Marco (2021). "Legitimate probability mass function", Lectures on probability theory and mathematical statistics. Kindle Direct Publishing. Online appendix. https://www.statlect.com/fundamentals-of-probability/legitimate-probability-mass-function.

The books

Most of the learning materials found on this website are now available in a traditional textbook format.