The Econometrics of Learning in Financial Markets