Behavioural dynamics and the negative binomial distribution