A Bayesian Rating System Master's thesis at the University of Edinburgh, 2017 Edinburgh, UK M.Sc Operational Research with Data Science