Let $ x_i $ be iid observations in a sample from a uniform distribution over $ \left[ 0, \theta \right] $. Now I need to estimate $ \theta $ based on $N$ observations and I want the estimator to be unbiased.
I thought about simple estimator $ \hat{\theta} = \max \left( x_i \right) $.
Based on simulation it is not biased, yet I couldn't show it analytically.
Could anyone, please, show it is unbiased?
BTW, I could easily find another, easy to prove, unbiased estimator, $ \hat{\theta} = 2 \mathrm{mean} \left( {x}_{i} \right) $