For $X_1,\dots, X_n$ iid sample from $X\sim Bernoulli(p)$. I try to verity that the estimator $\hat{p}=\bar{X}$ (sample mean) is the UMVUE for unknown parameter $p$.
I know that $\hat{p}$ is unbiased. I try to show that $Var[\hat{p}]=CRLB$ (Cramer-Rao lower bound), which is $$ CRLB=\frac{[I'(\theta)]^2}{nI(\theta)}, $$ and $I$ is the Fisher information.
My question is that what is the Fisher information here?
Note that the score function is $$U(p)=\frac{x-p}{p(1-p)}$$ for one sample.
Also, $$U(p)=\frac{\sum x_i-np}{p(1-p)}$$ for $n$ samples $X_1,\dots, X_n$.
I have two $I(p)$ here. I am not sure if I choose the Fisher information based on the $U(p)$ for one sample or $n$ sample...
$$ I_1=E\left[\frac{(X-p)^2}{(p(1-p))^2}\right]=\frac{1}{p(1-p)} $$ and another one is $$ I_2=E\left[\frac{(\sum X_i-np)^2}{(p(1-p))^2}\right]=\frac{n}{p(1-p)} $$