Date Assigned: Wednesday, September 6, 2023

Date Due: Monday, September 25, 2023 at one minute before midnight

Instructions

Do using Rmarkdown. Upload two files to Canvas before the time Canvas says the homework is due

Rmarkdown file

and the corresponding output

cover the basics of Rmarkdown. For the basics of markdown text formatting, see

For further info on Rmarkdown, the source for all of the course notes is always available for seeing how anything in any of the course notes was done.

Assignment

Problems from the Textbook (Agresti)

Problems 1, 2, 3, 6, 7, 8, 9 of Chapter 1.

Additional Problem

For the vegetarian data, Example 1.6.4 in Agesti, do a Bayesian analysis using a uniform (flat) prior on the proportion of vegetarians.

  1. Plot the posterior distribution

  2. Find the posterior mean

  3. Find the posterior median

  4. Find the posterior mode