← Bank of America Interview Insights

Bank of America·Software Engineer·Technical Phone Screen·Senior

Senior
Apr 2026

Summary

A quant researcher interview with a single stats question that sounds straightforward but has a small wrinkle worth thinking about carefully.

Questions Asked (1)

Q1

You have 100 iid draws from a normal distribution with mean zero and unknown variance. How do you estimate sigma, and is your estimator unbiased?

Technical Trade-offs
Author's notes

I went straight to sample standard deviation and felt good about it, then they asked the unbiased part and I fumbled a bit.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by stating the maximum likelihood estimator (MLE) for the standard deviation, which is the square root of the average squared deviations from the known mean of zero. Then explain that this estimator is biased for sigma, and discuss the bias correction using the sample standard deviation with n-1 in the denominator, noting that even that is not perfectly unbiased for sigma.

Pro tip: Mention that while the sample variance with n-1 is unbiased for the variance, its square root is not unbiased for the standard deviation due to Jensen's inequality. This shows depth and avoids a common pitfall.

1. Identify the estimator

Since the mean is known to be zero, the MLE for variance is the average of the squared observations: σ̂² = (1/n) Σ x_i². The MLE for σ is the square root of that.

2. Check bias of the variance estimator

The estimator σ̂² is unbiased for the true variance because E[σ̂²] = σ². This is a key property to mention.

3. Address bias of the standard deviation estimator

The square root of an unbiased estimator is not unbiased for the square root of the parameter. By Jensen's inequality, E[√σ̂²] < √E[σ̂²] = σ, so the MLE for σ is biased downward.

4. Discuss bias correction

A common bias-corrected estimator is the sample standard deviation with denominator n-1: s = √(Σ x_i² / (n-1)). However, s is still not perfectly unbiased for σ; it is unbiased for σ only asymptotically. For small samples, a correction factor using the gamma function can be applied.

5. Conclude on unbiasedness

State that no simple closed-form unbiased estimator exists for σ in general, but the MLE is asymptotically unbiased and consistent. For practical purposes, the MLE or the n-1 corrected version is often used.

Key Points to Mention

  • Maximum likelihood estimator for σ when mean is known: sqrt(Σ x_i² / n)
  • The variance estimator (Σ x_i² / n) is unbiased for σ²
  • The square root of an unbiased estimator is not unbiased for the square root (Jensen's inequality)
  • The sample standard deviation with n-1 denominator is still biased for σ, but less so
  • Asymptotic unbiasedness and consistency of the MLE
  • Possible bias correction using gamma function for small samples

AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.