Question

Let p denote the probability that a particular coin will show heads when randomly tossed. It...

Let p denote the probability that a particular coin will show heads when randomly tossed. It is not necessarily true that the coin is a “fair” coin wherein p=1/2. Find the a posteriori probability density function f(p|TN ) where TN is the observed number of heads n observed in N tosses of a coin. The a priori density is p~U[0.2,0.8], i.e., uniform over this interval. Make some plots of the a posteriori density.

Homework Answers

Answer #1

I have written a code in R that will plot posterior density

Code:::::::::::::

#take N=10,n=0,10
#Above values of 'n' are taken for sake of easiness only
N=10;n<-c(0,10);p<-seq(0.2,0.8,by=0.002);fn<-vector()
fn1<-p^n[1]*(1-p)^(10-n[1])*11/((0.8)^(11)-(0.2)^(11))
fn2<-p^n[2]*(1-p)^(10-n[2])*11/((0.8)^(11)-(0.2)^(11))
plot(fn1,p)
plot(fn2,p)

Outputs:::::::::

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Assume p represents the probability that a particular coin will show heads when randomly tossed. Don't...
Assume p represents the probability that a particular coin will show heads when randomly tossed. Don't assume its true that the coin is a “fair” coin wherein p=1/2. Determine the a posteriori probability density function f(p|TN) where TN is the observed number of heads n observed in N tosses of a coin. The a priori density is p~U[0.2,0.8], i.e., uniform over this interval. Create some plots of the a posteriori density.
A fair coin is tossed for n times independently. (i) Suppose that n = 3. Given...
A fair coin is tossed for n times independently. (i) Suppose that n = 3. Given the appearance of successive heads, what is the conditional probability that successive tails never appear? (ii) Let X denote the probability that successive heads never appear. Find an explicit formula for X. (iii) Let Y denote the conditional probability that successive heads appear, given no successive heads are observed in the first n − 1 tosses. What is the limit of Y as n...
A fair coin is tossed three times. Let X be the number of heads among the...
A fair coin is tossed three times. Let X be the number of heads among the first two tosses and Y be the number of heads among the last two tosses. What is the joint probability mass function of X and Y? What are the marginal probability mass function of X and Y i.e. p_X (x)and p_Y (y)? Find E(X) and E(Y). What is Cov(X,Y) What is Corr (X,Y) Are X and Y independent? Explain. Find the conditional probability mass...
A coin is tossed with P(Heads) = p a) What is the expected number of tosses...
A coin is tossed with P(Heads) = p a) What is the expected number of tosses required to get n heads? b) Determine the variance of the number of tosses needed to get the first head. c) Determine the variance of the number of tosses needed to get n heads.
A fair coin has been tossed four times. Let X be the number of heads minus...
A fair coin has been tossed four times. Let X be the number of heads minus the number of tails (out of four tosses). Find the probability mass function of X. Sketch the graph of the probability mass function and the distribution function, Find E[X] and Var(X).
A coin is tossed 5 times. Let the random variable ? be the difference between the...
A coin is tossed 5 times. Let the random variable ? be the difference between the number of heads and the number of tails in the 5 tosses of a coin. Assume ?[heads] = ?. Find the range of ?, i.e., ??. Let ? be the number of heads in the 5 tosses, what is the relationship between ? and ?, i.e., express ? as a function of ?? Find the pmf of ?. Find ?[?]. Find VAR[?].
PROBABILITY QUESTION A fair coin is tossed n times. Sn is the # of heads after...
PROBABILITY QUESTION A fair coin is tossed n times. Sn is the # of heads after tossed. Show that P(Sn ≥ 3n/4) ≤ e -n/8 .
A fair coin is tossed 4 times. What is the probability of getting exactly 3 heads...
A fair coin is tossed 4 times. What is the probability of getting exactly 3 heads conditioned on the event that the first two tosses came out the same?
Let X denote the number of heads than occur when four coins are tossed at random....
Let X denote the number of heads than occur when four coins are tossed at random. Under the assumptions that the four coins are independent and the probability of heads on each coin is 1/2,X is B(4,1/2). One hundred repetitions of this experiment results in 0,1,2,3, and 4 heads being observed on 7,18,40,31, and 4 trials, respectively. Do these results support the assumption that the distribution of X is B(4,1/2)?
A coin with P[Heads]= p and P[Tails]= 1p is tossed repeatedly (the tosses are independent). Define...
A coin with P[Heads]= p and P[Tails]= 1p is tossed repeatedly (the tosses are independent). Define (X = number of the toss on which the first H appears, Y = number of the toss on which the second H appears. Clearly 1X<Y. (i) Are X and Y independent? Why or why not? (ii) What is the probability distribution of X? (iii) Find the probability distribution of Y . (iv) Let Z = Y X. Find the joint probability mass function