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.
Q1. Let p denote the probability that the coin will turn up as a Head when...
Q1. Let p denote the probability that the coin will turn up as a Head when tossed. Given n independent tosses of the same coin, what is the probability distribution associated with the number of Head outcomes observed? Q2. Suppose you have information that a coin in your possession is not a fair coin, and further that either Pr(Head|p) = p is certain to be equal to either p = 0.33 or p = 0.66. Assuming you believe this information,...
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).
What is the probability that a penny I have will land "heads" when tossed? To analyze...
What is the probability that a penny I have will land "heads" when tossed? To analyze this question I randomly toss the coin, n=3901 times. On x = 2500 of these tosses, the penny landed "heads." Based upon this sample, I wish to estimate p, the true probability of the penny landing "heads" when tossed. Let p̂ be the sample proportion of "heads" in our sample. Answer the following using R code. h) Assuming the same p̂ value =0.6409, what...
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?
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT