Scripts to fit gambling data