We introduce a simple equilibrium model of a market for loans. Households lend to firms and form expectations about their loan default probability. Under heterogeneous expectations, with switching between forecasting strategies driven by reinforcement learning, even a small fraction of...