Algorithms, statistical models, and their applications to real-world networks and choice systems