A box contains red and green balls whose exact composition is not known. An experimenter draws balls one by one with replacement until a green ball appears. Let X denote the number of balls drawn until a green ball appears. This operation is repeated n times to obtain the sample X1,X2,...,Xn. Let p be the fraction of green balls in the box. What is the maximum-likelihood estimate of p on the basis of this sample?