  Classical economics has developed an arsenal of methods, based on the idea of
representative agents, to come up with precise numbers for next year's GDP,
inflation and exchange rates, among (many) other things. Few, however, will
disagree with the fact that the economy is a complex system, with a large
number of strongly heterogeneous, interacting units of different types (firms,
banks, households, public institutions) and different sizes.
  Now, the main issue in economics is precisely the emergent organization,
cooperation and coordination of such a motley crowd of micro-units. Treating
them as a unique ``representative'' firm or household clearly risks throwing
the baby with the bathwater. As we have learnt from statistical physics,
understanding and characterizing such emergent properties can be difficult.
Because of feedback loops of different signs, heterogeneities and
non-linearities, the macro-properties are often hard to anticipate. In
particular, these situations generically lead to a very large number of
possible equilibria, or even the lack thereof.
  Spin-glasses and other disordered systems give a concrete example of such
difficulties. In order to tackle these complex situations, new theoretical and
numerical tools have been invented in the last 50 years, including of course
the replica method and replica symmetry breaking, and the cavity method, both
static and dynamic. In this chapter we review the application of such ideas and
methods in economics and social sciences. Of particular interest are the
proliferation (and fragility) of equilibria, the analogue of satisfiability
phase transitions in games and random economies, and condensation (or
concentration) effects in opinion, wealth, etc
