A website gets visitors per hour. Each visitor independently spends an amount with mean and variance . Using the laws of total expectation and total variance, what are the mean and variance of the hourly revenue ? What are the values for ?
Probability and statistics, Conditional expectation
Level L3 Intermediate. Length Medium. Nature Mat Mathematical.
What's being asked
Conditioning on the random number of terms, , and the variance decomposition.
Key idea
and .
Steps
- Condition on : is a sum of independent terms, so and .
- Law of total expectation: .
- Average the conditional variance: .
- Variance of the conditional mean: , since a Poisson variance equals its mean.
- Add: .
- Numbers: and .
Common mistakes
- Using alone. This ignores the randomness of , which adds .
- Treating as fixed and writing as a number.
- Assuming the must be Gaussian. Only the means and variances are used.
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 until the first success has , for . You observe 4 independent runs needing 3, 1, 4 and 2 attempts. How do you derive the MLE of , and what is its value?
Next in Probability and statistics: Event counts are Poisson. You use a Gamma prior with shape and rate , whose density is . You observe counts . What are the posterior, its mean, the MAP estimate and the MLE?