Trade-offs in complexity from ecology to sociology