Assessing Chance of Donation with Bayes Law

  • Thread starter Thread starter mimsy57
  • Start date Start date
  • Tags Tags
    Law
mimsy57
Messages
17
Reaction score
0

Homework Statement


Each year, a man will donate money to a charity with chance x [0,1] (chosen the first time he donated, and not changing), with the prior distribution P(x)=x^3+2x-1/4. Use Bayes law to find a posterior distribution given these observations and help the charity determine if they should expect a donation this year, given that he donated both of the last two years.

Homework Equations


P(x|observation)=P(observation|x)*P(x)/P(observation)

The Attempt at a Solution


I have no samples to go off of, so just hoping someone can tell me if I have the right idea:

I want to find P(x|observation) first and then the expected value of P I think. To find P(x|observation) I will do:

P(observation|x)=x^2 (because he donated twice, and P(donation)=x)
P(x)=x^3+2x-1/4 (prior distribution given)
P(ovservation)=∫(f(x)^2) from 0 to 1 (because we need the unconditional probability that f(x)=x.

Is my understanding of the above pieces correct?
 
Physics news on Phys.org
if ##Y## is the event that a man donates to charity, then $$p(y|x) = x$$ ... I think you've got that right.

I think you need to take it slowly - one step at a time: it's kind-of an odd thing to ask. How on Earth would this situation get set up in the first place? But it's an exercise.

After the first observation the posterior is: $$p(x|y)=\frac{1}{p(y)}p(y|x)p(x)$$ ... p(y) is determined by normalization of the rest.

After the second observation the posterior is: $$p(x|y,y)=\cdots$$ ... write the whole thing out in symbols without anticipating their values - don't forget that the new prior is going to be the old posterior.

[note, if the third observation was no charity donation, then the posterior is ##p(x|y,y,\neg y)##]

reference: http://home.comcast.net/~szemengtan/InverseProblems/chap5.pdf
(note-I've munged the notation a bit since y is boolean)
 
Last edited by a moderator:
Thanks! I was totally missing the sequential nature.
 
mimsy57 said:
Thanks! I was totally missing the sequential nature.

You can also do it non-sequentially; that is, you can regard your 'observation' as 'two donations in two years', and then compute the posterior. In other words, you get the same thing if you do it in either of two ways (but correctly each way):
(1) \text{ prior} \to \text{obs. 1} \to \text{post. 1} \to \text{obs. 2} \to \text{post. 2} \\<br /> (2) \text{ prior} \to \text{obs. 1 and obs. 2} \to \text{post. 2}
 
Yah - it's just that if you get confused like that, it is best to go by little steps.
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...

Similar threads

Back
Top