Question

In: Statistics and Probability

Now let's use Bayes' theorem and the binomial distribution to address a Bayesian inference question. You...

Now let's use Bayes' theorem and the binomial distribution to address a Bayesian inference question. You toss a bent coin N times, obtaining a sequence of heads and tails. The coin has an unknown bias f of coming up heads. (a) If NH heads have occurred in N tosses, what is the probability distribution of f? Assume a uniform prior P(f) = 1 and make use of the following result: integral 0 to 1 f^a (1 - f)^b df = a!b! / (a + b + 1)! (b) Using MATLAB Sketch (or plot) the shape of the probability distribution of f for N = 5 and NH = 2

Solutions

Expert Solution


%%%%%%%%% Matlab Code %%%%%%%%%%%%%%%%%

f=0:0.0001:1;
density=10.*(f.^2).*((1-f).^3);
plot(f, density);

%%%%%%%%%% Plot of the distribution %%%%%%%%%%%%


Related Solutions

Now let's use Bayes' theorem and the binomial distribution to address a Bayesian inference question. You...
Now let's use Bayes' theorem and the binomial distribution to address a Bayesian inference question. You toss a bent coin N times, obtaining a sequence of heads and tails. The coin has an unknown bias f of coming up heads. (a) If NH heads have occurred in N tosses, what is the probability distribution of f? Assume a uniform prior P(f) = 1 and make use of the following result: integral 0 to 1 f^a (1 - f)^b df =...
Bayesian analysis is a probabilistic classification method based on Bayes' theorem (postulated by an English Mathematician...
Bayesian analysis is a probabilistic classification method based on Bayes' theorem (postulated by an English Mathematician named Thomas Bayes). In summary, the Bayesian theory rests on the belief that the evidence about the true state of a given problem can be expressed in term of the degree of understanding of the underlying issues. That degree of understanding can in turn be expressed in terms of probability. And based on the observation, the theorem provides the relationship between the probabilities of...
Which are the similarities of Classical and Bayesian approaches of Inference? And when we use this...
Which are the similarities of Classical and Bayesian approaches of Inference? And when we use this for a data in what will be differ and why?
A software company is trying to use Bayes Theorem and other rules of probability to develop...
A software company is trying to use Bayes Theorem and other rules of probability to develop an algorithm that can effectively filter out spam emails. The company’s software developers carefully examined a random sample of 5,000 emails received by its employees and found out that 1200 of the emails were spam. A closer look at the spam emails revealed that 300 of them contained the word ‘free’ in the subject line. On the other hand, only 228 of the non-spam...
A software company is trying to use Bayes Theorem and other rules of probability to develop...
A software company is trying to use Bayes Theorem and other rules of probability to develop an algorithm that can effectively filter out spam emails. The company’s software developers carefully examined a random sample of 20,000 emails received by its employees and found out that 4,400 of the emails were spam. A closer look at the spam emails revealed that 1,100 of them contained the word ‘free’ in the subject line. On the other hand, only 780 of the non-spam...
Determine whether you can use the normal distribution to approximate the binomial distribution. If you​ can,...
Determine whether you can use the normal distribution to approximate the binomial distribution. If you​ can, use the normal distribution to approximate the indicated probabilities and sketch their graphs. If you​ cannot, explain why and use the binomial distribution to find the indicated probabilities. A survey of adults in a region found that 52 ​% have encountered fraudulent charges on their credit cards. You randomly select 100 adults in the region. Complete parts​ (a) through​ (d) below. Determine whether a...
Decide whether you can use the normal distribution to approximate the binomial distribution. If you​ can,...
Decide whether you can use the normal distribution to approximate the binomial distribution. If you​ can, use the normal distribution to approximate the indicated probabilities and sketch their graphs. If you​ cannot, explain why and use the binomial distribution to find the indicated probabilities. Five percent of workers in a city use public transportation to get to work. You randomly select 269 workers and ask them if they use public transportation to get to work. (Complete parts A through D)...
Decide whether you can use the normal distribution to approximate the binomial distribution. If you can,...
Decide whether you can use the normal distribution to approximate the binomial distribution. If you can, use the normal distribution to approximate the indicated probabilities and sketch their graphs. If you cannot, explain why and use the binomial distribution to find the indicated probabilities. Five percent of workers in a city use public transportation to get to work. You randomly select 254 workers and ask them if they use public transportation to get to work. Complete parts (a) through (d)....
Question: (Bayesian) Suppose that X is Poisson(λ + 1), and the prior distribution of λ is...
Question: (Bayesian) Suppose that X is Poisson(λ + 1), and the prior distribution of λ is binomial(2,1/3). (a) Find the Bayesian estimate of λ for mean square loss based on the single observation X, if X = 1. (b) Find the Bayesian estimate of λ for mean square loss based on the single observation X, if X = 2 Hints: Because of its prior distribution, λ can take only three values, 0,1,2. Don’t expect its posterior distribution to be any...
Question 1: A binomial distribution has p = 0.21 and n = 94. Use the normal...
Question 1: A binomial distribution has p = 0.21 and n = 94. Use the normal approximation to the binomial distribution to answer parts (a) through (d) below. Round to four decimal places as needed.) a. What are the mean and standard deviation for this distribution? b. What is the probability of exactly 15 successes? c. What is the probability of 13 to 21 successes? d. What is the probability of 9 to 17 successes? Question 2: The average number...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT