Maximum Likelihood Calculus Problems

mcstl2525

New member
Joined
Sep 3, 2006
Messages
1
Hi all, this is my first post here, looks like a great place! I hope to use this board throughout my current semester as it is going to be a rough one! I'm taking an advanced econometrics course, and my calculus is very poor. I've never taken a calculus class, and have pretty much taught myself just enough to get through my upper level finance classes.

I'm looking over a maximum likelihood problem right now and am having trouble following the calculus in the problem. To most here I'm sure it is very simple, and if someone could answer my questions I would appreciate it greatly.

The Problem: Consider a normall distributed random variable X with mean u and variance o^2, i.e., X~N(u,o^2). We observe a random sample {x1, x2, ...., xn}. Find the MLE of u. ( I will use r in place of pie, and E for epsilon)

(I will ask all of the questions that I have in CAPS)

Log of the density function:

logf(x) = -(1/2)*log(2ro^2) - (1/2)((x-u)/o)^2

When substituted into the likelihood function we get:

L = E[-(1/2)*log(2ro^2) - (1/2)((x-u)/o)]^2

which equals => -(n/2)*log(2ro^2) - (1/2o^2) E(x-u)^2

MY FIRST QUESTION, WHERE DOES THE n COME FROM, AND WHY IS EVERYTHING BESIDES THE (x-u) TAKEN OUT OF THE E?

Next we differentiate with respect to u and o^2:

dL/du = -(1/2o^2) E 2(x-u)(-1)
dL/d(o^2) = -(n/2)(1/o^2) + (1/2o^4)E(x-u)^2

Ok, in the (dL/du)... the first half of the likelihood function drops out because there isn't a "u" in it. I guess my only question is where does the (-1) come from? I think that it has something to do with the chain rule, but I'm really not sure.

In the second part, I understand the second part ((1/2o^4)E(x-u)^2), but am confused on how the first half is derived.


I really am behind in even this simple calculus, and if anyone could recommend somewhere would I could get some practice, I would greatly appreciate it. Thanks in advance!
 
mcstl2525 said:
Hi all, this is my first post here, looks like a great place! I hope to use this board throughout my current semester as it is going to be a rough one! I'm taking an advanced econometrics course, and my calculus is very poor. I've never taken a calculus class, and have pretty much taught myself just enough to get through my upper level finance classes.

I'm looking over a maximum likelihood problem right now and am having trouble following the calculus in the problem. To most here I'm sure it is very simple, and if someone could answer my questions I would appreciate it greatly.

The Problem: Consider a normall distributed random variable X with mean u and variance o^2, i.e., X~N(u,o^2). We observe a random sample {x1, x2, ...., xn}. Find the MLE of u. ( I will use r in place of pie, and E for epsilon)

(I will ask all of the questions that I have in CAPS)

Log of the density function:

logf(x) = -(1/2)*log(2ro^2) - (1/2)((x-u)/o)^2

When substituted into the likelihood function we get:

L = E[-(1/2)*log(2ro^2) - (1/2)((x-u)/o)]^2 This is actually the log of the likelihood function, called the log likelihood.

which equals => -(n/2)*log(2ro^2) - (1/2o^2) E(x-u)^2

MY FIRST QUESTION, WHERE DOES THE n COME FROM, AND WHY IS EVERYTHING BESIDES THE (x-u) TAKEN OUT OF THE E? n is the number of terms in the sum. Everything besides (x-u) are common factors in the sum.

Next we differentiate with respect to u and o^2:

dL/du = -(1/2o^2) E 2(x-u)(-1)
dL/d(o^2) = -(n/2)(1/o^2) + (1/2o^4)E(x-u)^2

Ok, in the (dL/du)... the first half of the likelihood function drops out because there isn't a "u" in it. I guess my only question is where does the (-1) come from? I think that it has something to do with the chain rule, but I'm really not sure. -1 is the coefficient of u and yes it's there because of the chain rule.

In the second part, I understand the second part ((1/2o^4)E(x-u)^2), but am confused on how the first half is derived. log(2ro^2) = log(2r)+log(o^2). log(2r) drops out because there isn't an "o^2" in it. dlog(o^2)/do^2 = 1/o^2.


I really am behind in even this simple calculus, and if anyone could recommend somewhere would I could get some practice, I would greatly appreciate it. Thanks in advance!
 
Top