Abstract
A Bayesian cluster analysis for the results of an election based on multinomial mixture models is proposed. The number of clusters is chosen based on the careful comparison of the results with predictive simulations from the models, and by checking whether models capture most of the spatial dependence in the results. By implementing the analysis on five recent elections in Barcelona, the reader is walked through the choice of the best statistics and graphical displays to help chose a model and present the results. Even though the models do not use any information about the location of the areas in which the results are broken into, in the example they uncover a four-cluster structure with a strong spatial dependence, that is very stable over time and relates to the demographic composition.
Acknowledgements
This work was funded in part by Grant # MTM2010-14887 of the Ministerio de Ciencia e Inovación of Spain. We are grateful to the city council of Barcelona for providing us the data and the maps, and to a couple of referees for their constructive suggestions that helped us improve this manuscript a lot.