Estimating How Many Pixel Units Shipped From Observed Serial Numbers

Last updated: November 29, 2026

Quick Overview

Pixel serial numbers in a batch run from 1 to an unknown N. You observe k distinct serials sampled uniformly without replacement, with maximum m. Derive an unbiased estimator of N and compare it to using m alone.

Google
Statistics & Math
Data Scientist
Google
November 29, 2026
Data Scientist
Onsite
Statistics & Math
Hard

0

0

0 solved


Pixel serial numbers in a batch run from 1 to an unknown N. You observe k distinct serials sampled uniformly without replacement, with maximum m. Derive an unbiased estimator of N and compare it to using m alone.

This German tank problem in a hardware framing appears in Google data science onsites to probe estimation theory: bias, sufficiency and variance. Interviewers check whether you can derive the distribution of the sample maximum and correct its bias rather than guessing.

What the Interviewer Expects
  • Recognize the max is sufficient and biased low
  • Derive E[m] = k(N+1)/(k+1)
  • Give the unbiased estimator m(1 + 1/k) - 1
  • Compare variances with the 2*mean - 1 estimator
  • Discuss assumptions like uniform sampling and sequential numbering
Key Topics to Cover
German tank problem
order statistics
unbiased estimators
sufficiency
MVUE
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
  • What is a 95% confidence interval for N?
  • Why is the 2*sample-mean estimator worse?
  • What if serials start at an unknown offset rather than 1?
  • How would a Bayesian approach with a prior on N differ?
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

Serials are 1..N1..N, and we see kk distinct ones drawn uniformly without replacement, so each kk-subset is equally likely. Let mm be the largest observed. We want an unbiased estimator for NN and t...

Approach

Find the distribution of mm, compute its mean, and invert. The max is the sufficient statistic, so by Lehmann-Scheffe the unbiased function of it is the minimum-variance unbiased estimator....


Submit Your Answer
Markdown supported