The logarithm of the likelihood function(L) for estimating the population mean and variance for an i.i.d normal sample is as follows: L=−2nlog(2πσ2)−2 p21Σ ( Yi−mAnd)2
maxmum likelihood estimators Taking the dericative with respect to the two parameters mAndand p2results in ∂μAnd∂L=−2 p21∑2 ( Yi−mAnd)(−1)=p21Σ ( Yi−mAnd)∂σ2∂L=−2 p2n+2 p41Σ ( Yi−inAnd)2 The maximum likelihood estimator is then the value for mAndand p2 that maximizes the (log) likelihood function. Setting both equations to zero, and assuming that this results in a maximum rather than a minimum, yields mThe Y , M L' E=n1∑Yi=YpM L E2=n1Σ ( Yi−Y)
differ from the OLS estimators The maximum likelihood estimator of the population mean is therefore the sample mean. Since th OLS estimator is identical, and it is unbiased, the MLE will also be unbiased . However, the MLE for the population differs from the OLS estimator, and since the OLS estimator is unbiased, the MLE must be biased. But, the difference betwwen the two estimators vanishes as n increases, and hence the MLE is consistent.