I followed the example given by Anand Gautam, and solved the equation :$ \hat n_{ML} = \text{max}_n ( \binom{n}{1000000} p^{1000000} (1-p)^{n-1000000} ) $. and the answer i got is n=(1e6)/p, which make sense to me. for example, u toss coin n times, got 5 heads,the probablity of getting head is 1/2, asking you to find n. it is quite obvious, n=5/0.5=10, in other words n=(# of heads)/p. If you follow the example, and mimic it, you will end up getting $ 0= p^{1000000} (1-p)^{n-1000000-1}(1m-np)\,\ $. since P^1000000 is >0 and (1-p)^(n-1000000-1) is >0, we set 1m-np=0 and we will get n=1m/p

Alumni Liaison

Basic linear algebra uncovers and clarifies very important geometry and algebra.

Dr. Paul Garrett