| 
October 24th, 2009, 11:51 PM
| | Newbie | | Join Date: Mar 2009
Posts: 22
Country: Thanks: 8
Thanked 0 Times in 0 Posts
| | Method of moments X is a discrete RV with P(X=1) = p , P(X=2)=1-p; three independent observations of X are made x1=1, x2=2,x3=2.
a)find the method of moments estimate of p
In order to find the method of moments estimate of p, I know I need to find the 1st moment and the 2nd moment.
What I did is.... E(p) = 1/3 p +2/3 (1-p) ...am I on the right track? when I continue to find the 2nd moment E(p square)...it turns out weird... the final answer for this question is 1/3.
d) if p has a prior distribution that is uniform on [0,1], what is its posterior density?
Actually, I have difficulty in finding the posterior density. If anyone could do it as an exmaple for me. That would be perfect. Thanks! | 
October 25th, 2009, 12:04 AM
|  | MHF Contributor | | Join Date: Feb 2009
Posts: 1,373
Country: Thanks: 100
Thanked 561 Times in 504 Posts
| | First of all, p is a probability.
You want the expected value of X.
For MOM you set the expected value equal to the sample mean.
yup, I get | 
October 25th, 2009, 01:36 AM
|  | Flow Master | | Join Date: Dec 2007 Location: Zeitgeist
Posts: 12,243
Country: Thanks: 2,576
Thanked 4,763 Times in 4,195 Posts
| | Quote:
Originally Posted by cm917 X is a discrete RV with P(X=1) = p , P(X=2)=1-p; three independent observations of X are made x1=1, x2=2,x3=2.
a)find the method of moments estimate of p
In order to find the method of moments estimate of p, I know I need to find the 1st moment and the 2nd moment.
What I did is.... E(p) = 1/3 p +2/3 (1-p) ...am I on the right track? when I continue to find the 2nd moment E(p square)...it turns out weird... the final answer for this question is 1/3.
d) if p has a prior distribution that is uniform on [0,1], what is its posterior density?
Actually, I have difficulty in finding the posterior density. If anyone could do it as an exmaple for me. That would be perfect. Thanks! |  where  is the prior distribution of  ,  is the posterior distribution and  is the likelihood function.
Therefore  .
Therefore  where  is a normalising constant whose value is easily found to be 12.
Therefore  .
Note that  .
__________________ There are two things you should never try to prove: the impossible and the obvious. The greater danger for most of us lies not in setting our aim too high and falling short; but in setting our aim too low and achieving our mark. (Michelangelo Buonarroti) To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
| | The following users thank mr fantastic for this useful post: | |  | 
October 25th, 2009, 04:54 PM
| | Newbie | | Join Date: Mar 2009
Posts: 22
Country: Thanks: 8
Thanked 0 Times in 0 Posts
| | Quote:
Originally Posted by matheagle First of all, p is a probability.
You want the expected value of X.
For MOM you set the expected value equal to the sample mean.
yup, I get  | But are we supposed to find E(x)?? I think we should find the E(p).... need more explaination..THANKS! | 
October 25th, 2009, 05:05 PM
|  | MHF Contributor | | Join Date: Feb 2009
Posts: 1,373
Country: Thanks: 100
Thanked 561 Times in 504 Posts
| |
The idea is to set these equal.
As I said yesterday, p is a number, NOT a random variable in the first part.
E(3)=3, same with p, E(p)=p.
YOU don't want E(p). | | The following users thank matheagle for this useful post: | |  | 
October 25th, 2009, 05:07 PM
| | Newbie | | Join Date: Mar 2009
Posts: 22
Country: Thanks: 8
Thanked 0 Times in 0 Posts
| | Quote:
Originally Posted by mr fantastic  where  is the prior distribution of  ,  is the posterior distribution and  is the likelihood function.
Therefore  .
Therefore  where  is a normalising constant whose value is easily found to be 12.
Therefore  .
Note that  . | Thanks for your reply. But I don't understand how do you get the constant value 12. and how to get the E(P) = 2/5. since p is uniform distribution [0,1], the E(P) = a+b/2 ...?? is it?
Thanks. | 
October 25th, 2009, 05:12 PM
|  | MHF Contributor | | Join Date: Feb 2009
Posts: 1,373
Country: Thanks: 100
Thanked 561 Times in 504 Posts
| | Quote:
Originally Posted by cm917 Thanks for your reply. But I don't understand how do you get the constant value 12. and how to get the E(P) = 2/5. since p is uniform distribution [0,1], the E(P) = a+b/2 ...?? is it?
Thanks. |
The mean of a beta density is alpha over (alpha +beta).... 2/(2+3) | | The following users thank matheagle for this useful post: | |  | 
October 26th, 2009, 05:45 AM
|  | Flow Master | | Join Date: Dec 2007 Location: Zeitgeist
Posts: 12,243
Country: Thanks: 2,576
Thanked 4,763 Times in 4,195 Posts
| | Quote:
Originally Posted by cm917 Thanks for your reply. But I don't understand how do you get the constant value 12. and how to get the E(P) = 2/5. since p is uniform distribution [0,1], the E(P) = a+b/2 ...?? is it?
Thanks. | Since f(p | data) is a pdf,  . Therefore ....
__________________ There are two things you should never try to prove: the impossible and the obvious. The greater danger for most of us lies not in setting our aim too high and falling short; but in setting our aim too low and achieving our mark. (Michelangelo Buonarroti) To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
| | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -7. The time now is 12:27 AM. | | |