Abstract
What states govern time variation in expected returns? I infer these states directly from 212 anomaly portfolios, without specifying ex ante which macroeconomic or financial variables define them. An autoencoder extracts the low-dimensional structure from anomaly returns, and a hidden Markov model identifies persistent states in their dynamics. Anomaly premia exhibit strong common state dependence: expected returns and the attainable Sharpe ratio vary substantially across the learned states. The learned states imply economically meaningful variation in the factor-spanned stochastic discount factor and predict subsequent factor performance.