The president of the New York Stock Exchange says that the stock market is not a casino. Here’s what academic research says.