Computing via Conditioning - Statistics Graduate Level

  1. If the aggregate loss is S=∑i=1NXiS=\sum_{i=1}^{N}X_i, what is Var(S)Var(S)?
    Answer: 3535 When you see aggregate loss variance with a random claim intensity, reach for the law of total variance combined with the compound Poisson variance formula. The key insight is that Λ\Lambda itself is random, so you need an extra layer of conditioning. Start by conditioning on Λ\Lambda. Given Λ\Lambda, SS is a compound Poisson sum, so: Var(S∣Λ)=Λ⋅E[Xi2]=Λ(Var(Xi)+E[Xi]2)=Λ(5+4)=9ΛVar(S|\Lambda) = \Lambda \cdot E[X_i^2] = \Lambda(Var(X_i) + E[X_i]^2) = \Lambda(5+4) = 9\Lambda E[S∣Λ]=Λ⋅E[Xi]=2ΛE[S|\Lambda] = \Lambda \cdot E[X_i] = 2\Lambda Now apply the law of total variance: Var(S)=E[Var(S∣Λ)]+Var(E[S∣Λ])Var(S) = E[Var(S|\Lambda)] + Var(E[S|\Lambda]) =E[9Λ]+Var(2Λ)= E[9\Lambda] + Var(2\Lambda) =9E[Λ]+4 Var(Λ)= 9E[\Lambda] + 4\,Var(\Lambda) =9(3)+4(2)=27+8=35= 9(3) + 4(2) = 27 + 8 = 35 So C) 35 is correct. A) 23 ignores the extra variance from the random intensity entirely — it's roughly what you'd get treating Λ\Lambda as fixed at its mean, computing 9(3)=279(3) = 27 minus an arithmetic error. B) 27 is a common trap: it computes 9E[Λ]=279E[\Lambda] = 27 but forgets the second term Var(E[S∣Λ])=4 Var(Λ)=8Var(E[S|\Lambda]) = 4\,Var(\Lambda) = 8. This is the mistake of omitting the between-group variance component. D) 45 likely confuses Var(Λ)Var(\Lambda) or E[Xi2]E[X_i^2] with incorrect values, overstating one of the components. Study tip: Memorize the two-step structure — condition on the mixing variable, then apply total variance — because this exact framework appears frequently in actuarial and graduate-level insurance problems whenever the Poisson mean is itself random.
  2. Which pair gives E[X]E[X] and Var(X)Var(X), respectively?
    Answer: (3,3.36)(3,3.36) When you see a random count NN feeding into a binomial-like selection process, you're in the territory of compound distributions — specifically, the law of total expectation and the law of total variance. For the mean, the law of total expectation gives E[X]=E[E[X∣N]]E[X] = E[E[X \mid N]]. Since conditional on NN, X∼Binomial(N,0.3)X \sim \text{Binomial}(N, 0.3), we have E[X∣N]=0.3NE[X \mid N] = 0.3N. Therefore, E[X]=0.3⋅E[N]=0.3×10=3E[X] = 0.3 \cdot E[N] = 0.3 \times 10 = 3. For the variance, the law of total variance states Var(X)=E[Var(X∣N)]+Var(E[X∣N])\text{Var}(X) = E[\text{Var}(X \mid N)] + \text{Var}(E[X \mid N]). The two components are: E[Var(X∣N)]=E[N⋅0.3⋅0.7]=0.21⋅E[N]=0.21×10=2.10E[\text{Var}(X \mid N)] = E[N \cdot 0.3 \cdot 0.7] = 0.21 \cdot E[N] = 0.21 \times 10 = 2.10, and Var(E[X∣N])=Var(0.3N)=0.09⋅Var(N)=0.09×14=1.26\text{Var}(E[X \mid N]) = \text{Var}(0.3N) = 0.09 \cdot \text{Var}(N) = 0.09 \times 14 = 1.26. Adding these: Var(X)=2.10+1.26=3.36\text{Var}(X) = 2.10 + 1.26 = 3.36. This confirms answer A, (3,3.36)(3, 3.36). Answer B gives variance 3.003.00, which likely comes from treating NN as fixed at its mean (ignoring the extra variability from NN being random). Answer C reports only the first component E[Var(X∣N)]=2.10E[\text{Var}(X \mid N)] = 2.10, forgetting to add the Var(E[X∣N])\text{Var}(E[X \mid N]) term entirely. Answer D uses an incorrect mean of 4.24.2, perhaps confusing the retention probability with something else. The key study tip: whenever NN is random, never plug E[N]E[N] directly into the binomial variance formula — always apply the full law of total variance, which adds an extra term proportional to Var(N)\text{Var}(N).
  3. Suppose Θ∼N(0,4)\Theta\sim N(0,4) and, conditional on Θ\Theta, an observation satisfies Y∣Θ∼N(Θ,5)Y|\Theta\sim N(\Theta,5). What is Var(E[Θ∣Y])Var(E[\Theta|Y])?
    Answer: 16/916/9 When you see a question involving a normal prior and normal likelihood, your first instinct should be Bayesian updating and the Law of Total Variance: Var(Y)=E[Var(Y∣X)]+Var(E[Y∣X])Var(Y) = E[Var(Y|X)] + Var(E[Y|X]). Here, the question asks for Var(E[Θ∣Y])Var(E[\Theta|Y]), which is precisely one piece of that decomposition — but applied to Θ\Theta given YY. Start by finding the posterior E[Θ∣Y]E[\Theta|Y]. With Θ∼N(0,4)\Theta \sim N(0,4) (prior variance τ2=4\tau^2 = 4) and Y∣Θ∼N(Θ,5)Y|\Theta \sim N(\Theta, 5) (likelihood variance σ2=5\sigma^2 = 5), the posterior mean in a normal-normal model is: E[Θ∣Y]=τ2τ2+σ2Y=44+5Y=49YE[\Theta|Y] = \frac{\tau^2}{\tau^2 + \sigma^2} Y = \frac{4}{4+5}Y = \frac{4}{9}Y Since Y∼N(0,τ2+σ2)=N(0,9)Y \sim N(0, \tau^2 + \sigma^2) = N(0, 9) marginally, we get: Var(E[Θ∣Y])=(49)2Var(Y)=1681⋅9=169Var(E[\Theta|Y]) = \left(\frac{4}{9}\right)^2 Var(Y) = \frac{16}{81} \cdot 9 = \frac{16}{9} That confirms B is correct. Now for the distractors: A (4/94/9) is the shrinkage weight itself, not squared and multiplied through — a partial-computation trap. C (20/920/9) likely comes from incorrectly using σ2=5\sigma^2 = 5 in the numerator instead of τ2=4\tau^2 = 4, confusing prior and likelihood variances. D (44) is simply the prior variance Var(Θ)Var(\Theta), which would equal Var(E[Θ∣Y])Var(E[\Theta|Y]) only if YY were a perfect signal — forgetting that shrinkage reduces variance. A reliable strategy: in normal-normal Bayesian problems, memorize that E[Θ∣Y]=τ2τ2+σ2YE[\Theta|Y] = \frac{\tau^2}{\tau^2+\sigma^2}Y and always remember to compute the variance of this linear function of YY using the marginal variance of YY.
  4. What is Var(T)Var(T)?
    Answer: 88 When a parameter is itself random, you need the Law of Total Variance: Var(T)=E[Var(T∣P)]+Var(E[T∣P])\text{Var}(T) = E[\text{Var}(T\mid P)] + \text{Var}(E[T\mid P]). This decomposition separates within-group variance from between-group variance, and forgetting either piece is exactly the trap this question sets. For a Geometric(p)(p) distribution, recall E[T∣P=p]=1/pE[T\mid P=p] = 1/p and Var(T∣P=p)=(1−p)/p2\text{Var}(T\mid P=p) = (1-p)/p^2. Since P=1/2P = 1/2 or P=1/4P = 1/4 each with probability 1/21/2: E[T∣P]={2P=1/24P=1/4,Var(T∣P)={2P=1/212P=1/4E[T\mid P] = \begin{cases} 2 & P=1/2 \\ 4 & P=1/4 \end{cases}, \quad \text{Var}(T\mid P) = \begin{cases} 2 & P=1/2 \\ 12 & P=1/4 \end{cases} First term: E[Var(T∣P)]=12(2)+12(12)=7E[\text{Var}(T\mid P)] = \frac{1}{2}(2) + \frac{1}{2}(12) = 7 Second term: E[T∣P]E[T\mid P] takes values 22 and 44 with equal probability, so E[E[T∣P]]=3E[E[T\mid P]] = 3 and Var(E[T∣P])=12(2−3)2+12(4−3)2=1\text{Var}(E[T\mid P]) = \frac{1}{2}(2-3)^2 + \frac{1}{2}(4-3)^2 = 1 Therefore Var(T)=7+1=8\text{Var}(T) = 7 + 1 = \mathbf{8}, confirming D. Choice C (7) is the most seductive trap — it equals only E[Var(T∣P)]E[\text{Var}(T\mid P)], forgetting the between-group variance term entirely. Choice B (6) likely arises from averaging the conditional variances incorrectly or using wrong geometric formulas. Choice A (40/9) may come from computing Var(T)\text{Var}(T) as if PP were its mean value 3/83/8, plugging a single averaged pp into the formula instead of applying total variance. Your study tip: whenever a parameter is randomly selected, never plug in its average value directly — always apply the Law of Total Variance, since the Var(E[⋅∣θ])\text{Var}(E[\cdot\mid\theta]) term accounts for uncertainty in the parameter itself.
  5. What is the marginal variance Var(Y)Var(Y)?
    Answer: 2222 Whenever you see a question asking for a marginal variance involving a conditional mean and conditional variance, your instinct should be the Law of Total Variance: Var(Y)=E[Var(Y∣X)]+Var(E[Y∣X])Var(Y) = E[Var(Y|X)] + Var(E[Y|X]). This decomposition is essential in random-design regression, where both the conditional mean and conditional variance depend on a random predictor. Start with the two pieces. For the first term, E[Var(Y∣X)]=E[1+X2]=1+E[X2]E[Var(Y|X)] = E[1 + X^2] = 1 + E[X^2]. Since Var(X)=E[X2]−(E[X])2Var(X) = E[X^2] - (E[X])^2, we get E[X2]=Var(X)+(E[X])2=2+1=3E[X^2] = Var(X) + (E[X])^2 = 2 + 1 = 3. So E[Var(Y∣X)]=1+3=4E[Var(Y|X)] = 1 + 3 = 4. For the second term, Var(E[Y∣X])=Var(3X)=9⋅Var(X)=9⋅2=18Var(E[Y|X]) = Var(3X) = 9 \cdot Var(X) = 9 \cdot 2 = 18. Adding them: Var(Y)=4+18=22Var(Y) = 4 + 18 = 22, confirming that A) 22 is correct. Choice B) 20 likely comes from forgetting to include the 1 in E[1+X2]E[1 + X^2], computing E[Var(Y∣X)]=E[X2]=3E[Var(Y|X)] = E[X^2] = 3 instead of 4, giving 3+18=213 + 18 = 21, or from a similar arithmetic slip. Choice C) 18 reflects only computing Var(3X)Var(3X) and ignoring E[Var(Y∣X)]E[Var(Y|X)] entirely — a common mistake of confusing marginal variance with just the variance of the conditional mean. Choice D) 31 likely results from incorrectly using E[X]E[X] instead of E[X2]E[X^2] somewhere, inflating one of the components. Your study tip: always write out the Law of Total Variance formula explicitly before computing — students most often lose points by dropping one of the two terms entirely.
  6. What is Var(Z2)Var(Z_2)?
    Answer: 7.57.5 Galton–Watson branching processes require a specific variance formula that accounts for how randomness compounds across generations. When you see a question asking for Var(Zt)\text{Var}(Z_t), your first instinct should be to recall the recursive variance formula rather than trying to reason from scratch. For a supercritical process with m>1m > 1, the variance of ZtZ_t is given by: Var(Zt)=v⋅mt−1⋅mt−1m−1\text{Var}(Z_t) = v \cdot m^{t-1} \cdot \frac{m^t - 1}{m - 1} where vv is the offspring variance and mm is the offspring mean. For t=2t = 2, m=1.5m = 1.5, and v=2v = 2: Var(Z2)=2⋅m1⋅m2−1m−1=2⋅1.5⋅2.25−10.5=3⋅1.250.5=3⋅2.5=7.5\text{Var}(Z_2) = 2 \cdot m^{1} \cdot \frac{m^2 - 1}{m - 1} = 2 \cdot 1.5 \cdot \frac{2.25 - 1}{0.5} = 3 \cdot \frac{1.25}{0.5} = 3 \cdot 2.5 = 7.5 This confirms D is correct. Choice A (3.0) likely comes from computing v⋅m=2⋅1.5v \cdot m = 2 \cdot 1.5, which only captures one layer of variability and ignores the compounding from generation 1 to 2. Choice B (4.5) may reflect multiplying v⋅m2=2⋅2.25v \cdot m^2 = 2 \cdot 2.25, misapplying the exponent without the correct summation structure. Choice C (6.0) could arise from using v⋅(m+m2)=2(1.5+2.25)=7.5v \cdot (m + m^2) = 2(1.5 + 2.25) = 7.5 but making an arithmetic error, or from an incorrect simplified formula altogether. A reliable study tip: memorize the Galton–Watson variance formula and practice applying it at t=1,2,3t = 1, 2, 3 to build fluency — exam questions almost always test t=2t = 2 because that's where compounding first becomes nontrivial.
  7. Let PP have a beta distribution with parameters α=2\alpha=2 and β=3\beta=3. Conditional on PP, the random variables XX and YY are independent and each has a binomial distribution with parameters 66 and PP. What is Var(X−Y)Var(X-Y)?
    Answer: 2.402.40 When you see a problem mixing a Beta-distributed random variable with conditional Binomials, your framework should be the Law of Total Variance: Var(X−Y)=E[Var(X−Y∣P)]+Var(E[X−Y∣P])Var(X-Y) = E[Var(X-Y|P)] + Var(E[X-Y|P]). Since XX and YY are conditionally independent given PP, we have Var(X−Y∣P)=Var(X∣P)+Var(Y∣P)=2⋅6P(1−P)=12P(1−P)Var(X-Y|P) = Var(X|P) + Var(Y|P) = 2 \cdot 6P(1-P) = 12P(1-P), and E[X−Y∣P]=6P−6P=0E[X-Y|P] = 6P - 6P = 0. For the Beta(2,3) distribution, the key moments are: E[P]=αα+β=25=0.4E[P] = \frac{\alpha}{\alpha+\beta} = \frac{2}{5} = 0.4 E[P2]=α(α+1)(α+β)(α+β+1)=630=0.2E[P^2] = \frac{\alpha(\alpha+1)}{(\alpha+\beta)(\alpha+\beta+1)} = \frac{6}{30} = 0.2 Var(P)=E[P2]−(E[P])2=0.2−0.16=0.04Var(P) = E[P^2] - (E[P])^2 = 0.2 - 0.16 = 0.04 Now apply total variance: E[Var(X−Y∣P)]=12E[P(1−P)]=12(E[P]−E[P2])=12(0.4−0.2)=2.40E[Var(X-Y|P)] = 12E[P(1-P)] = 12(E[P] - E[P^2]) = 12(0.4 - 0.2) = 2.40 Var(E[X−Y∣P])=Var(0)=0Var(E[X-Y|P]) = Var(0) = 0 So Var(X−Y)=2.40+0=2.40Var(X-Y) = 2.40 + 0 = \mathbf{2.40}, confirming answer B. Choice A (1.20) likely comes from forgetting that Var(X−Y∣P)=Var(X∣P)+Var(Y∣P)Var(X-Y|P) = Var(X|P) + Var(Y|P) — using only one binomial's variance instead of summing both. Choice C (2.88) results from incorrectly including a Var(E[X−Y∣P])Var(E[X-Y|P]) term using Var(6P)Var(6P) rather than recognizing the conditional mean is identically zero. Choice D (5.28) reflects adding Var(6P)Var(6P) twice, double-counting the second term of total variance. Your study tip: always check whether the conditional mean of the quantity of interest is a constant — if so, the second term of total variance vanishes, simplifying your calculation dramatically.
  8. What is the posterior predictive variance of Y1+Y2Y_1+Y_2?
    Answer: 1616 When you need to find the variance of a posterior predictive quantity, reach for the law of total variance: Var(Y)=E[Var(Y∣Λ)]+Var(E[Y∣Λ])\text{Var}(Y) = E[\text{Var}(Y|\Lambda)] + \text{Var}(E[Y|\Lambda]). This decomposes uncertainty into two sources — randomness in the outcome given the parameter, and uncertainty about the parameter itself. Here, let S=Y1+Y2S = Y_1 + Y_2. Conditional on Λ\Lambda, both Y1Y_1 and Y2Y_2 are independent Poisson(Λ)(\Lambda), so S∣Λ∼Poisson(2Λ)S|\Lambda \sim \text{Poisson}(2\Lambda), meaning E[S∣Λ]=2ΛE[S|\Lambda] = 2\Lambda and Var(S∣Λ)=2Λ\text{Var}(S|\Lambda) = 2\Lambda. Applying the law of total variance: Var(S)=E[Var(S∣Λ)]+Var(E[S∣Λ])\text{Var}(S) = E[\text{Var}(S|\Lambda)] + \text{Var}(E[S|\Lambda]) =E[2Λ]+Var(2Λ)= E[2\Lambda] + \text{Var}(2\Lambda) =2E[Λ]+4Var(Λ)= 2E[\Lambda] + 4\text{Var}(\Lambda) =2(4)+4(2)=8+8=16= 2(4) + 4(2) = 8 + 8 = 16 So C) 16 is correct. Choice A) 8 captures only the first term — the expected within-Λ\Lambda variance — ignoring the additional uncertainty from not knowing Λ\Lambda exactly. Choice B) 12 likely comes from adding E[Λ]E[\Lambda] terms incorrectly or misapplying the variance of a sum. Choice D) 20 may result from using Var(2Λ)=2⋅Var(Λ)=4\text{Var}(2\Lambda) = 2\cdot\text{Var}(\Lambda) = 4 instead of 4⋅Var(Λ)=84\cdot\text{Var}(\Lambda) = 8, forgetting to square the constant when computing variance. Your key takeaway: whenever a predictive variance problem involves an unknown parameter, always apply the law of total variance — ignoring the Var(E[Y∣Λ])\text{Var}(E[Y|\Lambda]) term is the single most common mistake on Bayesian prediction problems.
  9. Let X∼N(0,1)X\sim N(0,1). Conditional on XX, a random variable YY has conditional mean E[Y∣X]=X2E[Y|X]=X^2 and conditional variance Var(Y∣X)=1+X2Var(Y|X)=1+X^2. What is Var(Y)Var(Y)?
    Answer: 44 Whenever you see a question involving a conditional mean and conditional variance, your instinct should be to reach for the Law of Total Variance: Var(Y)=E[Var(Y∣X)]+Var(E[Y∣X])\text{Var}(Y) = E[\text{Var}(Y|X)] + \text{Var}(E[Y|X]). This decomposition splits total variance into two pieces — the average within-group variance and the variance of the group means. Here, you're given E[Y∣X]=X2E[Y|X] = X^2 and Var(Y∣X)=1+X2\text{Var}(Y|X) = 1 + X^2, with X∼N(0,1)X \sim N(0,1). Compute each piece separately. For the first term: E[Var(Y∣X)]=E[1+X2]=1+E[X2]=1+1=2E[\text{Var}(Y|X)] = E[1 + X^2] = 1 + E[X^2] = 1 + 1 = 2, since E[X2]=Var(X)=1E[X^2] = \text{Var}(X) = 1 for a standard normal. For the second term: Var(E[Y∣X])=Var(X2)\text{Var}(E[Y|X]) = \text{Var}(X^2). Since X∼N(0,1)X \sim N(0,1), X2∼χ2(1)X^2 \sim \chi^2(1), which has variance 22. So Var(X2)=2\text{Var}(X^2) = 2. Adding both pieces: Var(Y)=2+2=4\text{Var}(Y) = 2 + 2 = 4, confirming the answer is C. Choice A (22) comes from computing only the first term E[Var(Y∣X)]E[\text{Var}(Y|X)] and forgetting the second term entirely. Choice B (33) likely arises from correctly computing E[Var(Y∣X)]=2E[\text{Var}(Y|X)] = 2 but mistakenly using Var(X2)=1\text{Var}(X^2) = 1 instead of 22. Choice D (55) may result from using E[X4]=3E[X^4] = 3 directly as Var(X2)\text{Var}(X^2) without subtracting (E[X2])2=1(E[X^2])^2 = 1, giving 33 for the second term instead of 22. Study tip: Always memorize that for X∼N(0,1)X \sim N(0,1), Var(X2)=2\text{Var}(X^2) = 2 (not 1!), and never skip the second term in the Law of Total Variance — it's the most common trap on questions like this.
  10. Using conditioning on KK, what is Var(X)Var(X)?
    Answer: 1.05001.0500 When a problem involves a random variable whose distribution depends on another random variable, the Law of Total Variance is your essential tool: Var(X)=E[Var(X∣K)]+Var(E[X∣K])Var(X) = E[Var(X \mid K)] + Var(E[X \mid K]). Given KK successes in the urn, XX follows a Hypergeometric distribution with parameters N=20N=20, KK, and n=5n=5. Its conditional moments are: E[X∣K]=5K20=K4,Var(X∣K)=5⋅K⋅(20−K)202⋅20−519=5K(20−K)400⋅1519E[X \mid K] = \frac{5K}{20} = \frac{K}{4}, \quad Var(X \mid K) = \frac{5 \cdot K \cdot (20-K)}{20^2} \cdot \frac{20-5}{19} = \frac{5K(20-K)}{400} \cdot \frac{15}{19} Since K∼Bin(20,0.3)K \sim Bin(20, 0.3), we have E[K]=6E[K]=6, Var(K)=4.2Var(K)=4.2, and E[K2]=Var(K)+[E(K)]2=4.2+36=40.2E[K^2]=Var(K)+[E(K)]^2=4.2+36=40.2. First term: E[Var(X∣K)]=75400⋅19E[K(20−K)]=757600(20E[K]−E[K2])=757600(120−40.2)=75×79.87600≈0.7875E[Var(X\mid K)] = \frac{75}{400 \cdot 19}E[K(20-K)] = \frac{75}{7600}(20E[K]-E[K^2]) = \frac{75}{7600}(120-40.2) = \frac{75 \times 79.8}{7600} \approx 0.7875 Second term: Var(E[X∣K])=Var ⁣(K4)=Var(K)16=4.216=0.2625Var(E[X\mid K]) = Var\!\left(\frac{K}{4}\right) = \frac{Var(K)}{16} = \frac{4.2}{16} = 0.2625 Adding both: Var(X)=0.7875+0.2625=1.0500Var(X) = 0.7875 + 0.2625 = 1.0500, confirming D. Choice A (0.2625) is only the second term — forgetting E[Var(X∣K)]E[Var(X\mid K)]. Choice B (0.7875) is only the first term — forgetting Var(E[X∣K])Var(E[X\mid K]). Choice C (0.8290) likely arises from misapplying the hypergeometric variance formula, perhaps omitting the finite-population correction. Always decompose variance using both components of the Law of Total Variance — dropping either piece is the most common trap on conditioning problems.

Start this quiz