Foundation series
Isaac Asimov invented the fictional precursor to this discipline, in what he called "psychohistory", as a major plot device in his Foundation series of science fiction novels.