ComeçarComece de graça

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.

Este exercício faz parte do curso

Bayesian Data Analysis in Python

Ver curso

Exercício interativo prático

Experimente este exercício completando este código de exemplo.

# Import pymc3
____

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

# Draw a forest plot of trace_1
____
plt.show()
Editar e executar o código