The function is:
(n choose x)$[(1-y)^{k}]^{x}[1-(1-y)^{k}]^{n-x}$
Suppose n = 100, k = 10, x = 89
I found the maximum likelihood of y-hat to be 0.0116
Now I need to find a 10% likelihood interval. This means that I need 90% confidence(I think).
So the interval is:
[y-hat - 1.645*sqrt(1/n * (y-hat(1 - y-hat))) , y-hat + 1.645*sqrt(1/n * (y-hat(1 - y-hat)))]
When I plug in the values, I get [-0.006014, 0.029217]
The correct answer is [0.0056, 0.0207]
What am I doing wrong?
If we let $\theta = (1-y)^k$ then this is a binomial inference problem. Your MLE is correct, but the approximation methods you are using are not valid for this problem. Note that $y=.016 \implies \theta \approx 0.89$, which is rather skewed and hence a sample size of 100 is likely not going to cut it for using normal approximations (which is what you are trying to do). You will need to numerically solve this: