Log likelihood and Maximum likelihood

1 reply · 2K views · last reply
cajswn
Messages
1
Reaction score
0
Text exercise 10 on estimation: X ~ Bin(1, p), find the log-likelihood for the sample {0, 1, 1, 0}, show dl/dp = 4x̄/p − (4 − 4x̄)/(1 − p), then find the MLE and method of moments estimate.

I'm not sure how to get this first derivative (mainly where does the 4 come from?)
I know x̄ is the sample mean (which I think is 1/2?)
Can someone suggest where to start with finding the log-likelihood?

I know the mass function of a binomial distribution is:
Definition 3.8: a random variable X has a binomial distribution with size parameter n in N and probability parameter p in (0, 1) when its mass function is f(x) = C(n, x) p^x (1 - p)^(n - x) for x in {0, 1, 2, ..., n}, and f(x) = 0 otherwise; written X ~ Bin(n, p).


Thanks!
 
Last edited:
Hi cajswn,

To determine the likelihood function we need to create the joint probability distribution. Since the 4 individual trials of the binomial process are independent, we simply multiply the 4 individual probability density functions to get the needed joint probability distribution: $$L = p^{2}(1-p)^{2}.$$ Now take the logarithm to get the log-likelihood function: $$l = 2\ln p + 2\ln (1-p).$$ Since $\bar{x} = 1/2$ we have $2=4\bar{x}$ and $2 = 4-4\bar{x}$. Using these two identities we get: $$l = 4\bar{x}\ln p +(4-4\bar{x})\ln (1-p).$$ From here, take the derivative of $l$ with respect to $p$ to get the result you're looking for.