The Physics Of Ideas: Inferring The Mechanics Of Opinion Formation From Macroscopic Statistical Patterns