Discrete Math Quiz: Expected Value And Variance
14 questions · exam conditions
0:00
Expected Value And VarianceQuestion 1 of 14

A discrete random variable TT has moment generating function MT(s)=14(es+e2s+e3s+e4s)M_T(s) = \frac{1}{4}(e^s + e^{2s} + e^{3s} + e^{4s}) for all real ss. What is E[T2](E[T])2E[T^2] - (E[T])^2?

54\frac{5}{4}
2516\frac{25}{16}
32\frac{3}{2}
94\frac{9}{4}
← Back to quizzes

Discrete Math Quiz

Discrete Math Quiz: Expected Value And Variance

Practice Expected Value And Variance in Discrete Math with focused quiz questions that help you check what you know, review explanations, and build confidence with test-style prompts.

What this quiz covers

This quiz focuses on Expected Value And Variance, giving you a quick way to practice the rules, question types, and explanations that matter most for Discrete Math.

How to use this quiz

Try each quiz question before looking at the correct answer. Use the explanations to review missed ideas, then come back to similar questions until the pattern feels familiar.

All questions

Question 1

A discrete random variable TT has moment generating function MT(s)=14(es+e2s+e3s+e4s)M_T(s) = \frac{1}{4}(e^s + e^{2s} + e^{3s} + e^{4s}) for all real ss. What is E[T2](E[T])2E[T^2] - (E[T])^2?

  1. 54\frac{5}{4} (correct answer)
  2. 2516\frac{25}{16}
  3. 32\frac{3}{2}
  4. 94\frac{9}{4}
Explanation: From the MGF, T takes values 1, 2, 3, 4 each with probability 1/4. So E[T] = (1+2+3+4)/4 = 10/4 = 5/2. And E[T²] = (1+4+9+16)/4 = 30/4 = 15/2. Therefore, Var(T) = E[T²] - (E[T])² = 15/2 - (5/2)² = 15/2 - 25/4 = 30/4 - 25/4 = 5/4. Choice B is (E[T])²/4. Choice C is 6/4. Choice D is (5/2)².

Question 2

A game involves rolling two fair dice. Let XX be the random variable representing the absolute difference between the two dice values. If the expected value of XX is 3518\frac{35}{18}, what is the probability that X=2X = 2?

  1. 14\frac{1}{4}
  2. 29\frac{2}{9} (correct answer)
  3. 16\frac{1}{6}
  4. 518\frac{5}{18}
Explanation: The absolute difference X can take values 0, 1, 2, 3, 4, 5. For X = 2, we need |a - b| = 2 where a and b are the dice values. This occurs when (a,b) ∈ {(1,3), (3,1), (2,4), (4,2), (3,5), (5,3), (4,6), (6,4)}. That's 8 outcomes out of 36 possible, so P(X = 2) = 8/36 = 2/9. Choice A (1/4 = 9/36) represents a common counting error. Choice C (1/6 = 6/36) might result from undercounting pairs. Choice D (5/18 = 10/36) represents overcounting.

Question 3

A biased coin has probability pp of landing heads. The coin is flipped until the first head appears. Let XX be the number of flips required. If E[X]=3E[X] = 3 and Var(X)=6\text{Var}(X) = 6, what is the value of pp?

  1. 14\frac{1}{4}
  2. 12\frac{1}{2}
  3. 13\frac{1}{3} (correct answer)
  4. 23\frac{2}{3}
Explanation: When you encounter a problem about flipping a coin until the first success, you're dealing with a geometric distribution. This distribution models the number of trials needed to achieve the first success, where each trial has the same probability pp of success. For a geometric distribution, the key formulas are:
  • Expected value: E[X]=1pE[X] = \frac{1}{p}
  • Variance: Var(X)=1pp2\text{Var}(X) = \frac{1-p}{p^2}
Given that E[X]=3E[X] = 3, you can find pp directly from the first formula: 3=1p3 = \frac{1}{p} p=13p = \frac{1}{3} Let's verify this using the variance condition. With p=13p = \frac{1}{3}: Var(X)=113(13)2=2319=23×9=6\text{Var}(X) = \frac{1-\frac{1}{3}}{(\frac{1}{3})^2} = \frac{\frac{2}{3}}{\frac{1}{9}} = \frac{2}{3} \times 9 = 6 This confirms answer C is correct. Looking at the wrong answers: A) p=14p = \frac{1}{4} would give E[X]=4E[X] = 4, not 3. B) p=12p = \frac{1}{2} would give E[X]=2E[X] = 2 and Var(X)=2\text{Var}(X) = 2, missing both conditions. D) p=23p = \frac{2}{3} would give E[X]=32=1.5E[X] = \frac{3}{2} = 1.5, which is too small. Study tip: For geometric distribution problems, always start with the expected value formula E[X]=1pE[X] = \frac{1}{p} to find pp quickly, then use the variance formula as verification. Remember that higher success probability means fewer trials needed on average.

Question 4

Two independent random variables XX and YY have the same distribution with E[X]=E[Y]=2E[X] = E[Y] = 2 and Var(X)=Var(Y)=1\text{Var}(X) = \text{Var}(Y) = 1. Let S=X+YS = X + Y and D=XYD = X - Y. What is Cov(S,D)\text{Cov}(S, D)?

  1. 00 (correct answer)
  2. 2-2
  3. 22
  4. 44
Explanation: When you encounter questions about covariance with linear combinations of random variables, you need to use the fundamental properties of covariance and the given independence condition. To find Cov(S,D)\text{Cov}(S, D) where S=X+YS = X + Y and D=XYD = X - Y, use the bilinearity property of covariance: Cov(S,D)=Cov(X+Y,XY)\text{Cov}(S, D) = \text{Cov}(X + Y, X - Y) Expanding this using covariance properties: Cov(X+Y,XY)=Cov(X,X)Cov(X,Y)+Cov(Y,X)Cov(Y,Y)\text{Cov}(X + Y, X - Y) = \text{Cov}(X, X) - \text{Cov}(X, Y) + \text{Cov}(Y, X) - \text{Cov}(Y, Y) Since Cov(X,X)=Var(X)=1\text{Cov}(X, X) = \text{Var}(X) = 1 and Cov(Y,Y)=Var(Y)=1\text{Cov}(Y, Y) = \text{Var}(Y) = 1, and because XX and YY are independent, Cov(X,Y)=Cov(Y,X)=0\text{Cov}(X, Y) = \text{Cov}(Y, X) = 0: Cov(S,D)=10+01=0\text{Cov}(S, D) = 1 - 0 + 0 - 1 = 0 Therefore, A) 00 is correct. B) 2-2 might arise from incorrectly computing 2Var(X)-2 \cdot \text{Var}(X) without accounting for the zero covariance terms. C) 22 could result from adding the variances as Var(X)+Var(Y)\text{Var}(X) + \text{Var}(Y) instead of subtracting them properly. D) 44 might come from doubling the sum of variances, perhaps confusing this with Var(S)\text{Var}(S) calculations. Key takeaway: When dealing with covariance of linear combinations, always expand using bilinearity and remember that independent variables have zero covariance. The independence condition is crucial—don't overlook it when it's given in the problem setup.

Question 5

Two independent discrete random variables XX and YY have the same distribution with E(X)=E(Y)=2E(X) = E(Y) = 2 and Var(X)=Var(Y)=3\text{Var}(X) = \text{Var}(Y) = 3. Let U=X+YU = X + Y and V=XYV = X - Y. What is Cov(U,V)\text{Cov}(U,V)?

  1. Cov(U,V)=3\text{Cov}(U,V) = 3
  2. Cov(U,V)=0\text{Cov}(U,V) = 0 (correct answer)
  3. Cov(U,V)=6\text{Cov}(U,V) = 6
  4. Cov(U,V)=12\text{Cov}(U,V) = 12
Explanation: When you encounter problems involving covariance of linear combinations of random variables, the key is understanding how covariance distributes across sums and differences. This tests your grasp of fundamental covariance properties. To find Cov(U,V)=Cov(X+Y,XY)\text{Cov}(U,V) = \text{Cov}(X+Y, X-Y), use the bilinearity property of covariance: Cov(X+Y,XY)=Cov(X,X)+Cov(X,Y)+Cov(Y,X)+Cov(Y,Y)\text{Cov}(X+Y, X-Y) = \text{Cov}(X,X) + \text{Cov}(X,-Y) + \text{Cov}(Y,X) + \text{Cov}(Y,-Y) This simplifies to: Cov(X,X)Cov(X,Y)+Cov(Y,X)Cov(Y,Y)\text{Cov}(X,X) - \text{Cov}(X,Y) + \text{Cov}(Y,X) - \text{Cov}(Y,Y) Since Cov(X,X)=Var(X)=3\text{Cov}(X,X) = \text{Var}(X) = 3 and Cov(Y,Y)=Var(Y)=3\text{Cov}(Y,Y) = \text{Var}(Y) = 3, and because XX and YY are independent, Cov(X,Y)=Cov(Y,X)=0\text{Cov}(X,Y) = \text{Cov}(Y,X) = 0: Cov(U,V)=30+03=0\text{Cov}(U,V) = 3 - 0 + 0 - 3 = 0 Choice A (Cov(U,V)=3\text{Cov}(U,V) = 3) likely comes from incorrectly thinking covariance equals one of the variances. Choice C (Cov(U,V)=6\text{Cov}(U,V) = 6) might result from adding the variances without considering the subtraction in VV. Choice D (Cov(U,V)=12\text{Cov}(U,V) = 12) could stem from multiplying the expected values incorrectly or confusing covariance with some other calculation. The correct answer is B. Study tip: Remember that for independent variables XX and YY, the covariance between X+YX+Y and XYX-Y always equals Var(X)Var(Y)\text{Var}(X) - \text{Var}(Y). When they have equal variances, this difference is zero.

Question 6

A biased coin is flipped 3 times. The probability of heads on each flip is p=0.6p = 0.6. Let XX represent the number of times the coin shows the same face as the previous flip (so XX can range from 0 to 2). What is E(X)E(X)?

  1. E(X)=1.56E(X) = 1.56
  2. E(X)=1.20E(X) = 1.20
  3. E(X)=1.44E(X) = 1.44
  4. E(X)=1.04E(X) = 1.04 (correct answer)
Explanation: When you encounter problems about counting "consecutive events" or "runs" in probability, you need to carefully define what's being counted and consider all possible sequences. Here, XX counts matches between consecutive flips in a 3-flip sequence. With flips 1, 2, and 3, you can have matches between (1,2) and between (2,3), so XX ranges from 0 to 2. The key insight is to use indicator random variables: let X1=1X_1 = 1 if flips 1 and 2 match (0 otherwise), and X2=1X_2 = 1 if flips 2 and 3 match. Then X=X1+X2X = X_1 + X_2. For any two consecutive flips, they match if both are heads or both are tails:
  • P(both heads)=0.62=0.36P(\text{both heads}) = 0.6^2 = 0.36
  • P(both tails)=0.42=0.16P(\text{both tails}) = 0.4^2 = 0.16
  • P(match)=0.36+0.16=0.52P(\text{match}) = 0.36 + 0.16 = 0.52
So E(X1)=E(X2)=0.52E(X_1) = E(X_2) = 0.52, and by linearity of expectation, E(X)=E(X1)+E(X2)=0.52+0.52=1.04E(X) = E(X_1) + E(X_2) = 0.52 + 0.52 = 1.04. Choice A (1.56) likely comes from incorrectly using 3×0.523 \times 0.52, forgetting that only 2 pairs exist. Choice B (1.20) might result from using 2×0.62 \times 0.6 instead of properly calculating match probabilities. Choice C (1.44) could arise from miscalculating the match probability as 0.6+0.4=1.00.6 + 0.4 = 1.0 and computing 2×0.722 \times 0.72. Remember: when counting relationships between consecutive items in a sequence, you always have one fewer relationship than items. Use indicator variables and linearity of expectation to simplify complex counting problems.

Question 7

A fair six-sided die is rolled nn times. Let XX be the number of times a 6 appears. If nn is chosen so that Var(X)=2536\text{Var}(X) = \frac{25}{36}, what is E[X]E[X]?

  1. 16\frac{1}{6}
  2. 65\frac{6}{5}
  3. 11
  4. 56\frac{5}{6} (correct answer)
Explanation: When you encounter a problem about counting successes in repeated independent trials, you're dealing with a binomial distribution. Here, rolling a 6 is a "success" with probability p=16p = \frac{1}{6}, and we're looking for the relationship between variance and expected value. For a binomial distribution with nn trials and success probability pp, the key formulas are:
  • Variance: Var(X)=np(1p)\text{Var}(X) = np(1-p)
  • Expected value: E[X]=npE[X] = np
Given that Var(X)=2536\text{Var}(X) = \frac{25}{36} and p=16p = \frac{1}{6}, we can find nn: 2536=n1656=n536\frac{25}{36} = n \cdot \frac{1}{6} \cdot \frac{5}{6} = n \cdot \frac{5}{36} Solving: n=2536÷536=5n = \frac{25}{36} \div \frac{5}{36} = 5 Therefore: E[X]=np=516=56E[X] = np = 5 \cdot \frac{1}{6} = \frac{5}{6} Looking at the wrong answers: Choice A (16\frac{1}{6}) gives you just the probability of rolling a 6 on one trial, not accounting for multiple rolls. Choice B (65\frac{6}{5}) might result from incorrectly inverting the probability or misapplying the variance formula. Choice C (11) could come from approximating 56\frac{5}{6} or making an error in the calculation steps. Study tip: For binomial distribution problems, always identify nn, pp, and the relationship E[X]=npE[X] = np, Var(X)=np(1p)\text{Var}(X) = np(1-p). When given one parameter, use these formulas to find the others systematically.

Question 8

Consider a discrete random variable NN with P(N=n)=12nP(N = n) = \frac{1}{2^n} for n=1,2,3,n = 1, 2, 3, \ldots. What is E[N]E[N]?

  1. 11
  2. 52\frac{5}{2}
  3. 32\frac{3}{2}
  4. 22 (correct answer)
Explanation: When you encounter expected value problems with geometric-like distributions, you need to apply the definition E[N]=n=1nP(N=n)E[N] = \sum_{n=1}^{\infty} n \cdot P(N = n) and use series manipulation techniques. For this problem, we have E[N]=n=1n12n=n=1n2nE[N] = \sum_{n=1}^{\infty} n \cdot \frac{1}{2^n} = \sum_{n=1}^{\infty} \frac{n}{2^n}. To evaluate this series, we can use the fact that for x<1|x| < 1, we have n=1nxn=x(1x)2\sum_{n=1}^{\infty} nx^n = \frac{x}{(1-x)^2}. Setting x=12x = \frac{1}{2}, we get: E[N]=12(112)2=12(12)2=1214=2E[N] = \frac{\frac{1}{2}}{(1-\frac{1}{2})^2} = \frac{\frac{1}{2}}{(\frac{1}{2})^2} = \frac{\frac{1}{2}}{\frac{1}{4}} = 2 So answer D is correct. Answer A (11) likely comes from incorrectly thinking this behaves like a standard geometric distribution starting at n=0n=0, or from computational errors in the series evaluation. Answer B (52\frac{5}{2}) might result from incorrectly applying the geometric series formula or making arithmetic mistakes when manipulating the fractions. Answer C (32\frac{3}{2}) could come from confusing this with a different probability distribution or incorrectly computing the derivative-based series formula. The key strategy here is recognizing that expected value calculations for infinite discrete distributions often require knowledge of standard power series formulas. Memorize the formula n=1nxn=x(1x)2\sum_{n=1}^{\infty} nx^n = \frac{x}{(1-x)^2} for x<1|x| < 1 – it appears frequently in probability problems involving geometric-type distributions.

Question 9

Let XX be a discrete random variable with E[X]=4E[X] = 4 and Var(X)=9\text{Var}(X) = 9. Define Z=X43Z = \frac{X - 4}{3}. What is E[Z2]E[Z^2]?

  1. 00
  2. 11 (correct answer)
  3. 33
  4. 44
Explanation: Since Z = (X-4)/3, we have E[Z] = E[(X-4)/3] = (E[X]-4)/3 = (4-4)/3 = 0. Also, Var(Z) = Var((X-4)/3) = (1/9)Var(X) = (1/9)(9) = 1. Using the formula E[Z²] = Var(Z) + (E[Z])², we get E[Z²] = 1 + 0² = 1. Choice A results from incorrectly thinking E[Z²] = E[Z]. Choice C comes from confusing E[Z²] with the original standard deviation. Choice D comes from using the original mean instead of applying the transformation properly.

Question 10

Two discrete random variables AA and BB are independent with E[A]=1E[A] = 1, Var(A)=2\text{Var}(A) = 2, E[B]=3E[B] = 3, and Var(B)=4\text{Var}(B) = 4. Let Q=2AB+5Q = 2A - B + 5. What is Var(Q)\text{Var}(Q)?

  1. 44
  2. 88
  3. 1212 (correct answer)
  4. 1616
Explanation: Since A and B are independent, Var(Q) = Var(2A - B + 5) = Var(2A) + Var(-B) + Var(5) = 4·Var(A) + 1·Var(B) + 0 = 4(2) + 4 = 12. The constant 5 doesn't affect variance. Choice A uses Var(A) only. Choice B uses 2·Var(A) + Var(B) = 4 + 4. Choice D uses (2)²·Var(A) + (2)²·Var(B) incorrectly.

Question 11

A discrete random variable XX takes values {2,0,1,3}\{-2, 0, 1, 3\} with probabilities {0.1,0.4,0.3,0.2}\{0.1, 0.4, 0.3, 0.2\} respectively. What is the value of E(X2)2E(X)+1E(X^2) - 2E(X) + 1?

  1. 2.692.69
  2. 2.252.25
  3. 1.891.89 (correct answer)
  4. 3.243.24
Explanation: First, E(X) = (-2)(0.1) + (0)(0.4) + (1)(0.3) + (3)(0.2) = -0.2 + 0 + 0.3 + 0.6 = 0.7. Next, E(X²) = (-2)²(0.1) + (0)²(0.4) + (1)²(0.3) + (3)²(0.2) = 0.4 + 0 + 0.3 + 1.8 = 2.5. Therefore, E(X²) - 2E(X) + 1 = 2.5 - 2(0.7) + 1 = 2.5 - 1.4 + 1 = 2.1. Wait, let me recalculate: E(X²) - 2E(X) + 1 = 2.5 - 1.4 + 1 = 2.1. Actually, this equals Var(X) + [E(X) - 1]² = Var(X) + (0.7-1)² = 1.61 + 0.09 = 1.7. Let me verify: Var(X) = E(X²) - [E(X)]² = 2.5 - 0.49 = 2.01, so E(X²) - 2E(X) + 1 = 2.5 - 1.4 + 1 = 2.1. Actually, E(X²) - 2E(X) + 1 = Var(X) + [E(X)]² - 2E(X) + 1 = Var(X) + [E(X) - 1]² = 2.01 + (-0.3)² = 2.01 - 0.12 = 1.89. Choice A uses an incorrect calculation of E(X²) = 3.5. Choice B incorrectly calculates Var(X) = 2.25. Choice D uses E(X) = 0.9 incorrectly.

Question 12

Let XX be a discrete random variable with E(X)=4E(X) = 4 and Var(X)=9\text{Var}(X) = 9. Define Z=X43Z = \frac{X - 4}{3}. What is E(Z2)E(Z^2)?

  1. E(Z2)=1E(Z^2) = 1 (correct answer)
  2. E(Z2)=43E(Z^2) = \frac{4}{3}
  3. E(Z2)=259E(Z^2) = \frac{25}{9}
  4. E(Z2)=169E(Z^2) = \frac{16}{9}
Explanation: Since Z = (X-4)/3, we have E(Z) = E[(X-4)/3] = (E(X)-4)/3 = 0. Also, Var(Z) = Var[(X-4)/3] = (1/9)Var(X) = 9/9 = 1. Using the relationship E(Z²) = Var(Z) + [E(Z)]² = 1 + 0² = 1. Choice B incorrectly calculates E(Z) = 4/3 and uses E(Z²) = Var(Z) + [E(Z)]² = 1 + 0 = 4/3. Choice C uses E(Z²) = E[(X-4)²]/9 = (Var(X) + [E(X-4)]²)/9 = (9+16)/9. Choice D incorrectly computes E(Z²) = [E(X)]²/9 = 16/9.

Question 13

A box contains 5 balls numbered 1, 2, 3, 4, 5. Two balls are drawn without replacement. Let XX be the sum of the numbers on the drawn balls. What is the variance of XX?

  1. Var(X)=94\text{Var}(X) = \frac{9}{4}
  2. Var(X)=52\text{Var}(X) = \frac{5}{2}
  3. Var(X)=3\text{Var}(X) = 3 (correct answer)
  4. Var(X)=72\text{Var}(X) = \frac{7}{2}
Explanation: There are C(5,2) = 10 possible outcomes. The possible sums and their frequencies are: 3(1), 4(1), 5(2), 6(2), 7(2), 8(1), 9(1). So P(X=3) = P(X=4) = P(X=8) = P(X=9) = 1/10, and P(X=5) = P(X=6) = P(X=7) = 2/10 = 1/5. E(X) = (3+4+5×2+6×2+7×2+8+9)/10 = 60/10 = 6. E(X²) = (9+16+25×2+36×2+49×2+64+81)/10 = 390/10 = 39. Therefore Var(X) = E(X²) - [E(X)]² = 39 - 36 = 3. Choice A incorrectly calculates E(X²) = 36 + 9/4. Choice B uses the formula for sampling with replacement. Choice D incorrectly includes an extra term in the variance calculation.

Question 14

Two discrete random variables XX and YY are independent with E(X)=3E(X) = 3, Var(X)=4\text{Var}(X) = 4, E(Y)=1E(Y) = -1, and Var(Y)=2\text{Var}(Y) = 2. If W=2X3Y+5W = 2X - 3Y + 5, what is Var(W)\text{Var}(W)?

  1. Var(W)=29\text{Var}(W) = 29
  2. Var(W)=34\text{Var}(W) = 34 (correct answer)
  3. Var(W)=25\text{Var}(W) = 25
  4. Var(W)=39\text{Var}(W) = 39
Explanation: When you encounter linear combinations of independent random variables, you need to apply the key properties of variance: variance scales quadratically with constants, and for independent variables, the variance of a sum equals the sum of variances. For W=2X3Y+5W = 2X - 3Y + 5, start by recognizing that constants don't affect variance, so the "+5" term disappears. You're left with Var(2X3Y)\text{Var}(2X - 3Y). Since XX and YY are independent, Var(2X3Y)=Var(2X)+Var(3Y)\text{Var}(2X - 3Y) = \text{Var}(2X) + \text{Var}(-3Y). The crucial rule is that Var(aZ)=a2Var(Z)\text{Var}(aZ) = a^2 \cdot \text{Var}(Z) for any constant aa and random variable ZZ. Therefore:
  • Var(2X)=22Var(X)=44=16\text{Var}(2X) = 2^2 \cdot \text{Var}(X) = 4 \cdot 4 = 16
  • Var(3Y)=(3)2Var(Y)=92=18\text{Var}(-3Y) = (-3)^2 \cdot \text{Var}(Y) = 9 \cdot 2 = 18
So Var(W)=16+18=34\text{Var}(W) = 16 + 18 = 34, making B correct. Choice A (29) likely comes from incorrectly computing 224+3225=16+1852^2 \cdot 4 + 3^2 \cdot 2 - 5 = 16 + 18 - 5, mistakenly subtracting the constant. Choice C (25) suggests using (23)2+(31)2=16+9(2 \cdot 3)^2 + (3 \cdot 1)^2 = 16 + 9, confusing expected values with variances. Choice D (39) might result from adding all given values: 4+2+16+1814 + 2 + 16 + 18 - 1. Remember: for variance calculations with linear combinations, square the coefficients, ignore additive constants, and add variances when variables are independent (even with subtraction, since (3)2=9(-3)^2 = 9).