text: We could plot the posteriors and chains, which is often performed to diagnose whether the 
  sampling was successful (Figure 6): 
  (cid:7)  (cid:4) 
  **using**StatsPlots 
  
  # Plot chain traces for the first and the last subject 
  plot ( renamed_posterior_chains [: ,1 :1 ,: ]) 
  plot ( renamed_posterior_chains [: , 10 : 10 ,: ]) 
  (cid:6)  (cid:5) 
  
  Further, we used plot_parameters from ActionModels to plot the posterior estimates 
  against their priors. Here, we performed this for one agent from each group, also high- 
  lighting the parameter value used to generate the behaviour (Figure 7). We saw that the 
  posterior was correctly centred around the generative value. 