This is “Probability Distributions for Discrete Random Variables”, section 4.2 from the book Beginning Statistics (v. 1.0). For details on it (including licensing), click here.

For more information on the source of this book, or why it is available for free, please see the project's home page. You can browse or download additional books there. To download a .zip file containing this book to use offline, simply click here.

Has this book helped you? Consider passing it on:
Creative Commons supports free culture from music to education. Their licenses helped make this book available to you.
DonorsChoose.org helps people like you help teachers fund their classroom projects, from art supplies to books to calculators.

4.2 Probability Distributions for Discrete Random Variables

Learning Objectives

  1. To learn the concept of the probability distribution of a discrete random variable.
  2. To learn the concepts of the mean, variance, and standard deviation of a discrete random variable, and how to compute them.

Probability Distributions

Associated to each possible value x of a discrete random variable X is the probability P(x) that X will take the value x in one trial of the experiment.

Definition

The probability distributionA list of each possible value and its probability. of a discrete random variable X is a list of each possible value of X together with the probability that X takes that value in one trial of the experiment.

The probabilities in the probability distribution of a random variable X must satisfy the following two conditions:

  1. Each probability P(x) must be between 0 and 1: 0P(x)1.
  2. The sum of all the probabilities is 1: ΣP(x)=1.

Example 1

A fair coin is tossed twice. Let X be the number of heads that are observed.

  1. Construct the probability distribution of X.
  2. Find the probability that at least one head is observed.

Solution:

  1. The possible values that X can take are 0, 1, and 2. Each of these numbers corresponds to an event in the sample space S={hh,ht,th,tt} of equally likely outcomes for this experiment: X = 0 to {tt}, X = 1 to {ht,th}, and X = 2 to {hh}. The probability of each of these events, hence of the corresponding value of X, can be found simply by counting, to give

    x012P(x)0.250.500.25

    This table is the probability distribution of X.

  2. “At least one head” is the event X ≥ 1, which is the union of the mutually exclusive events X = 1 and X = 2. Thus

    P(X1)=P(1)+P(2)=0.50+0.25=0.75

    A histogram that graphically illustrates the probability distribution is given in Figure 4.1 "Probability Distribution for Tossing a Fair Coin Twice".

Figure 4.1 Probability Distribution for Tossing a Fair Coin Twice

Example 2

A pair of fair dice is rolled. Let X denote the sum of the number of dots on the top faces.

  1. Construct the probability distribution of X.
  2. Find P(X ≥ 9).
  3. Find the probability that X takes an even value.

Solution:

The sample space of equally likely outcomes is

111213141516212223242526313233343536414243444546515253545556616263646566
  1. The possible values for X are the numbers 2 through 12. X = 2 is the event {11}, so P(2)=136. X = 3 is the event {12,21}, so P(3)=236. Continuing this way we obtain the table

    x23456789101112P(x)136236336436536636536436336236136

    This table is the probability distribution of X.

  2. The event X ≥ 9 is the union of the mutually exclusive events X = 9, X = 10, X = 11, and X = 12. Thus

    P(X9)=P(9)+P(10)+P(11)+P(12)=436+336+236+136=1036=0.27-
  3. Before we immediately jump to the conclusion that the probability that X takes an even value must be 0.5, note that X takes six different even values but only five different odd values. We compute

    P(X is even)=P(2)+P(4)+P(6)+P(8)+P(10)+P(12)=136+336+536+536+336+136=1836=0.5

    A histogram that graphically illustrates the probability distribution is given in Figure 4.2 "Probability Distribution for Tossing Two Fair Dice".

Figure 4.2 Probability Distribution for Tossing Two Fair Dice

The Mean and Standard Deviation of a Discrete Random Variable

Definition

The meanThe number ΣxP(x), measuring its average upon repeated trials. (also called the expected valueIts mean.) of a discrete random variable X is the number

μ=E(X)=ΣxP(x)

The mean of a random variable may be interpreted as the average of the values assumed by the random variable in repeated trials of the experiment.

Example 3

Find the mean of the discrete random variable X whose probability distribution is

x2123.5P(x)0.210.340.240.21

Solution:

The formula in the definition gives

μ=ΣxP(x)=(2)·0.21+(1)·0.34+(2)·0.24+(3.5)·0.21=1.135

Example 4

A service organization in a large town organizes a raffle each month. One thousand raffle tickets are sold for $1 each. Each has an equal chance of winning. First prize is $300, second prize is $200, and third prize is $100. Let X denote the net gain from the purchase of one ticket.

  1. Construct the probability distribution of X.
  2. Find the probability of winning any money in the purchase of one ticket.
  3. Find the expected value of X, and interpret its meaning.

Solution:

  1. If a ticket is selected as the first prize winner, the net gain to the purchaser is the $300 prize less the $1 that was paid for the ticket, hence X = 300 − 1 = 299. There is one such ticket, so P(299) = 0.001. Applying the same “income minus outgo” principle to the second and third prize winners and to the 997 losing tickets yields the probability distribution:

    x299199991P(x)0.0010.0010.0010.997
  2. Let W denote the event that a ticket is selected to win one of the prizes. Using the table

    P(W)=P(299)+P(199)+P(99)=0.001+0.001+0.001=0.003
  3. Using the formula in the definition of expected value,

    E(X)=299·0.001+199·0.001+99·0.001+(1)·0.997=0.4

    The negative value means that one loses money on the average. In particular, if someone were to buy tickets repeatedly, then although he would win now and then, on average he would lose 40 cents per ticket purchased.

The concept of expected value is also basic to the insurance industry, as the following simplified example illustrates.

Example 5

A life insurance company will sell a $200,000 one-year term life insurance policy to an individual in a particular risk group for a premium of $195. Find the expected value to the company of a single policy if a person in this risk group has a 99.97% chance of surviving one year.

Solution:

Let X denote the net gain to the company from the sale of one such policy. There are two possibilities: the insured person lives the whole year or the insured person dies before the year is up. Applying the “income minus outgo” principle, in the former case the value of X is 195 − 0; in the latter case it is 195200,000=199,805. Since the probability in the first case is 0.9997 and in the second case is 10.9997=0.0003, the probability distribution for X is:

x195199,805P(x)0.99970.0003

Therefore

E(X)=ΣxP(x)=195·0.9997+(199,805)·0.0003=135

Occasionally (in fact, 3 times in 10,000) the company loses a large amount of money on a policy, but typically it gains $195, which by our computation of E(X) works out to a net gain of $135 per policy sold, on average.

Definition

The variance, σ2, of a discrete random variable X is the number

σ2=Σ(xμ)2P(x)

which by algebra is equivalent to the formula

σ2=Σx2P(x)μ2

Definition

The standard deviationThe number Σ(xμ)2P(x) (also computed using [Σx2P(x)]μ2), measuring its variability under repeated trials., σ, of a discrete random variable X is the square root of its variance, hence is given by the formulas

σ=Σ(xμ)2P(x)=Σx2P(x)μ2

The variance and standard deviation of a discrete random variable X may be interpreted as measures of the variability of the values assumed by the random variable in repeated trials of the experiment. The units on the standard deviation match those of X.

Example 6

A discrete random variable X has the following probability distribution:

x1014P(x)0.20.5a0.1

A histogram that graphically illustrates the probability distribution is given in Figure 4.3 "Probability Distribution of a Discrete Random Variable".

Figure 4.3 Probability Distribution of a Discrete Random Variable

Compute each of the following quantities.

  1. a.
  2. P(0).
  3. P(X > 0).
  4. P(X ≥ 0).
  5. P(X2).
  6. The mean μ of X.
  7. The variance σ2 of X.
  8. The standard deviation σ of X.

Solution:

  1. Since all probabilities must add up to 1, a=1(0.2+0.5+0.1)=0.2.
  2. Directly from the table, P(0)=0.5.
  3. From the table, P(X>0)=P(1)+P(4)=0.2+0.1=0.3.
  4. From the table, P(X0)=P(0)+P(1)+P(4)=0.5+0.2+0.1=0.8.
  5. Since none of the numbers listed as possible values for X is less than or equal to −2, the event X ≤ −2 is impossible, so P(X ≤ −2) = 0.
  6. Using the formula in the definition of μ,

    μ=ΣxP(x)=(1)·0.2+0·0.5+1·0.2+4·0.1=0.4
  7. Using the formula in the definition of σ2 and the value of μ that was just computed,

    σ2=Σ(xμ)2P(x)=(10.4)2·0.2+(00.4)2·0.5+(10.4)2·0.2+(40.4)2·0.1=1.84
  8. Using the result of part (g), σ=1.84=1.3565.

Key Takeaways

  • The probability distribution of a discrete random variable X is a listing of each possible value x taken by X along with the probability P(x) that X takes that value in one trial of the experiment.
  • The mean μ of a discrete random variable X is a number that indicates the average value of X over numerous trials of the experiment. It is computed using the formula μ=ΣxP(x).
  • The variance σ2 and standard deviation σ of a discrete random variable X are numbers that indicate the variability of X over numerous trials of the experiment. They may be computed using the formula σ2=[Σx2P(x)]μ2, taking the square root to obtain σ.

Exercises

    Basic

  1. Determine whether or not the table is a valid probability distribution of a discrete random variable. Explain fully.

    1. x2024P(x)0.30.50.20.1

    2. x0.50.250.25P(x)0.40.60.8

    3. x1.12.54.14.65.3P(x)0.160.140.110.270.22

  2. Determine whether or not the table is a valid probability distribution of a discrete random variable. Explain fully.

    1. x01234P(x)0.250.500.350.100.30

    2. x123P(x)0.3250.4060.164

    3. x2526272829P(x)0.130.270.280.180.14

  3. A discrete random variable X has the following probability distribution:

    x7778798081P(x)0.150.150.200.400.10

    Compute each of the following quantities.

    1. P(80).
    2. P(X > 80).
    3. P(X ≤ 80).
    4. The mean μ of X.
    5. The variance σ2 of X.
    6. The standard deviation σ of X.
  4. A discrete random variable X has the following probability distribution:

    x1318202427P(x)0.220.250.200.170.16

    Compute each of the following quantities.

    1. P(18).
    2. P(X > 18).
    3. P(X ≤ 18).
    4. The mean μ of X.
    5. The variance σ2 of X.
    6. The standard deviation σ of X.
  5. If each die in a pair is “loaded” so that one comes up half as often as it should, six comes up half again as often as it should, and the probabilities of the other faces are unaltered, then the probability distribution for the sum X of the number of dots on the top faces when the two are rolled is

    x234567P(x)114441448144121441614422144 x89101112P(x)241442014416144121449144

    Compute each of the following.

    1. P(5X9).
    2. P(X ≥ 7).
    3. The mean μ of X. (For fair dice this number is 7.)
    4. The standard deviation σ of X. (For fair dice this number is about 2.415.)

    Applications

  1. Borachio works in an automotive tire factory. The number X of sound but blemished tires that he produces on a random day has the probability distribution

    x2345P(x)0.480.360.120.04
    1. Find the probability that Borachio will produce more than three blemished tires tomorrow.
    2. Find the probability that Borachio will produce at most two blemished tires tomorrow.
    3. Compute the mean and standard deviation of X. Interpret the mean in the context of the problem.
  2. In a hamster breeder's experience the number X of live pups in a litter of a female not over twelve months in age who has not borne a litter in the past six weeks has the probability distribution

    x3456789P(x)0.040.100.260.310.220.050.02
    1. Find the probability that the next litter will produce five to seven live pups.
    2. Find the probability that the next litter will produce at least six live pups.
    3. Compute the mean and standard deviation of X. Interpret the mean in the context of the problem.
  3. The number X of days in the summer months that a construction crew cannot work because of the weather has the probability distribution

    x678910P(x)0.030.080.150.200.19 x11121314P(x)0.160.100.070.02
    1. Find the probability that no more than ten days will be lost next summer.
    2. Find the probability that from 8 to 12 days will be lost next summer.
    3. Find the probability that no days at all will be lost next summer.
    4. Compute the mean and standard deviation of X. Interpret the mean in the context of the problem.
  4. Let X denote the number of boys in a randomly selected three-child family. Assuming that boys and girls are equally likely, construct the probability distribution of X.

  5. Let X denote the number of times a fair coin lands heads in three tosses. Construct the probability distribution of X.

  6. Five thousand lottery tickets are sold for $1 each. One ticket will win $1,000, two tickets will win $500 each, and ten tickets will win $100 each. Let X denote the net gain from the purchase of a randomly selected ticket.

    1. Construct the probability distribution of X.
    2. Compute the expected value E(X) of X. Interpret its meaning.
    3. Compute the standard deviation σ of X.
  7. Seven thousand lottery tickets are sold for $5 each. One ticket will win $2,000, two tickets will win $750 each, and five tickets will win $100 each. Let X denote the net gain from the purchase of a randomly selected ticket.

    1. Construct the probability distribution of X.
    2. Compute the expected value E(X) of X. Interpret its meaning.
    3. Compute the standard deviation σ of X.
  8. An insurance company will sell a $90,000 one-year term life insurance policy to an individual in a particular risk group for a premium of $478. Find the expected value to the company of a single policy if a person in this risk group has a 99.62% chance of surviving one year.

  9. An insurance company will sell a $10,000 one-year term life insurance policy to an individual in a particular risk group for a premium of $368. Find the expected value to the company of a single policy if a person in this risk group has a 97.25% chance of surviving one year.

  10. An insurance company estimates that the probability that an individual in a particular risk group will survive one year is 0.9825. Such a person wishes to buy a $150,000 one-year term life insurance policy. Let C denote how much the insurance company charges such a person for such a policy.

    1. Construct the probability distribution of X. (Two entries in the table will contain C.)
    2. Compute the expected value E(X) of X.
    3. Determine the value C must have in order for the company to break even on all such policies (that is, to average a net gain of zero per policy on such policies).
    4. Determine the value C must have in order for the company to average a net gain of $250 per policy on all such policies.
  11. An insurance company estimates that the probability that an individual in a particular risk group will survive one year is 0.99. Such a person wishes to buy a $75,000 one-year term life insurance policy. Let C denote how much the insurance company charges such a person for such a policy.

    1. Construct the probability distribution of X. (Two entries in the table will contain C.)
    2. Compute the expected value E(X) of X.
    3. Determine the value C must have in order for the company to break even on all such policies (that is, to average a net gain of zero per policy on such policies).
    4. Determine the value C must have in order for the company to average a net gain of $150 per policy on all such policies.
  12. A roulette wheel has 38 slots. Thirty-six slots are numbered from 1 to 36; half of them are red and half are black. The remaining two slots are numbered 0 and 00 and are green. In a $1 bet on red, the bettor pays $1 to play. If the ball lands in a red slot, he receives back the dollar he bet plus an additional dollar. If the ball does not land on red he loses his dollar. Let X denote the net gain to the bettor on one play of the game.

    1. Construct the probability distribution of X.
    2. Compute the expected value E(X) of X, and interpret its meaning in the context of the problem.
    3. Compute the standard deviation of X.
  13. A roulette wheel has 38 slots. Thirty-six slots are numbered from 1 to 36; the remaining two slots are numbered 0 and 00. Suppose the “number” 00 is considered not to be even, but the number 0 is still even. In a $1 bet on even, the bettor pays $1 to play. If the ball lands in an even numbered slot, he receives back the dollar he bet plus an additional dollar. If the ball does not land on an even numbered slot, he loses his dollar. Let X denote the net gain to the bettor on one play of the game.

    1. Construct the probability distribution of X.
    2. Compute the expected value E(X) of X, and explain why this game is not offered in a casino (where 0 is not considered even).
    3. Compute the standard deviation of X.
  14. The time, to the nearest whole minute, that a city bus takes to go from one end of its route to the other has the probability distribution shown. As sometimes happens with probabilities computed as empirical relative frequencies, probabilities in the table add up only to a value other than 1.00 because of round-off error.

    x424344454647P(x)0.100.230.340.250.050.02
    1. Find the average time the bus takes to drive the length of its route.
    2. Find the standard deviation of the length of time the bus takes to drive the length of its route.
  15. Tybalt receives in the mail an offer to enter a national sweepstakes. The prizes and chances of winning are listed in the offer as: $5 million, one chance in 65 million; $150,000, one chance in 6.5 million; $5,000, one chance in 650,000; and $1,000, one chance in 65,000. If it costs Tybalt 44 cents to mail his entry, what is the expected value of the sweepstakes to him?

    Additional Exercises

  1. The number X of nails in a randomly selected 1-pound box has the probability distribution shown. Find the average number of nails per pound.

    x100101102P(x)0.010.960.03
  2. Three fair dice are rolled at once. Let X denote the number of dice that land with the same number of dots on top as at least one other die. The probability distribution for X is

    x0u3P(x)p1536136
    1. Find the missing value u of X.
    2. Find the missing probability p.
    3. Compute the mean of X.
    4. Compute the standard deviation of X.
  3. Two fair dice are rolled at once. Let X denote the difference in the number of dots that appear on the top faces of the two dice. Thus for example if a one and a five are rolled, X = 4, and if two sixes are rolled, X = 0.

    1. Construct the probability distribution for X.
    2. Compute the mean μ of X.
    3. Compute the standard deviation σ of X.
  4. A fair coin is tossed repeatedly until either it lands heads or a total of five tosses have been made, whichever comes first. Let X denote the number of tosses made.

    1. Construct the probability distribution for X.
    2. Compute the mean μ of X.
    3. Compute the standard deviation σ of X.
  5. A manufacturer receives a certain component from a supplier in shipments of 100 units. Two units in each shipment are selected at random and tested. If either one of the units is defective the shipment is rejected. Suppose a shipment has 5 defective units.

    1. Construct the probability distribution for the number X of defective units in such a sample. (A tree diagram is helpful.)
    2. Find the probability that such a shipment will be accepted.
  6. Shylock enters a local branch bank at 4:30 p.m. every payday, at which time there are always two tellers on duty. The number X of customers in the bank who are either at a teller window or are waiting in a single line for the next available teller has the following probability distribution.

    x0123P(x)0.1350.1920.2840.230 x456P(x)0.1030.0510.005
    1. What number of customers does Shylock most often see in the bank the moment he enters?
    2. What number of customers waiting in line does Shylock most often see the moment he enters?
    3. What is the average number of customers who are waiting in line the moment Shylock enters?
  7. The owner of a proposed outdoor theater must decide whether to include a cover that will allow shows to be performed in all weather conditions. Based on projected audience sizes and weather conditions, the probability distribution for the revenue X per night if the cover is not installed is

    WeatherxP(x)Clear$30000.61Threatening$28000.17Light rain$19750.11Show-cancelling rain$00.11

    The additional cost of the cover is $410,000. The owner will have it built if this cost can be recovered from the increased revenue the cover affords in the first ten 90-night seasons.

    1. Compute the mean revenue per night if the cover is not installed.
    2. Use the answer to (a) to compute the projected total revenue per 90-night season if the cover is not installed.
    3. Compute the projected total revenue per season when the cover is in place. To do so assume that if the cover were in place the revenue each night of the season would be the same as the revenue on a clear night.
    4. Using the answers to (b) and (c), decide whether or not the additional cost of the installation of the cover will be recovered from the increased revenue over the first ten years. Will the owner have the cover installed?

Answers

    1. no: the sum of the probabilities exceeds 1
    2. no: a negative probability
    3. no: the sum of the probabilities is less than 1
    1. 0.4
    2. 0.1
    3. 0.9
    4. 79.15
    5. σ2=1.5275
    6. σ = 1.2359
    1. 0.6528
    2. 0.7153
    3. μ = 7.8333
    4. σ2=5.4866
    5. σ = 2.3424
    1. 0.79
    2. 0.60
    3. μ = 5.8, σ = 1.2570
  1. x0123P(x)1/83/83/81/8

    1. x199949999P(x)498750001500025000105000

    2. −0.4
    3. 17.8785
  2. 136

    1. xCC150,000P(x)0.98250.0175

    2. C2625
    3. C ≥ 2625
    4. C ≥ 2875
    1. x11P(x)20381838

    2. E(X)=0.0526 In many bets the bettor sustains an average loss of about 5.25 cents per bet.
    3. 0.9986
    1. 43.54
    2. 1.2046
  1. 101.02

    1. x012345P(x)6361036836636436236

    2. 1.9444
    3. 1.4326
    1. x012P(x)0.9020.0960.002

    2. 0.902
    1. 2523.25
    2. 227,092.5
    3. 270,000
    4. The owner will install the cover.