A mathematical model of collaborative reputation systems