The Rao-Blackwell theorem states that if an estimator has finite second moment and is a sufficient statistic, then can be chosen without knowing the parameter. It has the same expectation as and no larger variance. In particular an unbiased estimator remains unbiased and its squared-error risk cannot increase. Sufficiency makes the conditional distribution, hence the function of used here, parameter-independent.
The tower property gives . The law of total variance gives
so the variance decreases, with equality exactly when is already a function of almost surely. Since the bias is unchanged, the same identity proves the squared-error risk claim. More generally the corresponding convex-loss inequality follows from conditional Jensen's inequality.
For the given geometric distribution, the joint mass is on positive-integer sample vectors. Thus is a one-dimensional sufficient statistic. Directly, conditional on , every positive-integer composition of into parts has the same probability; there are such compositions, independently of .
The simple estimator is unbiased for , since . For , compositions with are counted by subtracting one from their first part, giving when . Consequently the Rao-Blackwell estimator of a geometric failure probability is
At its value is zero, as it must be when all observations are one. For the possible one-observation case, use ; the displayed fraction would otherwise be undefined at . The conditional-expectation argument proves unbiasedness without needing to sum the negative-binomial mass explicitly.