The math geek caught the investing bug and launched a hedge fund before founding the company whose AI models took the world by surprise.