Discrete random variable practice problems

By Jude Wallis · Published

This set has eight problems on discrete random variables: checking whether a table is a valid probability distribution, filling in a missing probability, computing the mean and the standard deviation, interpreting the mean as a long-run average, and choosing between two options by expected value.

AP Statistics: Unit 2 (topics 2.8 Introduction to Random Variables and Probability Distributions, 2.9 Parameters of Random Variables). In the Fall 2026 AP Statistics course, constructing a probability distribution for a discrete random variable is Unit 2 topic 2.8 (objective 2.8.A), calculating the mean and standard deviation of a discrete random variable is topic 2.9 (objective 2.9.A), and interpreting those parameters in the context of a specific population is objective 2.9.B. Unit 2 carries 15 to 25 percent of the multiple-choice section. Combining two random variables was removed from this course, so every problem here works with a single random variable.

What these problems build

These 8 problems cover the two Unit 2 skills that usually appear together on a random-variable question: building or checking a discrete probability distribution, then pulling the mean and standard deviation out of it.

A discrete random variable XX takes numerical values that come from a random process, and each value carries a fixed probability. Its mean, written μX\mu_X (say "mu") and also called the expected value, is μX=xiP(xi)\mu_X = \sum x_i P(x_i). Its standard deviation, written σX\sigma_X (say "sigma"), is σX=(xiμX)2P(xi)\sigma_X = \sqrt{\sum (x_i - \mu_X)^2 P(x_i)}. Both are parameters, so they describe the whole distribution rather than one sample you happened to collect.

Problems 1 through 3 are routine table work. Problems 4 through 8 add the standard deviation, an interpretation you have to write in words, a decision between two options, and a distribution you build from a described random process.

Work each problem on paper before opening its solution, and keep every probability-weighted product visible so a wrong step is easy to spot. If the setup feels shaky, read how to find expected value and the course pages on random variables and parameters of random variables. To check a single answer, use the expected value calculator, and find more sets on the practice page.

Problem 1

A robotics club logs how many 3D printer jobs fail during a school day. Three students each propose a probability distribution for XX, the number of failed jobs.

Model A:

xx0123
P(x)P(x)0.450.300.150.05

Model B:

xx0123
P(x)P(x)0.500.350.25-0.10

Model C:

xx0123
P(x)P(x)0.400.350.200.05

Which models are valid probability distributions? For each one that is not, say exactly which rule it breaks.

Show the worked solution
  1. A table is a valid probability distribution for a discrete random variable only if two rules both hold: every probability is between 0 and 1 inclusive, and the probabilities across all possible values add to exactly 1.

  2. Check Model A against the second rule: 0.45+0.30=0.750.45 + 0.30 = 0.75, then 0.75+0.15=0.900.75 + 0.15 = 0.90, then 0.90+0.05=0.950.90 + 0.05 = 0.95. The total is 0.950.95, not 11, so Model A is not valid.

  3. Check Model B against the first rule: P(3)=0.10P(3) = -0.10 is negative, and no probability can be below 0, so Model B is not valid.

  4. Model B is worth a second look, because its total is fine: 0.50+0.35=0.850.50 + 0.35 = 0.85, then 0.85+0.25=1.100.85 + 0.25 = 1.10, then 1.10+(0.10)=1.001.10 + (-0.10) = 1.00. Adding to 1 is not enough on its own when one entry sits outside the interval from 0 to 1.

  5. Check Model C against both rules. Every value (0.400.40, 0.350.35, 0.200.20, 0.050.05) lies between 0 and 1, and 0.40+0.35=0.750.40 + 0.35 = 0.75, then 0.75+0.20=0.950.75 + 0.20 = 0.95, then 0.95+0.05=1.000.95 + 0.05 = 1.00.

  6. Model C passes both rules, so it is the only valid distribution of the three.

Only Model C is valid. Model A's probabilities add to 0.950.95 instead of 11, and Model B has P(3)=0.10P(3) = -0.10, which is not a legal probability even though its entries total 1.

Problem 2

A high school jazz band tracks XX, the number of student solos in one performance. One probability was smudged on the director's chart.

Solos xx0123
P(x)P(x)0.15?0.300.20

(a) Find the missing probability. (b) Find P(X2)P(X \geq 2), the probability that a performance has at least two solos.

Show the worked solution
  1. For part (a), use the rule that the probabilities of a discrete distribution add to 1. Add the three probabilities you can read: 0.15+0.30=0.450.15 + 0.30 = 0.45, then 0.45+0.20=0.650.45 + 0.20 = 0.65.

  2. Subtract that total from 1 to recover the missing entry: P(1)=10.65=0.35P(1) = 1 - 0.65 = 0.35.

  3. Confirm the result is legal: 0.350.35 lies between 0 and 1, so the completed table is a valid probability distribution.

  4. For part (b), "at least two solos" means X=2X = 2 or X=3X = 3. Those two outcomes cannot both happen in one performance, so add their probabilities: P(X2)=0.30+0.20P(X \geq 2) = 0.30 + 0.20.

  5. Add: 0.30+0.20=0.500.30 + 0.20 = 0.50.

(a) P(1)=0.35P(1) = 0.35. (b) P(X2)=0.50P(X \geq 2) = 0.50, so half of performances feature at least two solos.

Problem 3

A campus mail room records XX, the number of packages a student picks up in a single visit.

Packages xx12345
P(x)P(x)0.350.300.200.100.05

Find the mean number of packages per visit.

Show the worked solution
  1. Write the formula for the mean of a discrete random variable, which weights every value by its probability: μX=xiP(xi)\mu_X = \sum x_i P(x_i), where xix_i is a possible value and P(xi)P(x_i) is its probability.

  2. Check the table first: 0.35+0.30=0.650.35 + 0.30 = 0.65, then 0.65+0.20=0.850.65 + 0.20 = 0.85, then 0.85+0.10=0.950.85 + 0.10 = 0.95, then 0.95+0.05=1.000.95 + 0.05 = 1.00. The probabilities add to 1, so the distribution is valid.

  3. Multiply each package count by its probability: 1(0.35)=0.351(0.35) = 0.35, 2(0.30)=0.602(0.30) = 0.60, 3(0.20)=0.603(0.20) = 0.60, 4(0.10)=0.404(0.10) = 0.40, and 5(0.05)=0.255(0.05) = 0.25.

  4. Add the five products in order: 0.35+0.60=0.950.35 + 0.60 = 0.95, then 0.95+0.60=1.550.95 + 0.60 = 1.55, then 1.55+0.40=1.951.55 + 0.40 = 1.95, then 1.95+0.25=2.201.95 + 0.25 = 2.20.

  5. The mean is 2.202.20 packages. Notice it is not one of the listed values, which is normal for a mean.

μX=2.20\mu_X = 2.20 packages per visit.

Problem 4

A climbing gym records XX, the number of routes a member completes in one visit.

Routes xx2345
P(x)P(x)0.20.40.30.1

Find the mean and the standard deviation of XX. Show the full deviation table.

Show the worked solution
  1. Find the mean first, because the standard deviation formula needs it. Apply μX=xiP(xi)\mu_X = \sum x_i P(x_i): 2(0.2)=0.42(0.2) = 0.4, 3(0.4)=1.23(0.4) = 1.2, 4(0.3)=1.24(0.3) = 1.2, and 5(0.1)=0.55(0.1) = 0.5.

  2. Add those products: 0.4+1.2=1.60.4 + 1.2 = 1.6, then 1.6+1.2=2.81.6 + 1.2 = 2.8, then 2.8+0.5=3.32.8 + 0.5 = 3.3. So μX=3.3\mu_X = 3.3 routes.

  3. Set up the standard deviation, which is the square root of the probability-weighted squared distances from the mean: σX=(xiμX)2P(xi)\sigma_X = \sqrt{\sum (x_i - \mu_X)^2 P(x_i)}.

  4. Build the full table one column at a time, using μX=3.3\mu_X = 3.3:

    xix_iP(xi)P(x_i)xiμXx_i - \mu_X(xiμX)2(x_i - \mu_X)^2(xiμX)2P(xi)(x_i - \mu_X)^2 P(x_i)
    20.2-1.31.690.338
    30.4-0.30.090.036
    40.30.70.490.147
    50.11.72.890.289
  5. Add the last column to get the variance: 0.338+0.036=0.3740.338 + 0.036 = 0.374, then 0.374+0.147=0.5210.374 + 0.147 = 0.521, then 0.521+0.289=0.8100.521 + 0.289 = 0.810. So σX2=0.81\sigma_X^2 = 0.81.

  6. Take the square root: σX=0.81=0.9\sigma_X = \sqrt{0.81} = 0.9 routes. A typical visit lands about 0.90.9 routes away from the mean of 3.33.3.

μX=3.3\mu_X = 3.3 routes and σX=0.81=0.9\sigma_X = \sqrt{0.81} = 0.9 routes.

Problem 5

An animal shelter records XX, the number of kittens in a surrendered litter.

Kittens xx2345
P(x)P(x)0.150.400.300.15

(a) Find the mean of XX. (b) A volunteer writes, "The mean of 3.45 means every litter has 3.45 kittens." Explain what is wrong and write a correct interpretation. (c) The shelter expects 60 litters next year. How many kittens should it plan for?

Show the worked solution
  1. For part (a), confirm the table is valid: 0.15+0.40=0.550.15 + 0.40 = 0.55, then 0.55+0.30=0.850.55 + 0.30 = 0.85, then 0.85+0.15=1.000.85 + 0.15 = 1.00.

  2. Apply μX=xiP(xi)\mu_X = \sum x_i P(x_i): 2(0.15)=0.302(0.15) = 0.30, 3(0.40)=1.203(0.40) = 1.20, 4(0.30)=1.204(0.30) = 1.20, and 5(0.15)=0.755(0.15) = 0.75.

  3. Add the products: 0.30+1.20=1.500.30 + 1.20 = 1.50, then 1.50+1.20=2.701.50 + 1.20 = 2.70, then 2.70+0.75=3.452.70 + 0.75 = 3.45. So μX=3.45\mu_X = 3.45 kittens.

  4. For part (b), no single litter can hold 3.45 kittens, since XX only takes the values 2, 3, 4, and 5. The mean of a random variable is a long-run average, not a value any one outcome has to equal.

  5. A correct interpretation names the variable, the context, and the long run: over many surrendered litters, this shelter averages about 3.45 kittens per litter.

  6. For part (c), the expected total is the per-litter mean times the number of litters: 60×3.45=20760 \times 3.45 = 207 kittens.

(a) μX=3.45\mu_X = 3.45 kittens. (b) No litter can contain 3.45 kittens; the mean is the long-run average number of kittens per litter over many litters. (c) About 207 kittens from 60 litters.

Problem 6

A bike courier must commit to one of two cross-town routes for the rest of the month. Delivery time in minutes is a random variable for each route.

Route A:

Time xx222640
P(x)P(x)0.50.30.2

Route B:

Time xx242730
P(x)P(x)0.40.50.1

(a) Which route has the shorter expected delivery time? (b) Over 50 deliveries, how much time does the better route save on average?

Show the worked solution
  1. Check both tables. Route A: 0.5+0.3+0.2=1.00.5 + 0.3 + 0.2 = 1.0. Route B: 0.4+0.5+0.1=1.00.4 + 0.5 + 0.1 = 1.0. Both are valid distributions.

  2. Apply μX=xiP(xi)\mu_X = \sum x_i P(x_i) to Route A: 22(0.5)=11.022(0.5) = 11.0, 26(0.3)=7.826(0.3) = 7.8, and 40(0.2)=8.040(0.2) = 8.0.

  3. Add: 11.0+7.8=18.811.0 + 7.8 = 18.8, then 18.8+8.0=26.818.8 + 8.0 = 26.8 minutes, so E(A)=26.8E(A) = 26.8 minutes.

  4. Apply the same formula to Route B: 24(0.4)=9.624(0.4) = 9.6, 27(0.5)=13.527(0.5) = 13.5, and 30(0.1)=3.030(0.1) = 3.0.

  5. Add: 9.6+13.5=23.19.6 + 13.5 = 23.1, then 23.1+3.0=26.123.1 + 3.0 = 26.1 minutes, so E(B)=26.1E(B) = 26.1 minutes.

  6. Compare: 26.1<26.826.1 < 26.8, so Route B is faster on average by 26.826.1=0.726.8 - 26.1 = 0.7 minutes per delivery. Route A has the single fastest outcome (22 minutes), but its 40-minute delay happens often enough to push its average above B's.

  7. For part (b), multiply the per-delivery saving by the number of deliveries: 50×0.7=3550 \times 0.7 = 35 minutes. As a check, 50×26.8=134050 \times 26.8 = 1340 minutes and 50×26.1=130550 \times 26.1 = 1305 minutes, and 13401305=351340 - 1305 = 35.

(a) Route B, with E(B)=26.1E(B) = 26.1 minutes against E(A)=26.8E(A) = 26.8 minutes. (b) About 35 minutes saved over 50 deliveries.

Problem 7

A dorm laundry room has 5 dryers. Exactly 3 of them work and 2 are out of order, and the machines are unlabeled, so a student picks 2 different dryers at random. Let XX be the number of working dryers the student picks. (a) Build the probability distribution of XX. (b) Find μX\mu_X and σX\sigma_X.

Show the worked solution
  1. Count the equally likely outcomes first. Choosing 2 dryers out of 5 without regard to order gives (52)=5×42=10\binom{5}{2} = \frac{5 \times 4}{2} = 10 possible pairs, and every pair is equally likely because the choice is random.

  2. Label the working dryers W1W_1, W2W_2, W3W_3 and the broken ones B1B_1, B2B_2. For X=0X = 0 both picks must be broken, and the only such pair is {B1,B2}\{B_1, B_2\}, so that is 1 pair out of 10 and P(0)=110=0.1P(0) = \frac{1}{10} = 0.1.

  3. For X=1X = 1 the student picks one working and one broken dryer: 3 choices of working times 2 choices of broken gives 3×2=63 \times 2 = 6 pairs, so P(1)=610=0.6P(1) = \frac{6}{10} = 0.6.

  4. For X=2X = 2 both picks work, and the pairs are {W1,W2}\{W_1, W_2\}, {W1,W3}\{W_1, W_3\}, and {W2,W3}\{W_2, W_3\}, which is 3 pairs, so P(2)=310=0.3P(2) = \frac{3}{10} = 0.3. Check the total: 0.1+0.6+0.3=1.00.1 + 0.6 + 0.3 = 1.0, and the counts check too, since 1+6+3=101 + 6 + 3 = 10.

    Working dryers xx012
    P(x)P(x)0.10.60.3
  5. For part (b), apply μX=xiP(xi)\mu_X = \sum x_i P(x_i): 0(0.1)=00(0.1) = 0, 1(0.6)=0.61(0.6) = 0.6, and 2(0.3)=0.62(0.3) = 0.6, so μX=0+0.6+0.6=1.2\mu_X = 0 + 0.6 + 0.6 = 1.2 working dryers.

  6. Now use σX=(xiμX)2P(xi)\sigma_X = \sqrt{\sum (x_i - \mu_X)^2 P(x_i)}. Squared deviations from 1.21.2: (01.2)2=1.44(0 - 1.2)^2 = 1.44, (11.2)2=0.04(1 - 1.2)^2 = 0.04, and (21.2)2=0.64(2 - 1.2)^2 = 0.64.

  7. Weight each by its probability: 1.44(0.1)=0.1441.44(0.1) = 0.144, 0.04(0.6)=0.0240.04(0.6) = 0.024, and 0.64(0.3)=0.1920.64(0.3) = 0.192. Add for the variance: 0.144+0.024=0.1680.144 + 0.024 = 0.168, then 0.168+0.192=0.3600.168 + 0.192 = 0.360.

  8. Take the square root: σX=0.36=0.6\sigma_X = \sqrt{0.36} = 0.6 working dryers.

(a) P(0)=0.1P(0) = 0.1, P(1)=0.6P(1) = 0.6, P(2)=0.3P(2) = 0.3. (b) μX=1.2\mu_X = 1.2 working dryers and σX=0.36=0.6\sigma_X = \sqrt{0.36} = 0.6 working dryers.

Problem 8

A neighborhood repair cafe fixes broken household items for free. Let XX be the number of items one visitor brings, with one probability missing.

Items xx1234
P(x)P(x)0.30?0.200.10

(a) Find the missing probability. (b) Find μX\mu_X. (c) Find σX\sigma_X, rounded to three decimals. (d) The next session expects 40 visitors, and every item takes one 20-minute volunteer slot. How many volunteer hours should the organizers schedule?

Show the worked solution
  1. For part (a), the probabilities must add to 1. Add the known entries: 0.30+0.20=0.500.30 + 0.20 = 0.50, then 0.50+0.10=0.600.50 + 0.10 = 0.60. So P(2)=10.60=0.40P(2) = 1 - 0.60 = 0.40.

  2. For part (b), apply μX=xiP(xi)\mu_X = \sum x_i P(x_i): 1(0.30)=0.301(0.30) = 0.30, 2(0.40)=0.802(0.40) = 0.80, 3(0.20)=0.603(0.20) = 0.60, and 4(0.10)=0.404(0.10) = 0.40.

  3. Add: 0.30+0.80=1.100.30 + 0.80 = 1.10, then 1.10+0.60=1.701.10 + 0.60 = 1.70, then 1.70+0.40=2.101.70 + 0.40 = 2.10. So μX=2.1\mu_X = 2.1 items per visitor.

  4. For part (c), use σX=(xiμX)2P(xi)\sigma_X = \sqrt{\sum (x_i - \mu_X)^2 P(x_i)} with μX=2.1\mu_X = 2.1:

    xix_iP(xi)P(x_i)xiμXx_i - \mu_X(xiμX)2(x_i - \mu_X)^2(xiμX)2P(xi)(x_i - \mu_X)^2 P(x_i)
    10.30-1.11.210.363
    20.40-0.10.010.004
    30.200.90.810.162
    40.101.93.610.361
  5. Add the last column for the variance: 0.363+0.004=0.3670.363 + 0.004 = 0.367, then 0.367+0.162=0.5290.367 + 0.162 = 0.529, then 0.529+0.361=0.8900.529 + 0.361 = 0.890. So σX2=0.89\sigma_X^2 = 0.89.

  6. Take the square root: σX=0.890.943\sigma_X = \sqrt{0.89} \approx 0.943 items.

  7. For part (d), the expected number of items is the mean per visitor times the number of visitors: 40×2.1=8440 \times 2.1 = 84 items.

  8. Convert items to time: 84×20=168084 \times 20 = 1680 volunteer minutes, and 168060=28\frac{1680}{60} = 28 hours.

(a) P(2)=0.40P(2) = 0.40. (b) μX=2.1\mu_X = 2.1 items. (c) σX=0.890.943\sigma_X = \sqrt{0.89} \approx 0.943 items. (d) 84 expected items, which is 28 volunteer hours.