How past experiences inform future choices