Exercises

  1. Rerun the first model using the variables petal length and then petal width. What are the main differences in the results? How wide or narrow is the 95% HPD interval in each case?
  2. Repeat exercise 1, this time using a Student's t-distribution as weakly informative prior. Try different value of Exercises.
  3. Go back to the first example, the logistic regression for classifying setosa or versicolor given sepal length. Try to solve the same problem using a simple linear regression model as we saw in the previous chapter. How useful is a linear regression compared to the logistic regression? Can the result be interpreted as a probability? Hint: check if ...

Get Bayesian Analysis with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.