Statistics for Adaptive Bayesian Agents: Enabling distributed social networks