q = P[H]
You toss a coin 5 times, get heads on the fifth toss
X~Geometric(q)
max Px(5;q) = (1-q)^4*q
derivative: (1-q)^4 - 4*(1-q)^3*q
4*q = 1 - q
q = 1/5
q = P[H]
You toss a coin 5 times, get heads on the fifth toss
X~Geometric(q)
max Px(5;q) = (1-q)^4*q
derivative: (1-q)^4 - 4*(1-q)^3*q
4*q = 1 - q
q = 1/5