This book discusses the statistical physics approach in economics and its application to macroeconomic modelling and inference. It offers a systematic treatment of concepts to create an alternative micro foundation framework for widespread adoption. The text offers mathematical and computational analysis to develop heterogeneous interacting agents.