Re: Bayesian estimation of Expectation in Bernoulli problem



On Aug 23, 10:49 am, quebecs...@xxxxxxx wrote:
Hi everyone,

I would be interested in a hint, a pointer or some help with the
following problem.

Consider two coins, C1 and C2, with the following characteristics:
Pr(heads| C1) = 0.6 and Pr(heads| C2) = 0.4.

Choose one of the coins at random and imagine spinning it repeatedly.
Given that the first two spins from the chosen coin are tails, what is
the expectation of the number of additional spins until a head shows
up?

Below I have indicated my work so far.

Many thanks

Let N be the number of additional spins until a head shows up
We have N|Pr(heads)=Geometric(Pr(heads))
and E{N|Pr(heads)}=1/Pr(heads)

E{N}=E[E{N|Pr(heads)}]=E[1/Pr(heads)]

Now I need to find Pr(heads)

That is where I am stuck. I do not know how to write the fact that the
coin is chosen at random.

What I have is

Pr(heads|first 2 spins are tails, C1)= ( (1-p)^2 *0.6 ) /((1-p)^2
*0.6+(1-p)^2 *.4)

Thanks for your help.


Hello quebecstat,

Lets see if I can help.

It looks like the prior for p is
P{p=0.6}=1/2
P{p=0.4}=1/2

So that the posterior of p is
Pr(p=0.6|first 2 spins are tails)
= ( (1-0.6)^2 *.5 ) /
((1-.6)^2 *.5+(1-.4)^2 *.5)
=( .4^2 *.5 ) /
(.4^2 *.5+.6^2 *.5)
=.308

Pr(p=0.4|first 2 spins are tails)
= ( .6^2 *.5 ) /
(.4^2 *.5+.6^2 *.5)
=.692

Now this should help you compute E[1/Pr(heads)]. Although I have to
say, I am not too sure how to compute E[1/Pr(heads)].

cheers

.



Relevant Pages

  • Re: White Jury
    ... the number of times one coin is tails. ... If you're open to empirical evidence, toss two coins. ... Look at one, and whatever it is, say a head, = "Yippee, it's a boy". ...
    (uk.legal)
  • Re: Me and David C. Ullrich
    ... At least one is a head means whatever it says. ... I assume that heads and tails are equally likely. ... at least one tail," have the same probability for two of the same. ... When two coins were tossed, they can land four equally likely ways. ...
    (sci.math)
  • Re: Slot Question
    ... each spin is an independent event. ... Not under this three coins only scenario. ... an marginal added payout possibility from the extra two coins to ... You triple your chance of hitting something with three spins instead of one. ...
    (alt.vacation.las-vegas)
  • Re: Tricky maths problem
    ... >Let N be the number of heads out of x spins. ... (Do Brits really spin ... Americans toss them). ...
    (sci.math)
  • Bayesian estimation of Expectation in Bernoulli problem
    ... I would be interested in a hint, a pointer or some help with the ... Choose one of the coins at random and imagine spinning it repeatedly. ... Given that the first two spins from the chosen coin are tails, ... Let N be the number of additional spins until a head shows up ...
    (sci.stat.edu)