Get startedGet started for free

Inspecting posterior draws

You continue working on your task to predict the number of bikes rented per day in a bike-sharing system. The posterior draws from your regression model which you sampled before are available in your workspace as trace_1.

You know that after obtaining the posteriors, it is best practice to take a look at them to see if they make sense and if the MCMC process has converged successfully. In this exercise, you will create two plots visualizing posterior draws and summarize them in a table. Let's inspect our posteriors!

NOTE: Please allow up to half a minute for the plots to render, since they have many draws to process.

This exercise is part of the course

Bayesian Data Analysis in Python

View Course

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Import pymc3
____

# Draw a trace plot of trace_1
____
plt.show()

# Draw a forest plot of trace_1
____
plt.show()
Edit and Run Code