Question: Let ???? be a random proportion with a prior distribution that is beta (2,3) . Given ????=???? , let ????1,????2,????3,... be i.i.d. Bernoulli (????) .
Let ???? be a random proportion with a prior distribution that is beta (2,3) . Given ????=???? , let ????1,????2,????3,... be i.i.d. Bernoulli (????) . a) Plot the prior density of ???? . # Answer to a x = np.arange(0, 1.01, 0.01) plt.title('Beta $(2, 3)$ density'); b) Let ????7=7????=1???????? . For each =0,1,...,7 , plot the posterior density of ???? given ????7= . All 8 plots should be on the same graph. Use as many lines of code as you need. You don't have to include labels and a legend, but the title should say which densities you are plotting
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
