Math Help Forum

Math Help Forum Feed Site Feed

Go Back   Math Help Forum > University Math Help > Advanced Probability and Statistics
Reply
 
Thread Tools Display Modes
  #1  
Old October 24th, 2009, 11:51 PM
Newbie
 
Join Date: Mar 2009
Posts: 22
Country:
Thanks: 8
Thanked 0 Times in 0 Posts
cm917 is on a distinguished road
Exclamation 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!
Reply With Quote
Advertisement
 
  #2  
Old October 25th, 2009, 12:04 AM
matheagle's Avatar
MHF Contributor
 
Join Date: Feb 2009
Posts: 1,373
Country:
Thanks: 100
Thanked 561 Times in 504 Posts
matheagle is a splendid one to beholdmatheagle is a splendid one to beholdmatheagle is a splendid one to beholdmatheagle is a splendid one to beholdmatheagle is a splendid one to beholdmatheagle is a splendid one to beholdmatheagle is a splendid one to behold
Default

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.

(1)(p)+(2)(1-p)={1+2+2\over 3}

yup, I get \hat p={1\over 3}
Reply With Quote
  #3  
Old October 25th, 2009, 01:36 AM
mr fantastic's Avatar
Flow Master

 
Join Date: Dec 2007
Location: Zeitgeist
Posts: 12,243
Country:
Thanks: 2,576
Thanked 4,763 Times in 4,195 Posts
mr fantastic has a reputation beyond reputemr fantastic has a reputation beyond reputemr fantastic has a reputation beyond reputemr fantastic has a reputation beyond reputemr fantastic has a reputation beyond reputemr fantastic has a reputation beyond reputemr fantastic has a reputation beyond reputemr fantastic has a reputation beyond reputemr fantastic has a reputation beyond reputemr fantastic has a reputation beyond reputemr fantastic has a reputation beyond repute
Default

Quote:
Originally Posted by cm917 View Post
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!
f(p | data) \propto f(p) \cdot f(data | p) where f(p) is the prior distribution of p, f(p | data) is the posterior distribution and f(dtat | p) is the likelihood function.

Therefore f(p | data) \propto 1 \cdot p(1 - p)^2.

Therefore f(p | data) = k p(1 - p)^2 where k is a normalising constant whose value is easily found to be 12.

Therefore f(p | data) = 12 p(1 - p)^2.

Note that E(p) = \frac{2}{5}.
__________________
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.
Reply With Quote
The following users thank mr fantastic for this useful post:
Donate to MHF
  #4  
Old October 25th, 2009, 04:54 PM
Newbie
 
Join Date: Mar 2009
Posts: 22
Country:
Thanks: 8
Thanked 0 Times in 0 Posts
cm917 is on a distinguished road
Default

Quote:
Originally Posted by matheagle View Post
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.

(1)(p)+(2)(1-p)={1+2+2\over 3}

yup, I get \hat p={1\over 3}
But are we supposed to find E(x)?? I think we should find the E(p).... need more explaination..THANKS!
Reply With Quote
  #5  
Old October 25th, 2009, 05:05 PM
matheagle's Avatar
MHF Contributor
 
Join Date: Feb 2009
Posts: 1,373
Country:
Thanks: 100
Thanked 561 Times in 504 Posts
matheagle is a splendid one to beholdmatheagle is a splendid one to beholdmatheagle is a splendid one to beholdmatheagle is a splendid one to beholdmatheagle is a splendid one to beholdmatheagle is a splendid one to beholdmatheagle is a splendid one to behold
Default

E(X)= (1)(p)+(2)(1-p)

\bar X={1+2+2\over 3}

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).
Reply With Quote
The following users thank matheagle for this useful post:
Donate to MHF
  #6  
Old October 25th, 2009, 05:07 PM
Newbie
 
Join Date: Mar 2009
Posts: 22
Country:
Thanks: 8
Thanked 0 Times in 0 Posts
cm917 is on a distinguished road
Default

Quote:
Originally Posted by mr fantastic View Post
f(p | data) \propto f(p) \cdot f(data | p) where f(p) is the prior distribution of p, f(p | data) is the posterior distribution and f(dtat | p) is the likelihood function.

Therefore f(p | data) \propto 1 \cdot p(1 - p)^2.

Therefore f(p | data) = k p(1 - p)^2 where k is a normalising constant whose value is easily found to be 12.

Therefore f(p | data) = 12 p(1 - p)^2.

Note that E(p) = \frac{2}{5}.
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.
Reply With Quote
  #7  
Old October 25th, 2009, 05:12 PM
matheagle's Avatar
MHF Contributor
 
Join Date: Feb 2009
Posts: 1,373
Country:
Thanks: 100
Thanked 561 Times in 504 Posts
matheagle is a splendid one to beholdmatheagle is a splendid one to beholdmatheagle is a splendid one to beholdmatheagle is a splendid one to beholdmatheagle is a splendid one to beholdmatheagle is a splendid one to beholdmatheagle is a splendid one to behold
Default

Quote:
Originally Posted by cm917 View Post
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)
Reply With Quote
The following users thank matheagle for this useful post:
Donate to MHF
  #8  
Old October 26th, 2009, 05:45 AM
mr fantastic's Avatar
Flow Master

 
Join Date: Dec 2007
Location: Zeitgeist
Posts: 12,243
Country:
Thanks: 2,576
Thanked 4,763 Times in 4,195 Posts
mr fantastic has a reputation beyond reputemr fantastic has a reputation beyond reputemr fantastic has a reputation beyond reputemr fantastic has a reputation beyond reputemr fantastic has a reputation beyond reputemr fantastic has a reputation beyond reputemr fantastic has a reputation beyond reputemr fantastic has a reputation beyond reputemr fantastic has a reputation beyond reputemr fantastic has a reputation beyond reputemr fantastic has a reputation beyond repute
Default

Quote:
Originally Posted by cm917 View Post
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, \int_{0}^{1} f(p | data) \, dp = k \int_0^1 p(1 - p)^2 \, dp = 1. Therefore ....

E(p) = \int_0^1 p f(p | data) \, dp = ....
__________________
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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -7. The time now is 12:27 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
©2005 - 2009 Math Help Forum


Math Help Forum is a community of maths forums with an emphasis on maths help in all levels of mathematics.
Register to post your math questions or just hang out and try some of our math games or visit the arcade.