  The abundance of data about social, economic and political relationships
allows social theories to be tested against empirical evidence and human
behaviour to be analyzed just as any other natural phenomenon. Here we focus on
balance theory, stating that actors in signed social networks tend to avoid the
formation of `unbalanced', or `frustrated', cycles, i.e. cycles with an odd
number of negative links. This statement can be supported statistically only
after a comparison with a null model. Since the existing benchmarks do not
typically account for the heterogeneity of individual actors, here we first
extend the Exponential Random Graphs framework to signed networks with both
global (homogeneous) and local (heterogeneous) constraints and then employ them
to assess the significance of unbalanced patterns in several real-world
networks. We find that the nature and level of balance in social networks
crucially depends on the null model employed. In particular, the study of
signed triangles and signed communities reveals that homogeneous null models
favour the weak version of balance theory, according to which only triangles
with one negative link should be under-represented in social networks, while
heterogeneous null models favour the strong version of balance theory,
according to which also triangles with all negative links should be
under-represented. Biological networks, instead, display almost inverted
patterns and strong frustration under any benchmark, confirming that structural
balance inherently distinguishes social networks from other signed networks.
