Aan de slagGa gratis aan de slag

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.

Deze oefening maakt deel uit van de cursus

Bayesian Data Analysis in Python

Cursus bekijken

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# Import pymc3
____

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

# Draw a forest plot of trace_1
____
plt.show()
Code bewerken en uitvoeren