In Isaac Asimov’s classic science fiction saga Foundation, mathematics professor Hari Seldon predicts the future using what he calls psychohistory. Drawing on mathematical models that describe what happened in the past, he anticipates what will happen next, including the fall of the Galactic…