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