Let $X\sim Geo(p)$ be a random variable, and $X_1,...,X_n$ a random random sample from the distribution of $X.$
Prove that $\frac{1}{2n}\sum^n_{i=1}X_i^2-\frac{1}{2}\bar X$ is an estimator in the methods of moments for $Var(X)$.
Basically what I've tried to do is try to express $Var(X)$ as a function of $E(X)=\mu_1,E(X^2)=\mu_2$.
I did these two attempts:
$Var(X)=E(X^2)-[E(X)]^2=\mu_2-\mu_1^2=g_1(\mu_1,\mu_2)$.
$Var(X)=\frac{1-p}{p^2}=\frac{1-\frac{1}{\mu_1}}{\frac{1}{\mu_1^2}}=\mu_1(\mu_1-1)=g_2(\mu_1)$.
Both these functions led to two different estimators.
But $g_1$ led to: $\frac{1}{n}\sum^n_{i=1}X_i^2-(\bar X)^2$. Which somehow looks like the estimator I'm asked to prove.
But I got stuck here, I would appreciate any help in how to prove this. Thanks in advance!