R code please A gardener seeded 3 different colors of roses: white (theta white), red (theta red), and yellow(theta yellow) in a total of 45 (N=45). Out of 45, he observes that he will have 10 white, 30 red and 5 yellow roses. Using a Dirichlet ( alpha white =10, alpha red= 40, alpha yellow=10) prior, derive the posterior distribution for all thetas of given data and compute the expected values of these probabilities.

Calculus For The Life Sciences
2nd Edition
ISBN:9780321964038
Author:GREENWELL, Raymond N., RITCHEY, Nathan P., Lial, Margaret L.
Publisher:GREENWELL, Raymond N., RITCHEY, Nathan P., Lial, Margaret L.
Chapter1: Functions
Section1.2: The Least Square Line
Problem 5E
icon
Related questions
Question

R code please

A gardener seeded 3 different colors of roses: white (theta white), red (theta red), and yellow(theta yellow) in a total of 45 (N=45). Out of 45, he observes that he will have 10 white, 30 red and 5 yellow roses. Using a Dirichlet ( alpha white =10, alpha red= 40, alpha yellow=10) prior, derive the posterior distribution for all thetas of given data and compute the expected values of these probabilities. 

Expert Solution
steps

Step by step

Solved in 3 steps with 4 images

Blurred answer
Recommended textbooks for you
Calculus For The Life Sciences
Calculus For The Life Sciences
Calculus
ISBN:
9780321964038
Author:
GREENWELL, Raymond N., RITCHEY, Nathan P., Lial, Margaret L.
Publisher:
Pearson Addison Wesley,
Holt Mcdougal Larson Pre-algebra: Student Edition…
Holt Mcdougal Larson Pre-algebra: Student Edition…
Algebra
ISBN:
9780547587776
Author:
HOLT MCDOUGAL
Publisher:
HOLT MCDOUGAL
Glencoe Algebra 1, Student Edition, 9780079039897…
Glencoe Algebra 1, Student Edition, 9780079039897…
Algebra
ISBN:
9780079039897
Author:
Carter
Publisher:
McGraw Hill