Question

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.

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
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.
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 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 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
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
Suppose a coin is randomly tossed n = 400 times, resulting in X = 240 Heads....
Suppose a coin is randomly tossed n = 400 times, resulting in X = 240 Heads. Answer each of the following; show all work! (a) Calculate the point estimate, and the corresponding two-sided 95% confidence interval, for the true probability pi = P(Heads), based on this sample. (b) Calculate the two-sided 95% acceptance region for the null hypothesis H0: pi = 0.5 that the coin is fair. (c) Calculate the two-sided p-value (without correction term) of this sample, under the...