Bayesian Statistics interview question

StatisticsBayesian Statisticsmedium

A bank's prior for the mean monthly card spend μ of a new customer segment, based on similar segments, is μ ~ N(400, 20²) €. A pilot with 64 customers gives a sample mean of 460 €; treat the spend SD σ = 80 € as known. What is the posterior for μ?

  1. AMean 430 €, SD ≈ 14.1 €: with a normal prior and a normal likelihood, the posterior mean is the midpoint between the prior mean and the sample mean.
  2. BMean 448 €, SD ≈ 8.9 €: the data's precision (1/10²) is four times the prior's (1/20²), so the sample mean receives a weight of 0.8 in the average.
  3. CMean 412 €, SD ≈ 8.9 €: the prior SD of 20 is twice the data's standard error of 10, so the prior mean receives a weight of 0.8 in the average.
  4. DMean 460 €, SD 10 €: once observed data exist they fully dominate a normal prior, so the posterior equals the sampling distribution of the mean.
Show the answer and explanation

Correct answer: B, Mean 448 €, SD ≈ 8.9 €: the data's precision (1/10²) is four times the prior's (1/20²), so the sample mean receives a weight of 0.8 in the average.

Explanation Bayesian Statistics

With a normal prior N(μ₀, τ²) and n observations with known σ, the posterior for μ is normal and precisions add:

  • Prior precision: 1/τ² = 1/400 = 0.0025
  • Data precision: n/σ² = 64/6,400 = 0.01 (the standard error of x̄ is 80/√64 = 10)
  • Posterior precision: 0.0125, so posterior variance = 80 and SD ≈ 8.9 €
  • Posterior mean = (0.0025 × 400 + 0.01 × 460) / 0.0125 = 448 €

So the posterior mean is a precision-weighted average: weight 0.01/0.0125 = 0.8 on the sample mean and 0.2 on the prior mean. Equivalently, the prior is worth σ²/τ² = 6,400/400 = 16 pseudo-customers, and (16 × 400 + 64 × 460) / 80 = 448. Note that the posterior SD (8.9) is smaller than both the prior SD (20) and the standard error (10): independent information accumulates.

Why the other answers fail: the midpoint ignores how informative each source is. Giving the larger weight to the source with the larger SD reverses the logic, since weights are proportional to 1/variance. And a proper prior never disappears entirely; it is merely outweighed, here with 20% of the say.

SourceMeanSDPrecisionWeight
Prior400200.00250.2
Data (x̄)460100.01000.8
Posterior4488.90.0125

Interview tip: point out that the same inverse-variance logic drives meta-analysis, the Kalman filter update and shrinkage estimators, and that a sceptical stakeholder can be shown the prior as "worth 16 customers".

Practice it as a quiz

Answer this and the other free questions with instant grading, streaks and weak-topic tracking, or unlock all 4,000 questions.

More Statistics questions

  1. Which measure of central tendency is more robust to outliers, the mean or the median, and why?
  2. Which statement about the normal distribution is correct?
  3. What does the central limit theorem (CLT) state?
  4. What is the correct definition of a p-value?
  5. When is a one-sample t-test the appropriate test?