In a crossover trial comparing a new drug to a standard, $\pi$ denotes the probability that the new one is judged better. it is desired to estimate $\pi$ and test $H_0:\pi=0.50$ against $H_a: \pi \neq 0.50$. In $20$ independent observations, the new drug is better each time.
I know that MLE of $\pi$ is $\hat{\pi} =\frac{y}{n}$. I know the answer is $\hat{\pi}=1$, but I'm stuck on how they got the answer.
I know that $n=20$, the only way I can think of they got a $1$ is if $y= 20$ too but how.