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.
Cet exercice fait partie du cours
Bayesian Data Analysis in Python
Exercice interactif pratique
Essayez cet exercice en complétant cet exemple de code.
# Import pymc3
____
# Draw a trace plot of trace_1
____
plt.show()
# Draw a forest plot of trace_1
____
plt.show()