Psychohistory is a fictional science from Isaac Asimov's Foundation series. It combines history, sociology, and statistical mathematics to predict the future behavior of large groups of people. By analyzing patterns in human behavior, psychohistorians can foresee societal trends and events, helping to guide civilizations through crises.
The main character, Hari Seldon, is the creator of psychohistory. He uses this science to establish the Foundation, a group aimed at preserving knowledge and culture during the decline of the Galactic Empire. Through Seldon's predictions, the Foundation seeks to shorten the impending dark age and ensure a brighter future for humanity.