Search for probability and statistics terms on Statlect
StatLect

Discrete random variable

by , PhD

A random variable is said to be discrete if the set of values it can take (its support) has either a finite or an infinite but countable number of elements. Its probability distribution can be characterized through a function called probability mass function.

Table of Contents

Definition

The following is a formal definition.

Definition A random variable X is discrete if its support R_X is countable and there exist a function [eq1], called probability mass function of X, such that[eq2]where [eq3] is the probability that X will take the value x.

A discrete random variable is often said to have a discrete probability distribution.

Examples

Here are some examples.

Example 1

Let X be a random variable that can take only three values (1, $2$ and $3 $), each with probability $1/3$. Then, X is a discrete variable. Its support is[eq4]and its probability mass function is[eq5]

So, for example, the probability that X will be equal to $2$ is[eq6]and the probability that X will be equal to $2/3$ is[eq7]because $2/3$ does not belong to the support of X.

Example 2

Let X be a random variable. Let its support be the set of natural numbers, that is,[eq8]and its probability mass function be[eq9]

Note that differently from the previous example, where the support was finite, in this example the support is infinite.

What is the probability that x will be equal to $10$? Since $10$ is a natural number, it belongs to the support of X and its probability is[eq10]

What is the probability that x will be equal to $1/2$? Since $1/2$ is not a natural number, it does not belong to the support. As a consequence, its probability is[eq11]

Probability of a set of numbers

How do we compute the probability that the realization of a discrete variable X will belong to a given set of numbers A?

This is accomplished by summing the values of the probability mass function over all the elements of A:[eq12]

Example Consider the variable X introduced in Example 2 above. Suppose we want to compute the probability that X belongs to the set[eq13]Then,[eq14]

Expected value

The expected value of a discrete random variable is computed with the formula[eq15]

Note that the sum is over the whole support R_X.

Example Consider a variable having support[eq16]and probability mass function[eq17]Its expected value is[eq18]

Variance

By using the definition of variance[eq19]and the formula for the expected value illustrated in the previous section, we can write the variance of a discrete random variable as[eq20]

Example Take the variable in the previous example. We have already calculated its expected value:[eq21]Its variance is[eq22]

Common discrete distributions

The next table contains some examples of discrete distributions that are frequently encountered in probability theory and statistics.

Name of the discrete distribution Support Type of support
Bernoulli {0,1} Finite
Binomial {0,1,2,...,n} Finite
Poisson The set of all non-negative integer numbers Infinite but countable

More details

You can read a thorough explanation of discrete random variables in the lecture entitled Random variables.

You can also find more details about the probability mass function in this glossary entry.

Keep reading the glossary

Previous entry: Design matrix

Next entry: Discrete random vector

How to cite

Please cite as:

Taboga, Marco (2021). "Discrete random variable", Lectures on probability theory and mathematical statistics. Kindle Direct Publishing. Online appendix. https://www.statlect.com/glossary/discrete-random-variable.

The books

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