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 .
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 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...
We toss n coins and each one shows up heads with probability p, independent of the...
We toss n coins and each one shows up heads with probability p, independent of the other coin tosses. Each coin which shows up heads is tossed again. What is the probability mass function of the number of heads obtained after the second round of coin tossing?
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
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,...
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...