Skip to ContentGo to accessibility pageKeyboard shortcuts menu
OpenStax Logo
Statistics

4.1 Probability Distribution Function (PDF) for a Discrete Random Variable

Statistics4.1 Probability Distribution Function (PDF) for a Discrete Random Variable

There are two types of random variables, discrete random variables and continuous random variables. The values of a discrete random variable are countable, which means the values are obtained by counting. All random variables we discussed in previous examples are discrete random variables. We counted the number of red balls, the number of heads, or the number of female children to get the corresponding random variable values. The values of a continuous random variable are uncountable, which means the values are not obtained by counting. Instead, they are obtained by measuring. For example, let X = temperature of a randomly selected day in June in a city. The value of X can be 68°, 71.5°, 80.6°, or 90.32°. These values are obtained by measuring by a thermometer. Another example of a continuous random variable is the height of a randomly selected high school student. The value of this random variable can be 5'2", 6'1", or 5'8". Those values are obtained by measuring by a ruler.

A discrete probability distribution function has two characteristics:

  1. Each probability is between zero and one, inclusive.
  2. The sum of the probabilities is one.

Example 4.1

A child psychologist is interested in the number of times a newborn baby's crying wakes its mother after midnight. For a random sample of 50 mothers, the following information was obtained. Let X = the number of times per week a newborn baby's crying wakes its mother after midnight. For this example, x = 0, 1, 2, 3, 4, 5.

P(x) = probability that X takes on a value x.

x P(x)
0 P(x = 0) = 2 50 2 50
1 P(x = 1) = 11 50 11 50
2 P(x = 2) = 23 50 23 50
3 P(x = 3) = 9 50 9 50
4 P(x = 4) = 4 50 4 50
5 P(x = 5) = 1 50 1 50
Table 4.2

X takes on the values 0, 1, 2, 3, 4, 5. This is a discrete PDF because we can count the number of values of x and also because of the following two reasons:

  1. Each P(x) is between zero and one, therefore inclusive
  2. The sum of the probabilities is one, that is,
2 50 + 11 50 + 23 50 + 9 50 + 4 50 + 1 50 =1 2 50 + 11 50 + 23 50 + 9 50 + 4 50 + 1 50 =1

Try It 4.1

A hospital researcher is interested in the number of times the average post-op patient will ring the nurse during a 12-hour shift. For a random sample of 50 patients, the following information was obtained. Let X = the number of times a patient rings the nurse during a 12-hour shift. For this exercise, x = 0, 1, 2, 3, 4, 5. P(x) = the probability that X takes on value x. Why is this a discrete probability distribution function (two reasons)?

X P(x)
0 P(x = 0) = 450450
1 P(x = 1) = 850850
2 P(x = 2) = 16501650
3 P(x = 3) = 1450 1450
4 P(x = 4) = 650650
5 P(x = 5) = 250250
Table 4.3

Example 4.2

Suppose Nancy has classes three days a week. She attends classes three days a week 80 percent of the time, two days 15 percent of the time, one day 4 percent of the time, and no days 1 percent of the time. Suppose one week is randomly selected.

Problem

Describe the random variable in words. Let X = the number of days Nancy ________.

Problem

b. In this example, what are possible values of X?

Problem

c. Suppose one week is randomly chosen. Construct a probability distribution table (called a PDF table) like the one in Example 4.1. The table should have two columns labeled x and P(x).

Try It 4.2

Jeremiah has basketball practice two days a week. 90 percent of the time, he attends both practices. Eight percent of the time, he attends one practice. Two percent of the time, he does not attend either practice. What is X and what values does it take on?

Order a print copy

As an Amazon Associate we earn from qualifying purchases.

Citation/Attribution

This book may not be used in the training of large language models or otherwise be ingested into large language models or generative AI offerings without OpenStax's permission.

Want to cite, share, or modify this book? This book uses the Creative Commons Attribution License and you must attribute Texas Education Agency (TEA). The original material is available at: https://www.texasgateway.org/book/tea-statistics . Changes were made to the original material, including updates to art, structure, and other content updates.

Attribution information
  • If you are redistributing all or part of this book in a print format, then you must include on every physical page the following attribution:
    Access for free at https://openstax.org/books/statistics/pages/1-introduction
  • If you are redistributing all or part of this book in a digital format, then you must include on every digital page view the following attribution:
    Access for free at https://openstax.org/books/statistics/pages/1-introduction
Citation information

© Jan 23, 2024 Texas Education Agency (TEA). The OpenStax name, OpenStax logo, OpenStax book covers, OpenStax CNX name, and OpenStax CNX logo are not subject to the Creative Commons license and may not be reproduced without the prior and express written consent of Rice University.