In a city there are $N > 1$ cabs with the clearly visible numbers $1, ..., N$. A tourist stands at one of the central places of the city and observes the traffic, thereby he sees $n$ cabs and notes the cab numbers as $X_1, ..., X_n$. Small note: The noted cabs appear partly twice in the list. The tourist wants to estimate the number of cabs with the help of the information that they are uniform distributed over the city. For this he has thought of the following estimator:
$U_n = max(X_1, .., X_n)$ and $ \hat{U_n} = \frac{2}{n} \cdot \sum_{i=1}^nx_i$
a) Calculate $E(x_i)$
Because of the interval [1,n], I thought of $E(x_i)= \frac{1+n}{2}$.
b) Calculate $E(\hat{U_n})$
$E(\hat{U_n}) = E(\frac{2}{n} \cdot \sum_{i=1}^nx_i) = \frac{2}{n} \cdot \sum_{i=1}^n E(x_i) = \frac{2}{n} \cdot n \cdot \frac{1+n}{2} = n+1$. I don't think that this is correct because it would be a bad estimator for N because of the possibility for multiple taxis.
c) Determine $P (U_n ≤ k)$ with $k ∈ [1, ..., N]$ and derive $P(U_n = k)$
I have no clue how to solve this.
I appreciate any ideas or solutions to my problem.