-1
$\begingroup$

Find the maximumlikelihood estimator of the following density function.

When I asked before, @Glen_b said that this is special case of shifted gamma distribution.

$$y=a+u^2$$ for u~N(0, $\sigma^2$)

Question says that work out the density of y.

Therefore I take

$f(y,a)=(y-a)^{1/2}$

At this point I am not sure whether I use such a function or not. What is the density function of y?

But I assumed that I should use this density function of y. And I calculate as follows:

Firstly I write the joint density

$L(a)=\prod_{i=1}^n (y_i-a)^{1/2}$

And then I take its logarithm,

$ln(L(a))=ln[\prod_{i=1}^n (y_i-a)^{1/2}]={1\over 2}\sum_{i=1}^nln(y_i-a)$

Finally, take its derivative with respect to a,

${\partial ln(L(a))\over \partial a}={-1\over 2}\sum_{i=1}^n{1\over (y_i-a)}=0$

But I cannot derive $a$ alone to find $\hat{a}_{ML}$

I guess my solution have some mistakes. Especially I think $f(y,a) $ is false. But I don't know how I can express it.

Please show me something /my mistakes about it. If I write $f(y,a) $ correctly, I can find $\hat{a}_{ML}$ by myself.

Thank you in advance by helps.


moved up from comments:

$u=\sqrt{x-a}$ and $u=-\sqrt{x-a}$ $|du/dy|=|1/2 (y-a)^{-1/2}|$ And I use this formula $f_y=|du/dy|f(u)$ so my attempted answer for the density of $y$ is:

${1\over 2 \sigma \sqrt {2\pi ({y-a})}}exp(-(y-a)/2\sigma^2 ) $

$\endgroup$
4
  • $\begingroup$ Can you work you the density of $u^2$? Or even $|u|$? $\endgroup$
    – Glen_b
    Nov 13, 2017 at 23:17
  • $\begingroup$ No, the question says to work with the density of y. @Glen_b $\endgroup$
    – none009
    Nov 13, 2017 at 23:18
  • 1
    $\begingroup$ You're asking about how to work it out. I realize you want to be able to get the density of $y$ but since you don't understand how to do that in one step I am trying to break it down, step by step for you. If you know how to find the density for the new variable in either of these simpler problems ($v_1=u^2$ or $v_2=|u|$), it's easy to explain how to get the density of $y$. As a general principle, this general idea (break a problem down into small steps and solve the problems arising from those smaller steps one by one) is an essential strategy to learn. $\endgroup$
    – Glen_b
    Nov 13, 2017 at 23:21
  • $\begingroup$ In fact, I don't really know how to find the density function perfectly. Up to today, I used given density or common density functions. But this question require to find density function as well as finding mle estimator. Please show me how to find the density function of y. I know this is my lack of my knowledge on statistics. Thank you a lot. @Glen_b $\endgroup$
    – none009
    Nov 13, 2017 at 23:31

1 Answer 1

3
$\begingroup$

Your title mentions MLE but you actually ask about calculating the CDF of $Y$ (which is what I address below).

===

Consider this problem:

Let $U\sim \text{Unif}(-3,3)$, let $V=|U|$. Write down the density of $V$.

We can do this by inspection.

$f_U(u) = \frac16 \,,\quad -3<u<3$ and $0$ elsewhere.

Since all the density below $0$ will be taken over to the corresponding value the other side of $0$ (-2 maps to 2 and so forth), the density will be everywhere doubled:

$f_V(v) = \frac13 \,,\quad 0\leq v<3$ and $0$ elsewhere.

Or by basic probability reasoning:

Note that $F_U(u) = \begin{cases} \quad 0,\qquad\qquad u\leq -3,\\ (u+3)/6,\: -3<u<3,\\ \quad 1,\qquad\qquad u\geq 3 \end{cases}$

$F_V(v)=P(V\leq v) = P(|U|\leq v) = P(-v\leq U\leq v)=P(U\leq v)-P(U< -v)$

For $v$ between $0$ and $3$ that's $(v+3)/6 - (-v+3)/6 = 2v/6 = v/3$. Checking the remaining cases, we can write

$F_V(v) = \begin{cases} \quad 0,\qquad\qquad v< 0,\\ v/3,\qquad\: 0\leq v<3,\\ \quad 1,\qquad\qquad v\geq 3 \end{cases}$

We can get the densiy of $V$ from there by differentiation.

You should be able to do the $N(0,\sigma^2)$ case similarly to either the first or the second approach there.

Now consider that we want the density of $W=V^2$.

$F_W(w)=P(W\leq w) = P(V^2 \leq w) $ (note that this is monotonic in $V$ when $V$ is nonnegative, so we can just take the $\sqrt{}$ of both sides of the inequality)

$\qquad\quad\, = P(V\leq \sqrt{w}) = F_V(\sqrt{w})$ ...

.. and just focusing at the case where there's some density for now:

$\qquad\: =\sqrt{w}/3,\: 0\leq w<9$

hence by differentiation the density in that region is $\frac{1}{6\sqrt{w}}$ (and looking at the remaining cases is $0$ elsewhere)

Again you can do the normal case similarly.

If you can follow all that, you might try this one: $W_2 = W+2$. Again this can either be done by inspection or by basic probability manipulations as before.

You should then be able to put these together to write down the density of $|u|$, of $u^2$ and hence of $u^2+a$ in your original problem.

Once you get used to such manipulations you can do it all in one step. Note that there's a formula for the density with monotonic transformations but I suggest you get comfortable with reasoning it out as above before you go near the formula (once you know how to do the above, you can derive the formula any time you want it using an argument like we did here).


I'll outline the approach I'd suggest you take here.

  1. $U\sim N(0,\sigma^2)$ -- write down the density for $U$

  2. Let $V=|U|$ -- write down the density for $V$.

    (you should get $\frac{2}{\sqrt{2\pi}\,\sigma}e^{-\frac{v^2}{2\sigma^2}},\:v>0$ - let's not bother to simplify it because that 2 out the front is going away in a minute)

  3. Let $W=V^2$ ... this is now monotonic, which makes your life easier. Derive the density of $W$ (a scaled chi-squared 1) in a similar way to the above However in this case you never wrote $F_V(v)$ down, so you'll just end up with $F_V(\sqrt{w})$. That's okay because we don't need to write down $F_V$. When you take its derivative, you get $f_V(\sqrt{w}).\frac{d}{dw}\sqrt{w}$, which you can write straight down. The first term is just substitute $\sqrt{w}$ everywhere the density for $v$ has a $v$ and the second term (the Jacobian) is simple.

  4. Let $Y=W+a$. Again, you should be able to do that step by step

If you can do all the steps one at a time, you might try dealing with it in a single transformation but you have to be very careful about how the densities relate, because the transformation isn't invertible.

The issues you had were all algebraic rather than probability. Nevertheless, you may want a basic book on mathematical statistics to practice such manipulations in that context. Perhaps Mendenhall et al (Mathematical Statistics with Applications) -- doesn't need to be a recent edition - though there are many others that would do about as well.

Note that there are numerous handy posts on transformations done here on site. See here & here & here, and here. That first one there gives the formula for the density of a monotonic transformation: $f_Y(y) = \frac{d}{dy} F_X(t^{-1}(y)) = f_X(t^{-1}(y))\cdot |\frac{d}{dy}t^{-1}(y)|$. Oh, this one may also be quite helpful

$\endgroup$
6
  • $\begingroup$ Yeas I have but our topics are on maximum likelihood estimator. But instructor skip this part to find density function. She assumed that we know it. $\endgroup$
    – none009
    Nov 14, 2017 at 2:46
  • $\begingroup$ @Dothisdone I moved your attempt up to your question $\endgroup$
    – Glen_b
    Nov 17, 2017 at 1:08
  • $\begingroup$ Comments are not for extended discussion; this conversation has been moved to chat. $\endgroup$
    – Glen_b
    Nov 17, 2017 at 1:11
  • $\begingroup$ Okay I did it according to your last additions in the answer. But where is the wrong? :( $\endgroup$
    – none009
    Nov 17, 2017 at 1:24
  • 1
    $\begingroup$ It's out by a factor of 2 (you should also say what values of $y$ that's valid for; it's $0$ elsewhere). Note that the formula you used is for monotonic transformations (a fact you've been warned about several times already). $\endgroup$
    – Glen_b
    Nov 17, 2017 at 4:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.