Artificial intelligence and the stock market