Following Aoki’s statistical mechanics methodology [Masanao Aoki, New Approaches to Macroeconomic Modeling, Cambridge University Press, 1996; Masanao Aoki, Modeling Aggregate Behaviour and Fluctuations in Economics, Cambridge University Press, 2002; Masanao Aoki, and Hiroshi Yoshikawa, Reconstructing Macroeconomics, Cambridge University Press, 2006], we provide some insights into the well-known works of [Bruce Greenwald, Joseph Stiglitz, Macroeconomic models with equity and credit rationing, in: R. Hubbard (Ed.), Information, Capital Markets and Investment, Chicago University Press, Chicago, 1990; Bruce Greenwald, Joseph Stiglitz, Financial markets imperfections and business cycles, Quarterly journal of Economics (1993)]. Specifically, we reach analytically a closed form solution of their models overcoming the aggregation problem. The key idea is to represent the economy as an evolving complex system, composed by heterogeneous interacting agents, that can be partitioned into a space of macroscopic states. This meso level of aggregation permits to adopt mean-field interaction modeling and master equation techniques.