Estimating Mean Upload Size When Sizes Look Log-Normal

Last updated: November 29, 2026

Quick Overview

Instagram photo upload sizes look log-normal. From a sample of 2,000 uploads you have the mean and standard deviation of log size. Estimate the mean upload size, compare the plug-in log-normal estimator with the plain sample mean, and explain when each is better.

Meta
Statistics & Math
Data Scientist
Meta
November 29, 2026
Data Scientist
Technical Screen
Statistics & Math
Medium

0

0

0 solved


Instagram photo upload sizes look log-normal. From a sample of 2,000 uploads you have the mean and standard deviation of log size. Estimate the mean upload size, compare the plug-in log-normal estimator with the plain sample mean, and explain when each is better.

A Meta infrastructure data science screen question about storage planning, where heavy-tailed sizes are the norm. The interviewer checks that you know the log-normal mean is not exp of the mean log, and that you can weigh model efficiency against robustness.

What the Interviewer Expects
  • State that the median is exp(mu) and the mean is exp(mu + sigma^2/2)
  • Compute the plug-in estimate and note its small bias
  • Compare variance of the plug-in versus the sample mean
  • Explain sensitivity to model misspecification in the tail
  • Propose a check such as comparing both estimators or a QQ plot
Key Topics to Cover
log-normal distribution
plug-in estimator
Jensen's inequality
efficiency
model misspecification
How to Approach This
  1. Define your hypotheses (H0 and H1) clearly before performing any test.
  2. Calculate required sample size BEFORE running an experiment, using power analysis.
  3. Remember the Central Limit Theorem: sample means become approximately normal with large n.
  4. Watch for Simpson's paradox. Always segment data by key dimensions.
  5. Distinguish between statistical significance and practical significance.
Possible Follow-up Questions
  • How would you put a confidence interval on the log-normal mean?
  • What if the log sizes have a heavier right tail than normal?
  • For capacity planning, which quantity matters more than the mean?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Browse Statistics Questions
Sample Answer
Clarify
  • Sizes Xi>0X_i > 0 in MB, Yi=ln⁡XiY_i = \ln X_i.
  • Sample: n=2000n = 2000, yˉ=0.5\bar y = 0.5, sy=1.0s_y = 1.0.
  • Want E[X]E[X] for storage planning (total bytes = uploads x mean size)....
Approach

If Y∼N(μ,σ2)Y \sim N(\mu, \sigma^2) then median(X)=eμ,E[X]=eμ+σ2/2.\text{median}(X) = e^{\mu}, \qquad E[X] = e^{\mu + \sigma^2/2}. Two estimators:

  1. Plug-in (MLE-based): m^=exp⁡(yˉ+sy2/2)\hat m = \exp(\bar y + s_y^2/2).
  2. Sample mean ...

Submit Your Answer
Markdown supported