MHB Posterior distribution question Pixie's question from Yahoo Answers

  • Thread starter Thread starter CaptainBlack
  • Start date Start date
  • Tags Tags
    Distribution
CaptainBlack
Messages
801
Reaction score
0
Reposted from Yahoo Answers:

Suppose that Yi is the result of a Bernoulli trial, with probability alpha of success (Yi=1).
If we assign a Unif(0,1) prior distribution to alpha, find the posterior distribution of alpha after the observations:
(a) 1
(b) 0, 1, 1, 0, 0

Thank you so much if you can help! :)
 
Physics news on Phys.org
CaptainBlack said:
Reposted from Yahoo Answers:

Suppose that Yi is the result of a Bernoulli trial, with probability alpha of success (Yi=1).
If we assign a Unif(0,1) prior distribution to alpha, find the posterior distribution of alpha after the observations:
(a) 1
(b) 0, 1, 1, 0, 0

Thank you so much if you can help! :)


From Bayes' theorem we have:\[P(\alpha|data) = \frac{P(data|\alpha)P(\alpha)}{P(data)}\]

For case (a) we have one success in one trial with prob of success \(\alpha\) so:

\(P(data|\alpha)=\alpha \)

\(P(\alpha)=1\) (since the prior for alpha is \(U(0,1)\) its density is \(1\) for \(\alpha\) in \([0,1]\) and zero elswhere)

\( \displaystyle P(data) = \int_{\alpha=0}^1 P(data|\alpha)P(\alpha)\; d \alpha =\int_{\alpha=0}^1 \alpha \; d \alpha =\Bigl[ \alpha^2/2 \Bigr]_0^1=\frac{1}{2} \)

and so:
\[ P(\alpha|data)=2 \alpha\]For case (b) we have 2 successes in 5 trials so:

\( \displaystyle P(data|\alpha)= b(2;5,\alpha)= \frac{5!}{2!\;3! }\alpha^2 (1-\alpha)^3 \)

CB
 
Namaste & G'day Postulate: A strongly-knit team wins on average over a less knit one Fundamentals: - Two teams face off with 4 players each - A polo team consists of players that each have assigned to them a measure of their ability (called a "Handicap" - 10 is highest, -2 lowest) I attempted to measure close-knitness of a team in terms of standard deviation (SD) of handicaps of the players. Failure: It turns out that, more often than, a team with a higher SD wins. In my language, that...
Hi all, I've been a roulette player for more than 10 years (although I took time off here and there) and it's only now that I'm trying to understand the physics of the game. Basically my strategy in roulette is to divide the wheel roughly into two halves (let's call them A and B). My theory is that in roulette there will invariably be variance. In other words, if A comes up 5 times in a row, B will be due to come up soon. However I have been proven wrong many times, and I have seen some...
Back
Top