Login
📚 Mostly Harmless Statistics
Chapters ▾
⇩ Download ▾

5.2 Discrete Probability Distributions

In many cases, the random variable is what you are measuring, but when it comes to discrete random variables, it is usually what you are counting. For the example of height, the random variable is the height of the child. For the example of how many fleas are on prairie dogs in a colony, the random variable is the number of fleas on a prairie dog in a colony.

Now suppose you put all the possible values of the random variable together with the probability that the random variable would occur. You could then have a distribution like before, but now it is called a probability distribution since it involves probabilities. A probability distribution is an assignment of probabilities to all the possible values of the random variable. The abbreviation of pdf is used for a probability density (distribution) function in your calculators.

The probability distribution of X lists all the possible values of x and their corresponding probabilities.

Words Are Important!

When finding probabilities pay close attention to the following phrases.

Figure 5-2

Rare Events

The reason probability is studied in statistics is to help in making decisions in inferential statistics.

To understand how making decisions is done, the concept of a rare event is needed.

Rare Event Rule for Inferential Statistics: If, under a given assumption, the probability of a particular observed event is extremely small, then you can conclude that the assumption is probably not correct.

An example of this is suppose you roll an assumed fair die 1,000 times and get six 600 times, when you should have only rolled a six around 160 times, then you should believe that your assumption about it being a fair die is untrue.

Determining if an event is unusual: If you are looking at a value of X for a discrete variable, and the P(the variable has a value of x or more) ≤ 0.05, then you can consider the x an unusually high value. Another way to think of this is if the probability of getting such a high value is less than or equal to 0.05, then the event of getting the value x is unusual.

Similarly, if the P(the variable has a value of x or less) ≤ 0.05, then you can consider this an unusually low value. Another way to think of this is if the probability of getting a value as small as x is less than or equal to 0.05, then the event x is considered unusual.

Why is it "x or more" or "x or less" instead of just "x" when you are determining if an event is unusual?

Consider this example: you and your friend go out to lunch every day. Instead of each paying for their own lunch, you decide to flip a coin, and the loser pays for both lunches. Your friend seems to be winning more often than you would expect, so you want to determine if this is unusual before you decide to change how you pay for lunch (or accuse your friend of cheating). The process for how to calculate these probabilities will be presented in a later section on the binomial distribution.

If your friend won 6 out of 10 lunches, the probability of that happening turns out to be about 20.5%, not unusual. The probability of winning 6 or more is about 37.7%, still not unusual.

However, what happens if your friend won 501 out of 1,000 lunches? That does not seem so unlikely! The probability of winning 501 or more lunches is about 47.8%, and that is consistent with your hunch that this probability is not so unusual. Nevertheless, the probability of winning exactly 501 lunches is much less, only about 2.5%.

That is why the probability of getting exactly that value is not the right question to ask: you should ask the probability of getting that value or more (or that value or less on the other side).

The value 0.05 will be explained later, and it is not the only value you can use for deciding what is unusual.

What was that voice?" shouted Arthur. "I don't know," yelled Ford,

"I don't know. It sounded like a measurement of probability."

"Probability? What do you mean?"

"Probability. You know, like two to one, three to one, five to four against. It said two to the power of one hundred thousand to one against. That's pretty improbable you know."

A million-gallon vat of custard upended itself over them without warning.

"But what does it mean?" cried Arthur.

"What, the custard?" "No, the measurement of probability!"

"I don't know. I don't know at all. I think we're on some kind of spaceship."

(Adams, 2002)

5.2.1 Mean of a Discrete Probability Distribution

The mean of a discrete random variable X is an average of the possible values of x, which considers the fact that not all outcomes are equally likely. The mean of a random variable is the value of x that one would expect to see after averaging a large number of trials. The mean of a random variable does not need to be a possible value of x.

Note using this method we are not dividing the answer by the total number of students since the probabilities are found by dividing the frequency by the total so we would not divide again.

It may have been tempting to set up the table with the x values 0, 1 and 2 books. This would be fine if the question was asking for the average number of books sold. Since the books are different prices, we would not be able to get an average cost. Make sure X represents the variable that you are using to calculate the mean.

Just as with any data set, you can calculate the mean and standard deviation. In problems involving a table of probabilities, the probability distribution represents a population. The probability distribution in most cases comes from repeating an experiment many times. This is because you are using the data from repeated experiments to estimate the true probability.

Note, the mean can be thought of as the expected value. It is the value you expect to get on average, if the trials were repeated an infinite number of times. The mean or expected value does not need to be a whole number, even if the possible values of x are whole numbers.

5.2.2 Variance & Standard Deviation of Discrete Probability Distributions

Suppose you ran the university bookstore. Besides how much revenue you expect to generate, you might also want to know the volatility (variability) in your revenue.

The variance and standard deviation can be used to describe the variability of a random variable. When we first introduced a method for finding the variance and standard deviation for a data set we had sample data and found sample statistics. We first computed deviations from the mean (xi − μ), squared those deviations (xi − μ)2, and took an average to get the variance. In the case of a random variable, we again compute squared deviations. However, we take their sum weighted by their corresponding probabilities, just as we did for the expectation. This weighted sum of squared deviations equals the variance, and we calculate the standard deviation by taking the square root of the variance, just as we did for a sample variance. We also are using notation for the population parameters σ and σ2, instead of the sample statistics s and s2.

There are many situations that we can model a discrete distribution with a formula. This will make finding probabilities with large sample sizes much easier than making a table. There are many types of discrete distributions. We will just be covering a few of them.

TI-84: Press [STAT], choose 1:Edit. For x and P(x) data pairs, enter all x-values in one list. Enter all corresponding P(x) values in a second list. Press [STAT]. Use cursor keys to highlight CALC. Select 1:1-Var Stats.

Enter list 1 for List and list 2 for frequency list. Press Enter to calculate the statistics. For TI-83, you will just see 1-Var Stats on the screen. Enter each list separated with a comma by pressing [2nd], then press the number 1 key corresponding to your x list, then a comma, then [2nd] and the number 2 key corresponding to your P(x) values. The home screen should look like this 1-Var Stats L1,L2.

TI-84 screens for a probability distribution: the list editor with values 1 through 7 in L1 and probabilities 0.267, 0.336, 0.158, 0.137, 0.063, 0.024, and 0.015 in L2; the 1-Var Stats setup with List L1 and FreqList L2; and results showing x̄ = 2.525, Σx = 2.525, Σx² = 8.399, σx = 1.422453866, and n = 1.

Where the calculator says x¯ is µ the population mean and σx is the population standard deviation (square this number to get the population variance).

TI-89: Go to the [Apps] Stat/List Editor, and type the x values into List 1 and P(x) values into List2. Select F4 for the Calc menu. Use cursor keys to highlight 1:1-Var Stats.

Under List, press [2nd] Var-Link, then select list1. Under Freq, press [2nd] Var-Link, then select list2. Press enter twice and the statistics will appear in a new window.

Use the cursor keys to arrow up and down to see all of the values. Note: x¯ this is µ the population mean and σx is the population standard deviation; square this value to get the variance.

TI-89 Stat/List Editor screens: the Calc menu listing 1-Var Stats, 2-Var Stats, Regressions, Probability, CorrMat, and Show Stats; the 1-Var Stats dialog with List set to list1 and Freq set to list2; and a results window showing x̄ = 2.525, Σx = 2.525, Σx² = 8.399, Sx undefined, σx = 1.42245, and n = 1.

Bernoulli trial

The focus of the previous section was on discrete probability distribution tables. To find the table for those situations, we usually need to actually conduct the experiment and collect data. Then one can calculate the experimental probabilities.

Swiss postage stamp labeled Mathematica and Helvetia 80 with a portrait of Jacob Bernoulli, the formula (1/n)(x1 + … + xn) → E(X), and a jagged line that settles toward a horizontal line, illustrating the law of large numbers.

Jacob Bernoulli

If certain conditions are met, we can instead use theoretical probabilities. One of these theoretical probabilities can be used when we have a Bernoulli trial.

Properties of a Bernoulli trial or binomial trial:

  1. Trials are independent, which means that what happens on one trial does not influence the outcomes of other trials.
  2. There are only two outcomes, which are called a success and a failure.
  3. The probability of a success does not change from trial to trial, where p = probability of success and q = probability of failure, the complement of p, q = 1 – p.

If you know you have a Bernoulli trial, then you can calculate probabilities using some theoretical probability formulas. This is important because Bernoulli trials come up often in real life.

Examples of Bernoulli experiments are:

Bernoulli trials are used in both the geometric and binomial distributions.

Adapted from Mostly Harmless Statistics by Rachel Webb (Portland State University), hosted on LibreTexts (stats.libretexts.org) and licensed under CC BY-SA 4.0. Changes were made. License: CC-BY-SA-4.0.