1. Home
  2. Explore
  3. Mathematics
  4. Conditional Expectation and Variance

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Conditional Expectation and Variance

  • 34Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Conditional Expectation

Why is it meaningful to calculate the expectation and variance of a conditional distribution?

34 questions

  1. 1

    Why is it meaningful to calculate the expectation and variance of a conditional distribution?

    Model answer

    A conditional distribution is itself a valid probability distribution, so its expectation and variance can be calculated.

    Explanation

    The conditional distribution of one random variable given another satisfies the requirements of a probability distribution.

  2. 2

    For continuous random variables with joint density fX,Yf_{X,Y}fX,Y​ and marginal density fYf_YfY​, express E[X∣Y=y]E[X\mid Y=y]E[X∣Y=y] using an integral.

    Model answer

    E[X∣Y=y]=∫x fX,Y(x,y)fY(y) dxE[X\mid Y=y]=\int x\,\frac{f_{X,Y}(x,y)}{f_Y(y)}\,dxE[X∣Y=y]=∫xfY​(y)fX,Y​(x,y)​dx, for values of yyy with fY(y)>0f_Y(y)>0fY​(y)>0.

    Explanation

    The ratio fX,Y(x,y)/fY(y)f_{X,Y}(x,y)/f_Y(y)fX,Y​(x,y)/fY​(y) is the conditional density of XXX given Y=yY=yY=y.

  3. 3

    For discrete random variables, express E[X∣Y=yj]E[X\mid Y=y_j]E[X∣Y=yj​] as a sum involving the conditional probabilities of XXX.

    Model answer

    E[X∣Y=yj]=∑ixiP(X=xi∣Y=yj)=∑ixiP(X=xi,Y=yj)P(Y=yj)E[X\mid Y=y_j]=\sum_i x_iP(X=x_i\mid Y=y_j)=\sum_i x_i\frac{P(X=x_i,Y=y_j)}{P(Y=y_j)}E[X∣Y=yj​]=∑i​xi​P(X=xi​∣Y=yj​)=∑i​xi​P(Y=yj​)P(X=xi​,Y=yj​)​.

    Explanation

    The conditional expectation is the weighted sum of the possible values of XXX, using their probabilities conditional on Y=yjY=y_jY=yj​.

  4. 4

    Why can E[X∣Y=y]E[X\mid Y=y]E[X∣Y=y] depend on yyy, and when does it equal E[X]E[X]E[X]?

    Model answer

    The conditional distribution of XXX can change with the fixed value yyy, so its expectation can also change. If XXX and YYY are independent, then E[X∣Y=y]=E[X]E[X\mid Y=y]=E[X]E[X∣Y=y]=E[X].

    Explanation

    Independence makes the conditional distribution of XXX the same as its unconditional distribution.

  5. 5

    In the dice example, how are XXX, X1X_1X1​, and YYY defined?

    Model answer

    XXX and X1X_1X1​ are the outcomes of two independent fair six-sided dice, and Y=max⁡(X,X1)Y=\max(X,X_1)Y=max(X,X1​).

    Explanation

    Each die outcome is uniformly distributed over 1,2,3,4,5,61,2,3,4,5,61,2,3,4,5,6.

  6. 6

    For the two-dice example, what is P(X=x,Y=y)P(X=x,Y=y)P(X=x,Y=y) in terms of xxx and yyy?

    Model answer

    It is 000 if y<xy<xy<x, x/36x/36x/36 if y=xy=xy=x, and 1/361/361/36 if y>xy>xy>x.

    Explanation

    When y=xy=xy=x, the second die can be any value from 111 through xxx; when y>xy>xy>x, it must equal yyy.

  7. 7

    What are the marginal distributions of XXX and YYY in the two-dice example?

    Model answer

    P(X=x)=1/6P(X=x)=1/6P(X=x)=1/6 for x=1,…,6x=1,\ldots,6x=1,…,6, while P(Y=y)=(2y−1)/36P(Y=y)=(2y-1)/36P(Y=y)=(2y−1)/36 for y=1,…,6y=1,\ldots,6y=1,…,6.

    Explanation

    The first die is fair, whereas the maximum equals yyy in 2y−12y-12y−1 of the 363636 equally likely ordered outcomes.

  8. 8

    What is E[X∣Y=1]E[X\mid Y=1]E[X∣Y=1] in the two-dice example?

    Model answer

    E[X∣Y=1]=1E[X\mid Y=1]=1E[X∣Y=1]=1.

    Explanation

    If the maximum is 111, both dice must show 111, so X=1X=1X=1 with certainty.

  9. 9

    What is E[X∣Y=2]E[X\mid Y=2]E[X∣Y=2] in the two-dice example?

    Model answer

    E[X∣Y=2]=53E[X\mid Y=2]=\frac{5}{3}E[X∣Y=2]=35​.

    Explanation

    Given Y=2Y=2Y=2, the joint probabilities for X=1X=1X=1 and X=2X=2X=2 are 1/361/361/36 and 2/362/362/36, respectively, out of a total probability of 3/363/363/36.

  10. 10

    What is E[X∣Y=3]E[X\mid Y=3]E[X∣Y=3] in the two-dice example?

    Model answer

    E[X∣Y=3]=125E[X\mid Y=3]=\frac{12}{5}E[X∣Y=3]=512​.

    Explanation

    Given Y=3Y=3Y=3, the probabilities for X=1,2,3X=1,2,3X=1,2,3 are 1/5,1/5,3/51/5,1/5,3/51/5,1/5,3/5.

  11. 11

    What is E[X∣Y=4]E[X\mid Y=4]E[X∣Y=4] in the two-dice example?

    Model answer

    E[X∣Y=4]=227E[X\mid Y=4]=\frac{22}{7}E[X∣Y=4]=722​.

    Explanation

    Given Y=4Y=4Y=4, the probabilities for X=1,2,3,4X=1,2,3,4X=1,2,3,4 are 1/7,1/7,1/7,4/71/7,1/7,1/7,4/71/7,1/7,1/7,4/7.

  12. 12

    What is E[X∣Y=5]E[X\mid Y=5]E[X∣Y=5] in the two-dice example?

    Model answer

    E[X∣Y=5]=359E[X\mid Y=5]=\frac{35}{9}E[X∣Y=5]=935​.

    Explanation

    Given Y=5Y=5Y=5, the probabilities for X=1,2,3,4,5X=1,2,3,4,5X=1,2,3,4,5 are 1/9,1/9,1/9,1/9,5/91/9,1/9,1/9,1/9,5/91/9,1/9,1/9,1/9,5/9.

  13. 13

    What is E[X∣Y=6]E[X\mid Y=6]E[X∣Y=6] in the two-dice example?

    Model answer

    E[X∣Y=6]=5111E[X\mid Y=6]=\frac{51}{11}E[X∣Y=6]=1151​.

    Explanation

    Given Y=6Y=6Y=6, the probabilities for X=1,2,3,4,5,6X=1,2,3,4,5,6X=1,2,3,4,5,6 are 1/111/111/11 for the first five values and 6/116/116/11 for the last.

  14. 14

    What are the possible values and probabilities of the random variable E[X∣Y]E[X\mid Y]E[X∣Y] in the two-dice example?

    Model answer

    Its values are 1,53,125,227,359,51111,\frac{5}{3},\frac{12}{5},\frac{22}{7},\frac{35}{9},\frac{51}{11}1,35​,512​,722​,935​,1151​, with respective probabilities 136,336,536,736,936,1136\frac{1}{36},\frac{3}{36},\frac{5}{36},\frac{7}{36},\frac{9}{36},\frac{11}{36}361​,363​,365​,367​,369​,3611​.

    Explanation

    The conditional mean is a function of YYY, and each value occurs with the probability of the corresponding value of YYY.

  15. 15

    In the dice example, calculate E[E[X∣Y]]E[E[X\mid Y]]E[E[X∣Y]] and compare it with E[X]E[X]E[X].

    Model answer

    Both equal 7/27/27/2.

    Explanation

    Weighting the six conditional means by the probabilities of the corresponding values of YYY gives 126/36=7/2126/36=7/2126/36=7/2, which is also the mean of a fair die.

  16. 16

    State the law of iterated expectation for two random variables XXX and YYY.

    Model answer

    E[E[X∣Y]]=E[X]E[E[X\mid Y]]=E[X]E[E[X∣Y]]=E[X].

    Explanation

    Averaging the conditional expectation over the distribution of the conditioning variable recovers the unconditional expectation.

  17. 17

    How does integrating the joint density establish the law of iterated expectation in the continuous case?

    Model answer

    Substituting the conditional expectation gives ∫ ⁣∫xfX,Y(x,y) dx dy\int\!\int x f_{X,Y}(x,y)\,dx\,dy∫∫xfX,Y​(x,y)dxdy, which equals ∫xfX(x) dx=E[X]\int x f_X(x)\,dx=E[X]∫xfX​(x)dx=E[X] after integrating out YYY.

    Explanation

    The factors involving the marginal density of YYY cancel, and integrating the joint density over yyy gives the marginal density of XXX.

  18. 18

    How does the law of iterated expectation apply to the other die outcome in the example?

    Model answer

    E[E[Y∣X]]=E[Y]=16136E[E[Y\mid X]]=E[Y]=\frac{161}{36}E[E[Y∣X]]=E[Y]=36161​.

    Explanation

    The expected value of YYY is ∑y=16y(2y−1)/36=161/36\sum_{y=1}^{6}y(2y-1)/36=161/36∑y=16​y(2y−1)/36=161/36, and conditioning on XXX does not change the overall expectation.

  19. 19

    State the law of total variance for XXX conditioned on YYY.

    Model answer

    Var⁡(X)=E[Var⁡(X∣Y)]+Var⁡(E[X∣Y])\operatorname{Var}(X)=E[\operatorname{Var}(X\mid Y)]+\operatorname{Var}(E[X\mid Y])Var(X)=E[Var(X∣Y)]+Var(E[X∣Y]).

    Explanation

    The total variance is the sum of the average conditional variance and the variance of the conditional mean.

  20. 20

    How is conditional variance expressed using conditional expectations?

    Model answer

    Var⁡(X∣Y)=E[X2∣Y]−(E[X∣Y])2\operatorname{Var}(X\mid Y)=E[X^2\mid Y]-(E[X\mid Y])^2Var(X∣Y)=E[X2∣Y]−(E[X∣Y])2.

    Explanation

    This is the variance identity applied to the distribution of XXX conditional on YYY.

  21. 21

    Why do the terms involving (E[X∣Y])2(E[X\mid Y])^2(E[X∣Y])2 cancel when proving the law of total variance?

    Model answer

    The average conditional variance contains −E[(E[X∣Y])2]-E[(E[X\mid Y])^2]−E[(E[X∣Y])2], while the variance of the conditional mean contains +E[(E[X∣Y])2]+E[(E[X\mid Y])^2]+E[(E[X∣Y])2].

    Explanation

    After cancellation, the sum becomes E[X2]−(E[X])2E[X^2]-(E[X])^2E[X2]−(E[X])2, using the law of iterated expectation.

  22. 22

    What does Chebyshev’s inequality tell us about deviations from a real number CCC?

    Model answer

    If E[(X−C)2]E[(X-C)^2]E[(X−C)2] is finite and ϵ>0\epsilon>0ϵ>0, then P(∣X−C∣≥ϵ)≤E[(X−C)2]/ϵ2P(|X-C|\geq\epsilon)\leq E[(X-C)^2]/\epsilon^2P(∣X−C∣≥ϵ)≤E[(X−C)2]/ϵ2.

    Explanation

    It bounds the probability that XXX is at least ϵ\epsilonϵ away from CCC using its squared distance from CCC.

  23. 23

    How does the proof of Chebyshev’s inequality bound the probability of the event ∣X−C∣≥ϵ|X-C|\geq\epsilon∣X−C∣≥ϵ?

    Model answer

    On that event, (X−C)2/ϵ2≥1(X-C)^2/\epsilon^2\geq1(X−C)2/ϵ2≥1, so its probability is at most E[(X−C)2]/ϵ2E[(X-C)^2]/\epsilon^2E[(X−C)2]/ϵ2.

    Explanation

    The indicator of the event is bounded above by (X−C)2/ϵ2(X-C)^2/\epsilon^2(X−C)2/ϵ2; taking expectations yields the inequality.

  24. 24

    What does Chebyshev’s inequality become when C=μ=E[X]C=\mu=E[X]C=μ=E[X]?

    Model answer

    P(∣X−μ∣≥ϵ)≤Var⁡(X)/ϵ2P(|X-\mu|\geq\epsilon)\leq\operatorname{Var}(X)/\epsilon^2P(∣X−μ∣≥ϵ)≤Var(X)/ϵ2.

    Explanation

    For C=E[X]C=E[X]C=E[X], the numerator E[(X−C)2]E[(X-C)^2]E[(X−C)2] is the variance of XXX.

  25. 25

    Express the centered Chebyshev bound in terms of the standard deviation σ\sigmaσ and a positive constant kkk.

    Model answer

    P(∣X−μ∣≥kσ)≤1/k2P(|X-\mu|\geq k\sigma)\leq1/k^2P(∣X−μ∣≥kσ)≤1/k2.

    Explanation

    Substituting ϵ=kσ\epsilon=k\sigmaϵ=kσ and Var⁡(X)=σ2\operatorname{Var}(X)=\sigma^2Var(X)=σ2 gives the stated bound.

  26. 26

    Why can Chebyshev’s inequality provide a useful bound even when the distribution of XXX is unknown?

    Model answer

    It bounds the probability of a large deviation from the mean using only the mean and variance, without requiring the full distribution.

    Explanation

    Different distributions can share the same mean and variance, but Chebyshev’s inequality still supplies an upper bound on their tail probabilities.

  27. 27

    For X∼Uniform⁡(0,1)X\sim\operatorname{Uniform}(0,1)X∼Uniform(0,1), what mean and variance are used in the Chebyshev example?

    Model answer

    μ=1/2\mu=1/2μ=1/2 and Var⁡(X)=1/12\operatorname{Var}(X)=1/12Var(X)=1/12.

    Explanation

    These values give standard deviation σ=1/12\sigma=1/\sqrt{12}σ=1/12​.

  28. 28

    For X∼Uniform⁡(0,1)X\sim\operatorname{Uniform}(0,1)X∼Uniform(0,1), what bound does Chebyshev’s inequality give for P(∣X−1/2∣≥2/12)P(|X-1/2|\geq2/\sqrt{12})P(∣X−1/2∣≥2/12​)?

    Model answer

    The bound is 1/41/41/4.

    Explanation

    This is the k=2k=2k=2 case of P(∣X−μ∣≥kσ)≤1/k2P(|X-\mu|\geq k\sigma)\leq1/k^2P(∣X−μ∣≥kσ)≤1/k2.

  29. 29

    Why is the Chebyshev bound in the uniform example not tight?

    Model answer

    The threshold 2/12=1/32/\sqrt{12}=1/\sqrt{3}2/12​=1/3​ is greater than the maximum possible distance 1/21/21/2 from the mean, so the actual probability is 000, below the bound 1/41/41/4.

    Explanation

    The support of the uniform distribution makes the event impossible even though Chebyshev’s general bound is positive.

  30. 30

    State Markov’s inequality for a nonnegative function h(X)h(X)h(X).

    Model answer

    If h(X)≥0h(X)\geq0h(X)≥0 and E[h(X)]E[h(X)]E[h(X)] exists, then for ϵ>0\epsilon>0ϵ>0, P(h(X)≥ϵ)≤E[h(X)]/ϵP(h(X)\geq\epsilon)\leq E[h(X)]/\epsilonP(h(X)≥ϵ)≤E[h(X)]/ϵ.

    Explanation

    The inequality bounds the probability that a nonnegative random quantity reaches or exceeds a threshold.

  31. 31

    How does splitting the outcomes into A={h(X)≥ϵ}A=\{h(X)\geq\epsilon\}A={h(X)≥ϵ} and its complement prove Markov’s inequality?

    Model answer

    The contribution to E[h(X)]E[h(X)]E[h(X)] from AAA is at least ϵP(A)\epsilon P(A)ϵP(A), while the contribution from its complement is nonnegative; hence E[h(X)]≥ϵP(A)E[h(X)]\geq\epsilon P(A)E[h(X)]≥ϵP(A).

    Explanation

    Rearranging this inequality gives P(A)≤E[h(X)]/ϵP(A)\leq E[h(X)]/\epsilonP(A)≤E[h(X)]/ϵ.

  32. 32

    What moment bound follows from Markov’s inequality when h(X)=∣X∣rh(X)=|X|^rh(X)=∣X∣r?

    Model answer

    If E[∣X∣r]E[|X|^r]E[∣X∣r] exists, then for k>0k>0k>0, P(∣X∣≥k)≤E[∣X∣r]/krP(|X|\geq k)\leq E[|X|^r]/k^rP(∣X∣≥k)≤E[∣X∣r]/kr.

    Explanation

    Apply Markov’s inequality with threshold krk^rkr to the nonnegative quantity ∣X∣r|X|^r∣X∣r.

  33. 33

    How can Markov’s inequality be used to derive Chebyshev’s inequality?

    Model answer

    Apply it to h(X)=(X−μ)2h(X)=(X-\mu)^2h(X)=(X−μ)2 with threshold k2σ2k^2\sigma^2k2σ2 to obtain P(∣X−μ∣≥kσ)≤1/k2P(|X-\mu|\geq k\sigma)\leq1/k^2P(∣X−μ∣≥kσ)≤1/k2.

    Explanation

    The expectation of (X−μ)2(X-\mu)^2(X−μ)2 is σ2\sigma^2σ2, so Markov’s bound reduces to the centered Chebyshev bound.

  34. 34

    What relationship between Markov’s and Chebyshev’s inequalities is established in the content?

    Model answer

    Chebyshev’s inequality can be derived from Markov’s inequality, but not vice versa.

    Explanation

    The derivation uses the squared deviation from the mean as the nonnegative function in Markov’s inequality.

1 of 34
Question 1 of 34

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent