Let $X$ be a random variable with uniform discrete distribution on $\{1,\ldots,\theta\}$ where $\theta$ is an unknown positive integer. How to find the method of moment estimator $\widehat{\theta}_{n} $ based on a finite sample $(X_1,X_2,\ldots,X_n)$ of $X$?
Thanks a lot.