Find the MLE based on a random sample of size n for the following distribution N (0,theta)
what have you tried?
I assume you can find the likelihood function.
i really dont even know where to start
do you know the pdf?
\[f(x;\theta)=\frac{1}{\sqrt{2\pi\theta}}e^{-\frac{x^2}{2\theta}}\]
now you need to find the likelihood function \[L(\theta)=\prod_{i=1}^{n}\frac{1}{\sqrt{2\pi\theta}}\exp\left(-\frac{x_i^2}{2\theta}\right)\]
and how do i go about doing that?
the above is the likelihood function \[L(\theta):=\prod_{i=1}^{n}f(x_i;\theta)\]
have you done any of these before?
no im soo lost
do you understand my notation?
yea i know what the notations are
the above is the definition of the likelihood function...you then need to take the log of that and then differentiate with respect to \(\theta\)
ayi ayi lol
\[\ell(\theta)=Log(L(\theta))=Log\left(\prod_{i=1}^{n}\frac{1}{\sqrt{2\pi\theta}}\exp\left(-\frac{x_i^2}{2\theta}\right)\right)\]
what does the exp mean?
\[\exp(x)=e^{x}\]
\[=\sum_{i=1}^{n}Log\left(\frac{1}{\sqrt{2\pi\theta}}\exp\left(-\frac{x_i^2}{2\theta}\right)\right)\]
can you simplify this using the properties of logs...then differentiate. here Log is the natural log
ok yea i was gunna say isnt it the natural log
it doesn't have to be...but it make the simplification easier.
ok.and no im terrible at differentiation
can you simplify it?
\[Log(AB)=Log(A)+Log(B)\] \[Log(A^r)=r\cdot Log(A)\]
i know log (b)
its just the exponent lol
right?
yes..the Log of e is just the exponent
and log A becomes ?
\[=\sum_{i=1}^{n}\left[Log\left(\frac{1}{\sqrt{2\pi\theta}}\right)+Log\left(\exp\left(-\frac{x_i^2}{2\theta}\right)\right) \right]\] \[ =\sum_{i=1}^{n}\left[-\frac{1}{2}Log\left(2\pi\theta\right)-\frac{x_i^2}{2\theta} \right]\]
now i have to differentiate that?
\[=-\frac{n}{2}Log\left(2\pi\theta\right)-\frac{1}{2\theta}\sum_{i=1}^{n}x_i^2\] then differentiate
and of course ihave no idea how to do that..im sorry thank you so much more helping me
treat everything as a constant except \(\theta\)
after taking the derivative you should get \[-\frac{n}{2\theta}+\frac{1}{2\theta^2}\sum_{i=1}^{n}x_i^2\]
and is that the final answer?
no
what do i have to do next?
set equal to zero and solve for \(\theta\)
ok and that gives you the answer?
it does...though you should really check to see if it is indeed a maximum.
and what if its not?
it will be
i get confused on how to manipulate a function with summations in it
im sorry you prob think im so dumb..i really just dont understand this
so theta equals summation xi2/n?
yes \[\hat{\theta}=\dfrac{\displaystyle\sum_{i=1}^{n}x_i^2}{n}\]
thank you soo much!!!
Join our real-time social learning platform and learn together with your friends!