Testing for episodic predictability in stock returns