Statistics for Martingales, detrending data, and the efficient market hypothesis