Note, due to the math required for this quiz. Please turn your output (PDF) directly into this will be turned in as a R Markdown
Assume you decide to fit a logistic regression model to predict the probability that a piece of candy contains chocolate based on the winpercent and sugarcontent. Write out the model, including prior distributions.
Then write the posterior distribution for β the vector of coefficients (up to proportionality):
| p ( β | y , X ) ∝ | 
Sketch out the basic algorithm for a Metropolis sampler to fit a logistic regression.