# Estimate population size based on repeated observation

I take the bus to work every day. Every bus has a serial number, but unlike in the German Tank Problem, I don't know if they are numbered uniformly $1...n$.

Suppose the first $k$ buses are all different, but on day $k+1$ I take one I've been on before. What is the best estimate for the total number of buses?

-

Maximum likelihood estimate is the smallest $n$ for which $$\left( 1+\frac{1}{n} \right)^k \leq \frac{n}{n-k+1},$$ that gives a value of $n$ asymptotically equal to $\frac{k^2}{2}$, consistently with the Birthday Paradox. Not sure whether an unbiased estimate would be better for any practical purpose; maybe you do have an a priori distribution for which a Bayesian estimate makes sense?
It seems that the estimate $\frac{k(k+1)}{2}$ is unbiased (the only unbiased estimate, actually). – Thorny Feb 11 '10 at 14:50
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 1, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.962281346321106, "perplexity": 259.844685426595}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2016-07/segments/1454701146196.88/warc/CC-MAIN-20160205193906-00150-ip-10-236-182-209.ec2.internal.warc.gz"}