An Introduction to Nonparametric Hierarchical Bayesian Modelling with a Focus on Multi-agent Learning