R programmer needed
Project detail
compute the posterior for a Binomial likelihood and Normal prior – with chosen mean and variance – in the case of the coin toss experiment. So to be precise, you are computing the posterior of the parameter p, which is the probability for a Heads to turn up in a throw of an unfair coin, where the posterior is computed given the simulated data that comprises 4 data points, with chosen values of number of heads (M) that show up at chosen number of throws (N). You can choose your own values of M and N. Plot the posterior of p given this data, against p, where your p should vary from 0 to 1 in steps of .05 or any other chosen step-width. Make these plots for different choices of N and M; for different choices of prior means; for different choices of prior variances.