A website gets N∼Poisson(λ) visitors per hour. Each visitor independently spends an amount Xi with mean μ and variance σ2. Using the laws of total expectation and total variance, what are the mean and variance of the hourly revenue Y=∑i=1NXi? What are the values for λ=10, μ=3, σ2=4?

Probability and statistics, Conditional expectation
Level L3 Intermediate. Length Medium. Nature Mat Mathematical.

What's being asked

Conditioning on the random number of terms, E[Y]=E[E[Y∣N]], and the variance decomposition.

Key idea

E[Y]=E[E[Y∣N]] and Var(Y)=E[Var(Y∣N)]+Var(E[Y∣N]).

Steps

  1. Condition on N=n: Y is a sum of n independent terms, so E[Y∣N]=Nμ and Var(Y∣N)=Nσ2.
  2. Law of total expectation: E[Y]=E[Nμ]=μ E[N]=λμ.
  3. Average the conditional variance: E[Var(Y∣N)]=σ2 E[N]=λσ2.
  4. Variance of the conditional mean: Var(Nμ)=μ2 Var(N)=λμ2, since a Poisson variance equals its mean.
  5. Add: Var(Y)=λσ2+λμ2=λ(σ2+μ2).
  6. Numbers: E[Y]=10×3=30 and Var(Y)=10×(4+9)=130.

Common mistakes

How long your answer should be

Half a page; 5 minutes.

Last checked on 4 December 2026.

Read this

Previous in Probability and statistics: The number of attempts K until the first success has P(K=k)=(1−p)k−1p, for k=1,2,…. You observe 4 independent runs needing 3, 1, 4 and 2 attempts. How do you derive the MLE of p, and what is its value?
Next in Probability and statistics: Event counts are Poisson(λ). You use a Gamma prior with shape α=2 and rate β=1, whose density is ∝λα−1e−βλ. You observe counts 3,5,4. What are the posterior, its mean, the MAP estimate and the MLE?