How the stock market defied expectations again this year, by the numbers