The Kelly criterion and the stock market